FHIR json schema

2019-09-13 02:55发布

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条回答
太酷不给撩
2楼-- · 2019-09-13 03:11

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楼-- · 2019-09-13 03:22

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.

查看更多
女痞
4楼-- · 2019-09-13 03:26

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

查看更多
登录 后发表回答