FHIR json schema

3.1k views Asked by At

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.

3

There are 3 answers

2
Lloyd McKenzie On BEST ANSWER

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.

0
erosb On

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

0
akiespenc On

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