IAS lets a person retrieve their own medical records through your application - it’s distinct from Metriport’s Treatment data flow. Treatment is for clinicians providing treatment to the patient; IAS is for the patient themselves.Documentation Index
Fetch the complete documentation index at: https://docs.metriport.com/llms.txt
Use this file to discover all available pages before exploring further.
How it works
Create the patient that will be querying their records in Metriport using the Create Patient endpoint, if they don’t exist already. What changes between Treatment and IAS is the purpose of the request. You signal this with thepurposeOfUse query parameter on
Start Network Query (treatment or ias;
defaults to treatment when omitted).
For example, Start Network Query with IAS:
purposeOfUse is ias, Metriport routes the request through IAS using identity verification
artifacts that the network requires for individual access. When it’s treatment (or omitted),
Metriport routes through the Treatment rail like it does today.
Data returned from IAS will be integrated into the consolidated patient record, like everything else.
What you need to do
To use IAS, your application needs to do two things on top of your existing Treatment integration:- Verify the user’s identity via a Metriport-hosted session before their first IAS retrieval.
Verification happens at NIST IAL2 with an approved Credential Service Provider. Metriport hosts the flow — you redirect the user in and receive a
proofedIdentityIdvia webhook when they finish. - Pass the
proofedIdentityIdand an active AAL2 session on every IAS-purposed network query. AAL2 is a multifactor challenge the user satisfies in your app’s session; Metriport provides the challenge flow and returns a session ID you pass via thex-aal2-sessionheader.
The full flow
For a user who’s never used IAS in your app:- Verify their identity with
Create Identity Session. Receive
proofedIdentityIdvia theias.identity.verifiedwebhook. - Issue a multifactor challenge with
Create AAL2 Challenge. Receive
aal2SessionIdafter the user completes it. - Call your existing Start Network Query
with
purposeOfUse=iasin the query string,proofedIdentityIdin the request body, and thex-aal2-sessionheader. - When the query completes, fetch results with your existing Start Consolidated Data Query.

