GithubHelp home page GithubHelp logo

Comments (5)

mkizesov avatar mkizesov commented on June 18, 2024

Hi
fhir-py validates resources structure in accordance with the specified fhir_version and prohibits any additional elements.
The problem here is that some Patient resources on this server (like this http://test.fhir.org/r4/Patient/1254098989) have an element "_birthDate", which doesn't match the FHIR specification because all resource extensions should be stored in "extensions" element.

We'll add some flag to disable resource structure validation in fhir-py soon.

from fhir-py.

ir4y avatar ir4y commented on June 18, 2024

Right now you can disable validation by assigning schema attribute to None.

client.schema = None

from fhir-py.

diegokaminker avatar diegokaminker commented on June 18, 2024

from fhir-py.

mkizesov avatar mkizesov commented on June 18, 2024

_birthDate is indeed valid as Json FHIR Please see the example at https://www.hl7.org/fhir/json.html

Hi Diego
Thank you for pointing that out, we'll fix this bug soon

from fhir-py.

mkizesov avatar mkizesov commented on June 18, 2024

We decided to remove schemas and schema validation because it doesn't make much sense now.
fhir-py will support $validate operation and we also going to add autogenerated type hints for autocompletion.

from fhir-py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.