'System Level Export Rest call for Azure API for FHIR

I have setup Azure API for FHIR and a storage account. I successfully integrated the Storage account with FHIR by following this tutorial - https://docs.microsoft.com/en-us/azure/healthcare-apis/configure-export-data

Followed by the integration process, i issues the following rest command

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. Can someone clarify ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source