[英]Creating multiple bundles in Azure API for FHIR
Using Synthea i have generated 10 patient information.使用 Synthea,我生成了 10 个患者信息。 I have an azure account where i have setup "Azure API for FHIR" service.
我有一个 azure 帐户,我在其中设置了“用于 FHIR 的 Azure API”服务。 i did all the setup and tried pushing a sample patient (as mentioned in the official docs).
我完成了所有设置并尝试推送样本患者(如官方文档中所述)。 i am able to retrieve the patient information by patient id as well.
我也可以通过患者 ID 检索患者信息。
However, the generated resource from Synthea are not just one resource type.. It has many entries like Patient, Organization, Claim etc.. everything bundled under one resource - bundle然而,从 Synthea 生成的资源不仅仅是一种资源类型。它有许多条目,如 Patient、Organization、Claim 等。所有内容都捆绑在一个资源下 - bundle
Something like this.. but having more than 100 resource types for a patient.像这样的东西..但是为患者提供了 100 多种资源类型。 Its good that, it covers entire journey of the patient.
好在,它涵盖了患者的整个旅程。
{
"resourceType": "Bundle",
"type": "transaction",
"entry": [
.....
{
....
"resourceType": "patient"
....
},
{
....
"resourceType": "organization"
....
},
]
}
Using post man i tried to insert this bundle with api below使用邮递员,我尝试将这个捆绑包与下面的 api 一起插入
https://XXXXXX.azurehealthcareapis.com/Bundle/
i was able to insert multiple bundles.. However, when i query the patients using the following api我能够插入多个捆绑包。但是,当我使用以下 api 查询患者时
https://XXXXXX.azurehealthcareapis.com/Patient/
All the patient information are not getting retrieved.未检索到所有患者信息。
Here are my questions.这是我的问题。
When you need to process bundles at the FHIR endpoint, you need to POST it to the root /
of the FHIR server.当您需要在 FHIR 端点处理捆绑包时,您需要将其 POST 到 FHIR 服务器的根
/
。 This is all described in https://www.hl7.org/fhir/http.html#transaction .这在https://www.hl7.org/fhir/http.html#transaction中都有描述。
That said, the managed Azure API for FHIR only supports "batch" bundles at the moment.也就是说,FHIR 的托管 Azure API 目前仅支持“批处理”捆绑包。 Bundle type
transaction
is not currently supported on Azure API for FHIR. FHIR 的 Azure API 目前不支持捆绑类型
transaction
。
Both batch
and transaction
are supported on the OSS FHIR Server for Azure ( https://github.com/Microsoft/fhir-server ) when deployed with the SQL server persistence provider.当使用 Z9778840A0100CB30C982876741B0 服务器提供程序部署时,OSS FHIR 服务器上支持
batch
和transaction
Azure ( https://github.com/Microsoft/fhir-server )。
If you want to convert the transaction bundle that Synthea produces to a batch bundle, then you could take a look at something like this: https://github.com/hansenms/FhirTransactionToBatch如果您想将 Synthea 生成的事务包转换为批处理包,那么您可以查看如下内容: https://github.com/hansenms/FhirTransactionToBatch
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.