Export Population Data

For Health Plan Partners

1upHealth customers, such as health plans, can allow their authorized health plan partners (such as providers or analytics vendors) to get access to their health plan’s data on the 1up FHIR Server. The partners that the health plan authorizes can then use 1up Exchange to export data at the population level, for a specified client ID or a group.

Before You Begin

Before you start the process to get access to the 1upHealth FHIR Server and export population-level data, make sure that you get the following information from your 1upHealth Customer Success Manager.

  • Base URL

    The is the unique web address that you use to connect to the 1upHealth FHIR Server to export data.

    The base URL has this format: https://gateway.1up.health/v1/<customer-name>/

  • Client credentials

    The client ID and client secret that you use to get your access token.

Get Access to the 1upHealth FHIR Server

As a partner of a 1upHealth customer (a health plan), you can get a client ID and client secret (client credentials) from your health plan partner to get access to the 1up FHIR Server and export data at the population level. After you have your client credentials, you can request the access token that you’ll use to export data from the FHIR Server.

You can use Postman to test the following REST API requests before you integrate them into your application.

To get your access token, include your client credentials in the request that you submit to the OAuth 2.0 server.

Get Your Access Token

To get your access token, submit the following request.

Make sure to replace the placeholder text with the correct customer name, client ID, and client secret.

curl --location 'https://gateway.1up.health/auth/realms/<customer-name>/protocol/openid-connect/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'client_id=yyy' \
--data-urlencode 'client_secret=xxx' \
--data-urlencode 'grant_type=client_credentials'

The request response includes your access token (Bearer token) and the scopes you can get access to with the token.

Use this access token in your export request to the 1up FHIR Server endpoint.

Export Data

After you get your access token, you can use it to export population-level data for a client ID or for a group.

Export Population-Level Data for a Client ID

Learn how to submit an export request to the 1up FHIR Server to get FHIR resource data at the population level and download the exported data.

Export Population-Level Data for a Group

Learn how to create a group resource, submit an export request to the 1up FHIR Server to get FHIR resource data at the population level for the members of the group, and download the exported data.