Export Population-Level Data for a Client ID

After you get access to the FHIR Server and get your access token (Bearer token), you can use your access token to send a GET request or an EXPORT request to the 1up FHIR Server using the Bearer token method.

You can submit an EXPORT request for data for all FHIR resources or for a specific resource type. The base URL for all EXPORT requests at the population level is https://gateway.1up.health/v1/<customer-name>/.

You can use this base URL for the population-level endpoint with any of the other FHIR API requests.

Population-level export supports only GET and EXPORT requests to the 1up FHIR Server. PUT requests are supported only to retry a failed job. POST and DELETE requests are not supported.

If you try to submit a POST or DELETE request to the population-level endpoint, you'll receive a 403 error response.

Export All Resources

The following example request exports all FHIR resources for the specified 1upHealth customer using the base URL with bulk-export/bulk-data and $export included in the URL.

  • URL format

    https://gateway.1up.health/v1/<customer-name>/bulk-export/bulk-data/r4/$export

  • URL example

    https://gateway.1up.health/v1/ExampleCompany/bulk-export/bulk-data/r4/$export

Export a Specific Resource Type

If you only want to get data for a specific FHIR resource type, you can restrict your request to only that resource type. For this request type, you use the base URL and append the name of the resource type to the end of the URL.

  • URL format

    https://gateway.1up.health/v1/<customer-name>/bulk-export/bulk-data/r4/<resource-type>

  • URL examples

    https://gateway.1up.health/v1/ExampleCompany/bulk-export/bulk-data/r4/Patient

    https://gateway.1up.health/v1/ExampleCompany/bulk-export/bulk-data/r4/ExplanationOfBenefit

Verify the Status of the Export Operation

You can send a request to the 1up FHIR Sever Status endpoint to get status updates on the export job.

GET https://<baseURL>/bulk-data/r4/$export/job/<job-ID>