您好,我正在开发一个应用程序来使用新的 FHIR 标准。它的设计目的是从电子病历中提取信息并进行组织。
我想知道是否可以使用单个 GET 请求搜索多个 FHIR 资源。例如,单个 GET 请求是否可以搜索单个患者的最新血压、心率等?
你有没有调查过批次/交易 http://hl7.org/implement/standards/fhir/http.html#transaction相互作用?
The batch
and transaction
交互提交一组要在单个 HTTP 请求/响应中在服务器上执行的操作。这些操作可以作为“批”独立执行,或者作为单个原子“事务”执行,其中整个更改集作为单个实体成功或失败。
A batch
or transaction
交互是通过 HTTP 执行的POST
命令如图:POST [base] {?_format=[mime-type]}
这是一个例子POST
要求药物和过敏 http://hl7.org/implement/standards/fhir/bundle-request-medsallergies.json.html:
{
"resourceType": "Bundle",
"id": "bundle-request-medsallergies",
"type": "batch",
"entry": [
{
"request": {
"method": "GET",
"url": "/Patient/example"
}
},
{
"request": {
"method": "GET",
"url": "/MedicationStatement?patient=example&_list=$current-medications"
}
},
{
"request": {
"method": "GET",
"url": "/AllergyIntolerance?patient=example&_list=$current-allergies"
}
},
{
"request": {
"method": "GET",
"url": "/Condition?patient=example&_list=$current-problems"
}
},
{
"request": {
"method": "GET",
"url": "/MedicationStatement?patient=example¬given:not=true"
}
}
]
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)