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.
{
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJibGIwMjB3Y09zeWFza01rNnNJYmNPb3U1NnhYNTRvUFpEY0hVWG9XanZvIn0.eyJleHAiOjE3MTMzODk5NzksImlhdCI6MTcxMzM4NjM3OSwianRpIjoiZmFlZDJjMTYtMTc4ZS00ZWU5LTg0OGYtZTViMjljNmYwYzNhIiwiaXNzIjoiaHR0cHM6Ly9nYXRld2F5LjF1cGhlYWx0aGRldjIuY29tL2F1dGgvcmVhbG1zLzF1cGhlYWx0aGRldjIiLCJhdWQiOiJhY2NvdW50Iiwic3ViIjoiZWYyODBjN2UtMmJiZi00NWVjLTh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earer",
"not-before-policy": 0,
"scope": "email r4|user/*.rs profile"
}
In this example, the scope includes r4|user/*.rs, which means that you can read data for all resource types.
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.