导出调用后查询副本状态-fhir azure
使用导出api,我能够将数据导出到存储帐户内的容器中导出调用后查询副本状态-fhir azure,azure,hl7-fhir,fhir-server-for-azure,Azure,Hl7 Fhir,Fhir Server For Azure,使用导出api,我能够将数据导出到存储帐户内的容器中 import requests url = "https://<fhir-server>.azurehealthcareapis.com/$export" payload = {} headers = { 'Accept': 'application/fhir+json', 'Prefer': 'respond-async', 'Authorization': 'Bearer <token>' } r
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'))
导入请求
url=”https://.azurehealthcareapis.com/$export“
有效载荷={}
标题={
“接受”:“应用程序/fhir+json”,
'首选':'响应异步',
“授权”:“持票人”
}
response=requests.request(“GET”,url,headers=headers,data=payload)
打印(response.text.encode('utf8'))
在我的例子中,Observation.ndjson的大小约为700 MB,需要一段时间才能导出到存储帐户
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'))
使用rest api或查询存储帐户是否有任何方法检查导出是否已完成?数据完全复制到存储容器后,我需要执行一系列任务 如规范()所示,您应该存储$export
请求的内容位置
返回头。这是您可以检查导出状态并查看结果文件URL的位置