-->

FHIR json schema

2019-09-13 02:50发布

问题:

Is there a complete or partial JSON schema for HL7 FHIR resources? I saw this. http://www.interopen.org/candidate-profiles/care-connect/CareConnect-AllergyIntolerance-1.html

But the JSON scchema is not available. This is also not functioning.

回答1:

JSON schemas will be published as a standard part of release 3. You can find the current draft here: http://build.fhir.org/fhir.schema.json.zip

There's still a bit of fine-tuning to do. Feedback welcome.



回答2:

You can run on your computer terminal:

sudo curl -i -H "Accept: [VER-HEAD]" https://your-fhir-base-url/metadata
  • use "application/json+fhir" for DSTU2 compatible
  • use "application/fhir+json" for anything greater than STU2

And the response will return JSON data on your terminal



回答3:

You may try this: https://github.com/glennjones/hapi-swagger and obtain the json schemas from swagger.json.