Connect Health System EHRs, Sensors & Wearables Data

1upHealth allows users to connect data from sensors, wearable devices, and data within health system electronic health records. As a developer, you can read your users' wearable data or clinical health data from patients who are using your app. We believe data from external health systems and sensors is a vital, missing piece to improve care and reducing costs. Wearable devices and data from other clinics and hospitals fills in this gap. If you would like OAuth client keys to the 1upHealth API, create an account and visit our developer console.


  1. Your app must direct users to the 1upHealth connect api url to link a specific wearable device or health system.
  2. The user will see the systems authentication screen and allow access to their data.
  3. Next, the user is redirected back to your app redirect_uri. 1upHealth syncs data from that system into that user's FHIR resources via a backend process every 2 minutes.
  4. Your app can query that user's resources which are stored in the FHIR format as normal.

Supported Devices

We are constantly adding consumer and medical devices so users and apps can be flexible in their usage. Currently, 1upHealth supports these methods.


Supported Health Systems

Currently 1upHealth supports hundreds of health systems. You can find the full list by querying the endpoint here. Use clinical for clinical data from 1upHealth supported health systems or device to connect to sensors or wearable devices.

curl -XGET ''
curl -XGET ''

Content from that response will contain the ids of the health systems or wearable devices. A single entry from that response will look like this {"id":4709,"name":"Fitbit","resource_url":""} where you will use the id 4709 in this case for future requests.

How to connect

Before you can connect users to devices or health systems, you must create a user via the 1upHealth user management api. Application developers that want to programmatically direct users to connect devices and health systems must send users to the following url, and pass the user's access token and your app's client id in as params.{clinical || device}/healthsystemordeviceid?client_id=clientidclientidclientid&access_token=accesstokenaccesstoken

For example direct users to this url for FitBit.

As the user follows that link, 1upHealth will redirect them to the OAuth2 authorization page for the device or clinical system. The user will enter their credentials for that wearable app or health system. Here are some test credentials for health systems that use FHIR.1upHealth will be given an access token for that user. We will direct that user back to your app's redirect_uri (associated with the client_id). And we will begin collecting data from that wearable device and making it available to your application.

Accessing the connected data

Wearable, sensor, and clinical data will automatically flow into the FHIR API. Wearable and sensor information will be stored as an Observation resource once connected. Clinical data from health systems will be stored as their native FHIR resources. 1upHealth will keep data in sync with the source systems within a 2 minute time frame. Apps can access data to a specific user by passing in an authorization bearer access_token for that user. Additionally, apps can modify their query to adjust which source metric or they want data from. Here are a few examples. Each of these queries will have to be accompanied by the Authorization header containing the user's bearer auth token.

Query new clinical data using the same access token (or new access token if the original expired) from above.

curl -X GET \
  -H "Authorization: Bearer accesstokenaccesstoken"

List device Observations

curl -X GET
  -H "Authorization: Bearer accesstokenaccesstoken"

Query by measured metric

We use LOINC codes to identify measurements like steps (66334-4).

curl -X GET
  -H "Authorization: Bearer accesstokenaccesstoken"

Connecting an External System: Start to finish

First, list the health systems you want to connect to.

curl -XGET ''

Let's choose EPIC's test FHIR endpoint with id 4706

Now create a new user

curl -XPOST ''

Use your user's code to get an access_token via 1upHealth's OAuth2 token endpoint.

curl -X POST \
  -d "client_id=clientidclientidclientid" \
  -d "client_secret=clientsecretclientsecret" \
  -d "code=authcodeauthcodeauthcode" \
  -d "grant_type=authorization_code"


Now direct your user to the following url so they can authorize the EPIC app.

For testing purposes, use this username / password combo: fhirjason / epicepic1, and authorize your app. After authorization, the user will be sent back to your app.

In a few moments, the 1upHealth backend process will have pulled in the connected systems data into your user's permissions. You can then use your user's access_token to query their demographics.

curl -X GET \
  -H "Authorization: Bearer accesstokenaccesstoken"

Or query their conditions for a specific code

curl -X GET \
  -H "Authorization: Bearer accesstokenaccesstoken"

Or make any other FHIR query against the resources that may have been pulled in. Use this same process to link any wearable or health system's data with your users.