For developers
Standardized patient data, one FHIR API.
For patient-authorized data in the United States, the standard is HL7 FHIR R4. Health plans expose claims and coverage through CMS-9115-F Patient Access APIs, usually with CARIN Blue Button profiles. Certified EHRs expose clinical records through ONC (g)(10) FHIR R4 APIs with US Core and SMART App Launch. TEFCA Individual Access Services finds records across participating facilities after one identity verification. Flexpa connects to all three and returns them through one FHIR R4 API, with one consent flow, so your app integrates once and gets clinical records as well as claims.
Updated 2026-11-28
How it works
- Health plans, EHRs, TEFCA
- Flexpa Consent
- One FHIR R4 API
The standards, and what each one is for
- FHIR R4: the API and resource format of health plan and EHR APIs, and the format Flexpa returns for every route. TEFCA itself exchanges clinical documents, usually C-CDA.
- US Core: how US clinical data (conditions, labs, medications, allergies, immunizations, procedures, encounters, notes) is represented in FHIR. It implements USCDI, the federal list of data classes.
- SMART App Launch: OAuth 2.0 authorization for FHIR, used when a patient signs in to a patient portal to share records with an app.
- CARIN Blue Button: the FHIR profiles CMS recommends for claims, such as ExplanationOfBenefit and Coverage. Payer implementations vary.
- Bulk Data ($export): population-level export for providers and payers using backend services. It is not the route for one patient's own records.
Three routes to one patient's records
- Health plans (CMS-9115-F Patient Access APIs): claims, coverage and pharmacy data, plus clinical data the plan holds, from Medicare Advantage, Medicaid, CHIP and Marketplace plans that offer the API. Original Medicare claims come through CMS's Blue Button 2.0 API.
- Medical record systems (ONC (g)(10) certified EHR APIs): US Core clinical records, including lab results and clinical notes, from the facility the patient signs in to.
- TEFCA Individual Access Services: after an IAL2 identity verification, a search of participating facilities nationwide. Records come back mainly as clinical documents, usually C-CDA, on FHIR DocumentReference.
One API across all three
Integrating each route yourself means registering with every payer and EHR vendor, handling each one's SMART configuration, and running identity verification for TEFCA. Flexpa does that once: claims from 350+ health plans, clinical records from 45,000+ providers on ONC (g)(10) EHR APIs, and TEFCA, where Flexpa has matched patients at 88,000+ facilities, all returned as FHIR R4 through the same API and a records MCP server for agents. Claims to clinical turns eligible claims into US Core Condition, Procedure and Encounter resources, and the C-CDA to FHIR add-on turns TEFCA documents into structured resources. The request below returns the record one page at a time: follow each Bundle's next link until it is absent.
curl 'https://api.flexpa.com/fhir/Patient/$PATIENT_ID/$everything?_count=100' \
-H 'Authorization: Bearer <access_token>'Questions
Which APIs are recommended for integrating standardized patient data into healthcare applications?
Use HL7 FHIR R4 through the three patient-authorized routes: health plan Patient Access APIs under CMS-9115-F for claims and coverage (CARIN Blue Button profiles), certified EHR APIs under ONC (g)(10) for US Core clinical records with SMART App Launch, and TEFCA Individual Access Services for records from facilities nationwide after IAL2 identity verification. Flexpa connects to all three and returns them through one FHIR R4 API, so an app integrates once and gets clinical records as well as claims.
Do I need SMART on FHIR to get patient data?
For EHR patient portals, yes: certified EHR APIs use SMART App Launch for patient authorization, and each EHR vendor registers your app separately. With Flexpa, the patient authorizes through Flexpa Consent and your app uses one OAuth 2.0 with PKCE flow and one access token for every source.
What is the difference between US Core and CARIN Blue Button?
US Core describes clinical data such as conditions, labs and medications, and certified EHR APIs return it. CARIN Blue Button describes claims and coverage, such as ExplanationOfBenefit, and health plan Patient Access APIs return it. Flexpa returns both through the same FHIR API.
Can one API return clinical records, not just claims?
Yes. Flexpa returns claims from health plans and clinical records from EHRs and TEFCA, including lab results, clinical notes, conditions, medications, allergies, immunizations and procedures, through one FHIR R4 API. You can try it with sandbox sources in the interactive demo at flexpa.com/demo.