【问题标题】:FHIR json schemaFHIR json 架构
【发布时间】:2017-01-02 12:45:49
【问题描述】:

HL7 FHIR 资源是否有完整或部分 JSON 架构? 我看到了这个。 http://www.interopen.org/candidate-profiles/care-connect/CareConnect-AllergyIntolerance-1.html

但 JSON 模式不可用。 This is also not functioning.

【问题讨论】:

    标签: jsonschema hl7-fhir


    【解决方案1】:

    JSON 模式将作为第 3 版的标准部分发布。您可以在此处找到当前草案:http://build.fhir.org/fhir.schema.json.zip

    还有一些微调要做。欢迎反馈。

    【讨论】:

    • 我正在使用这个。对于像这样的简单输入 { "resourceType": "AllergyIntolerance", "identifier" : "01", "patient" : { "reference" : "Patient/0002" } } ,我得到无效的 json。由于架构无法解析,DomainResource.schema.json#/definitions/DomainResource。 Reference.schema.json 也是如此。我是否需要编辑模式的 id 部分以指向我的本地文件?这个 , "id": "hl7.org/fhir/json-schema/AllergyIntolerance"
    • 我也更改了“$ref”,以指向本地模式文件。现在为我工作。谢谢@Lloyd
    【解决方案2】:

    你可以试试这个:https://github.com/glennjones/hapi-swagger 并从 swagger.json 中获取 json 模式。

    【讨论】:

      【解决方案3】:

      你可以在你的电脑终端上运行:

      sudo curl -i -H "Accept: [VER-HEAD]" https://your-fhir-base-url/metadata
      
      • 使用“application/json+fhir”来兼容 DSTU2
      • 对大于 STU2 的任何内容使用“application/fhir+json”

      响应将在您的终端上返回 JSON 数据

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-09-13
        • 2018-03-31
        • 1970-01-01
        • 2018-09-13
        • 2016-03-31
        • 2011-09-21
        相关资源
        最近更新 更多