
Overview
Getting started with our Medical API is pretty easy, you’ll just need take the following steps:- Create a developer account.
- Generate an API key.
- Integrate your app with Metriport.
- Create Facilities and Patients.
- Query for Patient Data.
- Get Patient Medical Data.
- Contribute Medical Data.
- Request API access.
1. Create a developer account
Click me to go to the developer dashboard!
This will take you to the Metriport developer dashboard where you can create your Metriport
account, if you don't have one already.
2. Generate an API key
After we approve your access request, take the following steps to get your API key:- Toggle the
Sandboxswitch in the Dashboard navbar to enterSandboxmode (learn more about this here). - In the left hand menu, click
Developers. - On the Developers page, you’ll be able to click the
Generate API Keybutton.
3. Integrate your app with Metriport
Note that there are two ways to receive data from Metriport:- Webhook: Metriport sends patient data to your app when it becomes available:
- your application exposes a webhook (endpoint), which Metriport calls when there’s Patient data available after initiating a query;
- to learn more about how the Webhook flow works, see our Webhooks guide.
- API: Your app requests data from Metriport:
- your application polls Metriport for Patients’ medical data after initiating a query to fetch a Patient’s documents;
4. Create Facilities and Patients
For the remainder of the steps, you are able to either use
the Dashboard UI, or the API - whatever you prefer!
Pro-tip: you can use our handy SDK on your server
if you’re using Node:
Facilities and Patients. First,
you’ll need to create your Facilities.
In Metriport, a
Facility is a location that a Patient
receives some form of treatment. You can create multiple
Facilities to represent each of your care locations.
Note that for telehealth practices, these can be virtual
locations.Facility by either:
Creating Facilities using the API
See the Create Facility endpoint in our API reference.Creating Facilities using the Dashboard
- On the
Facilitiespage, clickCreate Facility. - Fill in the details and submit the form to add your Facility.
Facilities, you can create the Patients that you treat in each facility.
You can create Patients by either:
Creating Patients using the API
See the Create Patient endpoint in our API reference.Creating Patients using the Dashboard
- On the
Patientspage, clickCreate Patient. - Fill in the details and submit the form to add your Patient.
When you create a Patient, Metriport automatically links
the Patient to all HIE data sources related to the Patient
based on the demographic and/or identification information
provided when creating the Patient.
5. Query for Patient Data
Now, you’re able to query for your Patients’ medical data from all available health data networks including HIEs, pharmacies, and laboratories. As we query for data, we automatically convert outside records (like XML C-CDA docs) intoFHIR resources 🔥,
deduplicate the data, standardize it, enrich it with medical code lookups and crosswalks, and store the resulting data
on our servers for you to access at any time through a single endpoint.
To query for a Patient’s available data, you can either:
Query for Patient Data using the API
Start an asynchronous Network Query to initiate a query for the Patient’s medical data from all available health data networks.When data from each source is ready, we’ll send you
webhooks (
network-query.hie, network-query.pharmacy,
network-query.lab) - see the webhooks
page for
more details.If you don’t have webhooks integrated, you can use the
Get Network Query
Status
endpoint to check the status of the query.
Query for Patient Data using the Dashboard
- On the
Patientspage, click on the desired Patient row to be taken to their interactive medical record chart summary page. - If this is the first time viewing this Patient’s chart, Metriport will automatically retrieve the Patient’s medical data from all available health data networks;
- Otherwise, you can click
Refresh Patient Dataanytime to get the latest medical data from external sources.
Note: Only ~95% of patients will have data.
6. Get Patient Medical Data
The aforementioned deduplicated, standardized, and enrichedFHIR data will allow you to get the source of truth for a Patient’s medical data to better understand and treat your Patients.
We refer to this as Consolidated Data in Metriport.
The Consolidated Data Query retrieves the cached
result of your most recent Network Query. It does not
fetch new data from external sources - use Network Query
for that.
7. Contribute Medical Data
To uphold data quality with Metriport’s data sources, and improve patient health outcomes, it’s required that your organization reciprocates medical data exchange by making net-new patient clinical data available to the networks. Some examples of this include:- Remote patient monitoring observations such as weight and blood pressure;
- Clinical progress notes from patient encounters;
- Lab results
- Upload FHIR data using our Create Patient’s Consolidated Data endpoint.
- Upload binary documents using the Upload Document endpoint.
8. Request API access
To start using the Medical API for production workloads, with real patient data, you can take the following steps to request production API access:- In the left hand menu, click
Products & Billing. - Click
Get Startedon the Medical API product. - Press
Book an Intro Calland select a time and a date to talk to us.

