Export Bulk Data for the Group

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 create your group resources, you can export the bulk data for the members of the group. To export the data, you request a list of files that you can use to retrieve the data. You can then call the endpoint for each file to download the data for the group. You can also apply search parameters to your request to specify the start date for the data and the type of resources to include in the response.

Search Parameters

You can apply the following search parameters to your request to filter the results by resource type or date.

Parameter

Description

Format

_type

Specify the types of resources to include in the response.

_type applies only to the Patient and applicable Patient Compartment resources.

Example: _type=Encounter returns only Encounter resources

analytics.<baseUrl>/bulk-data/r4/Group/<ID>/$export?_type=Encounter

Example:
analytics.1up.health/bulk-data/r4/Group/<ID>/$export?_type=Encounter

_since

Resources are included in the response if their state has changed after the specified date.

Example: Resource.meta.lastUpdated is later than the specified _since value

analytics.1up.health/bulk-data/r4/Group/<ID>/$export?_since=YYYY-MM-DD

Example:
analytics.1up.health/bulk-data/r4/Group/<ID>/$export?_since=2021-01-01

Get the Download Files List

You can use the Client Header endpoint request to get the list of download files to use to retrieve the bulk export data using the FHIR $export operator. You can then use the download files to get the group bulk data from the export endpoint.

You must use the client header request option to get the list of files. Token-authentication headers are not supported.

After you submit your request, the list of download files is returned.

Execute the Group Bulk Export Process

You can use the list of download files you retrieved to connect to the 1upHealth group export endpoint and export the group bulk data for the members you added to your group.

If you change the group resource that includes the patient list (member IDs), you must execute the bulk export operation again to capture the changes in the group.