Download Bulk Export Data
This topic is for the multi-tenant environment (MTE) version of Bulk Data Export. If your implementation is a single-tenant environment (STE), see the topics in Bulk Data Export (Single Tenant).
After you execute the group bulk export, you can use the links to the Newline Delimited JSON (NDJSON) files for each of the FHIR resource types to download the NDJSON files and consume the data. Each NDJSON link in the response contains only one FHIR resource type, but can contain thousands of individual FHIR resources. There can also be multiple NDJSON links for a single resource type if the size of the data set requires multiple files.
Before you download the contents of the NDJSON files, make sure that you have the client credentials header.
To download the contents of an NDJSON file, go to the link in the response using the Bulk $export client credential header method.
The following is an example request to consume the NDJSON file contents using client credential headers.
curl --location --request GET 'https://analytics.{baseUrl}/bulk-data/r4/$export/AllergyIntolerance/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdGFydCI6ImU0NiIsInRvdGFsIjo0LCJ1c2VySWQiOiIxMjM2NzUwNDkifQ.aOqtYWB9Xaup4R80pGjjl4gyaQV9SXRmZaqmnBHp2oI.ndjson' \
--header 'client_id: xxx'\
--header 'client_secret: yyy'\
--header 'x-oneup-user-id: client'