gpt4 book ai didi

hl7-fhir - 是否可以使用单个 GET 请求搜索多个 FHIR 资源

转载 作者:行者123 更新时间:2023-12-05 04:13:05 37 4
gpt4 key购买 nike

您好,我正在开发一款使用新 FHIR 标准的应用。它旨在从 EHR 中提取信息并进行组织。

我想知道是否可以通过单个 GET 请求搜索多个 FHIR 资源。例如单个 GET 请求是否可以搜索单个患者的最新血压、心率等?

最佳答案

你看过batch/transaction吗?互动?

The batch and transaction interactions submit a set of actions to perform on a server in a single HTTP request/response. The actions may be performed independently as a "batch", or as a single atomic "transaction" where the entire set of changes succeed or fail as a single entity.

A batch or transaction interaction is performed by an HTTP POST command as shown:POST [base] {?_format=[mime-type]}

这里是一个 POST 请求的例子 meds and allergies :

{
"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&notgiven:not=true"
}
}
]
}

关于hl7-fhir - 是否可以使用单个 GET 请求搜索多个 FHIR 资源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38558356/

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com