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