hl7 - FHIR 按扩展名搜索
问题描述
如何在 FHIR 中搜索扩展值?SearchParameter
搜索扩展是否需要注册?任何有关示例的帮助都会很棒。我一直在尝试使用我自己的 FHIR 服务器(https://github.com/Microsoft/fhir-server)mothersMaidenName
在SearchParameter
注册后使用,但它提供了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"
}
解决方案
需要两个步骤:首先,您需要定义一个自定义 SearchParameter,以您希望的方式搜索您希望的元素。其次,必须手动更改所有相关服务器(即编写代码)以支持新的搜索参数。
推荐阅读
- javascript - iOS Safari 在 window.location.href = ... 上暂停动画?
- c# - 基于 Enum 过滤 Linq,具有特定唯一值异常
- python - python 2.x:有条件地捕获异常(如果文件丢失,则忽略优雅清理)
- python - TypeError : tan^-1 (tan inverse) 两个数据框列的比率
- python - 如何将列表中的值存储到多个变量(在python django中)
- android - 尝试在空对象引用上调用虚拟方法“boolean com.android.server.autofill.RemoteFillService$PendingRequest.cancel()”
- r - is.url(url) 中的错误:当状态码 = 404 时,长度(url) == 1
- xmpp - 如何使用 Keycloak 和 Ejabberd 实现单点登录
- python - 以 django 形式获取当前登录的用户
- jquery - 使用 jquery ajax for line-chart.js 将数据从控制器传递到视图