简体   繁体   English

在 Azure API 中为 FHIR 创建多个包

[英]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.这是我的问题。

  1. Inserting bundle by bundle - Is that the right approach.. or逐包插入 - 这是正确的方法..或
  2. Insert resource by resource.. Patient, Organization, Patient, Organization... But this looks meaningless.按资源插入资源..患者,组织,患者,组织...但这看起来毫无意义。 Because, if i need to find entire journey of a patient how would i be mapping it因为,如果我需要找到患者的整个旅程,我将如何绘制它
  3. Is There any way i can convert this each bundle as CSV files.. i would like to extract information and run a machine learning model on it.有什么办法可以将每个捆绑包转换为 CSV 文件。我想提取信息并在其上运行机器学习 model。

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 服务器支持batchtransaction 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM