HL7 FHIR資源是否存在完整的或部分的JSON模式? 我看到了這個。 http://www.interopen.org/candidate-profiles/care-connect/CareConnect-AllergyIntolerance-1.htmlFHIR json模式
但是JSON scchema不可用。 This is also not functioning.
HL7 FHIR資源是否存在完整的或部分的JSON模式? 我看到了這個。 http://www.interopen.org/candidate-profiles/care-connect/CareConnect-AllergyIntolerance-1.htmlFHIR json模式
但是JSON scchema不可用。 This is also not functioning.
JSON模式將出版作爲發佈的一個標準部分3.你可以在這裏找到,目前的草案:http://build.fhir.org/fhir.schema.json.zip
仍然有一點微調要做。反饋歡迎。
您可以試試這個:https://github.com/glennjones/hapi-swagger 並從swagger.json獲取json模式。
您可以在電腦終端上運行:
sudo curl -i -H "Accept: [VER-HEAD]" https://your-fhir-base-url/metadata
而且響應會在您的終端上返回JSON數據
正在使用此功能。對於像這樣的簡單輸入{「resourceType」:「AllergyIntolerance」,「identifier」:「01」,「patient」:{「reference」:「Patient/0002」}},我得到無效的json。由於架構無法解析,所以DomainResource.schema.json#/ definitions/DomainResource。對於Reference.schema.json也是如此。我是否需要編輯架構的id部分來指向我的本地文件?這一個,「ID」:「http://hl7.org/fhir/json-schema/AllergyIntolerance」 – sowmiyaksr
我也改變了「$ ref」,以指向本地模式文件。現在爲我工作。謝謝@勞埃德 – sowmiyaksr