首页 > 解决方案 > FHIR 按扩展名搜索

问题描述

如何在 FHIR 中搜索扩展值?SearchParameter搜索扩展是否需要注册?任何有关示例的帮助都会很棒。我一直在尝试使用我自己的 FHIR 服务器(https://github.com/Microsoft/fhir-servermothersMaidenNameSearchParameter注册后使用,但它提供了Patients来自服务器的所有内容。

更新

我将此 JSON 设置为患者资源的扩展。

{
  "extension": [
    {
      "url": "http://hl7.org/fhir/SearchParameter/patient-extensions-Patient-mothersMaidenName",
      "valueString": "trial"
    }
  ]
}

SearchParameters 注册是这样完成的(这些来自https://www.hl7.org/fhir):

{
  "resourceType": "SearchParameter",
  "id": "e3f10e54-f558-49bb-8732-faee3a4dda8d",
  "url": "http://hl7.org/fhir/SearchParameter/patient-extensions-Patient-mothersMaidenName",
  "version": "3.6.0",
  "name": "mothersMaidenName",
  "status": "draft",
  "experimental": true,
  "code": "mothersMaidenName",
  "base": [
    "Patient"
  ],
  "type": "string",
  "description": "Search based on patient's mother's maiden name",
  "expression": "Patient.extension(http://hl7.org/fhir/SearchParameter/patient-extensions-Patient-mothersMaidenName)",
  "xpathUsage": "normal"
}

标签: hl7hl7-fhir

解决方案


需要两个步骤:首先,您需要定义一个自定义 SearchParameter,以您希望的方式搜索您希望的元素。其次,必须手动更改所有相关服务器(即编写代码)以支持新的搜索参数。


推荐阅读