简体   繁体   English

系统级导出 Rest 调用 Azure API 用于 FHIR

[英]System Level Export Rest call for Azure API for FHIR

I have setup Azure API for FHIR and a storage account.我已经为 FHIR 和存储帐户设置了 Azure API。 I successfully integrated the Storage account with FHIR by following this tutorial - https://docs.microsoft.com/en-us/azure/healthcare-apis/configure-export-data我按照本教程成功地将存储帐户与 FHIR 集成 - https://docs.microsoft.com/en-us/azure/healthcare-apis/configure-export-data

Followed by the integration process, i issues the following rest command在集成过程之后,我发出以下 rest 命令

import requests

url = "https://<fhir-server-name>.azurehealthcareapis.com/$export"

payload = {}
headers = {
  'Accept': 'application/fhir+json',
  'Prefer': 'respond-async',
  'Authorization': 'Bearer <token>'
}

response = requests.request("GET", url, headers=headers, data = payload)

print(response.text.encode('utf8'))

It returned a 202 response with empty body.. As soon as we send export command, the data would be stored inside our storage or we need to somehow specify the storage account information in our json to start the export process.它返回了一个空正文的 202 响应。一旦我们发送导出命令,数据就会存储在我们的存储中,或者我们需要以某种方式在 json 中指定存储帐户信息以启动导出过程。 Can someone clarify?有人可以澄清吗?

When you issue the $export request, the response should have a Content-Location header with a URL to the status document for the export job.当您发出 $export 请求时,响应应该有一个Content-Location header 和一个 URL 到导出作业的状态文档。 If you check that location should should see a status of what has been exported and a location of the files.如果您检查该位置,应该会看到已导出内容的状态和文件的位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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