0

使用导出 api,我可以将数据导出到存储帐户内的容器中。

import requests

url = "https://<fhir-server>.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'))

就我而言,Observation.ndjson 的大小约为 700 MB,需要一段时间才能导出到存储帐户。

使用rest api或通过查询存储帐户有没有办法检查导出是否已完成?将数据完全复制到存储容器后,我需要执行一系列任务。

4

1 回答 1

1

如规范(https://hl7.org/fhir/uv/bulkdata/export/index.html#bulk-data-status-request)中所示,您应该存储请求的Content-Location返回标头。$export这是您可以检查导出状态并查看生成文件的 URL 的位置。

于 2020-05-06T17:59:46.650 回答