For developers
Quest and Labcorp lab results, one FHIR API.
Flexpa returns a patient's lab results from both Quest Diagnostics and Labcorp through one FHIR API. Quest results come through Quest's patient-facing FHIR API after the patient signs in to Quest. Labcorp results come through TEFCA Individual Access Services after the patient verifies their identity once with CLEAR, ID.me or Persona. Your app reads both from the same endpoints, with the patient's authorization.
Updated 2026-11-26
How it works
- Patient authorizesQuest sign-in or TEFCA identity check
- Flexpa retrievesQuest API or TEFCA query
- One FHIR APIObservation, DiagnosticReport, DocumentReference
Two labs, two routes
| Quest Diagnostics | Labcorp | |
|---|---|---|
| Network | Quest's patient-facing FHIR API | TEFCA Individual Access Services |
| How the patient authorizes | Signs in to their Quest account | Verifies identity once with CLEAR, ID.me or Persona |
| What comes back | FHIR Patient, Observation and DiagnosticReport | C-CDA documents as DocumentReference; FHIR resources with C-CDA to FHIR conversion |
| Where result values live | Observation, category laboratory | Inside the C-CDA, and in converted FHIR resources |
How patients connect each lab
Quest Diagnostics
- 1In Flexpa Consent, the patient searches for Quest Diagnostics.
- 2The patient signs in on Quest's own page and approves access.
- 3Flexpa retrieves the available results.
- 4Your app reads Observation and DiagnosticReport with the patient access token.
Labcorp
- 1In Flexpa Consent, the patient chooses the national exchange (TEFCA).
- 2The patient verifies their identity with CLEAR, ID.me or Persona.
- 3Flexpa queries the network and retrieves documents from matching facilities, Labcorp included.
- 4Your app reads DocumentReference, and structured results when C-CDA to FHIR conversion is on.
Read the results
curl "https://api.flexpa.com/fhir/Observation?patient=$PATIENT_ID&category=laboratory" \
-H "Authorization: Bearer $ACCESS_TOKEN"curl "https://api.flexpa.com/fhir/DocumentReference?patient=$PATIENT_ID" \
-H "Authorization: Bearer $ACCESS_TOKEN"Good to know
- TEFCA is enabled per application. Email partnerships@flexpa.com to turn it on. Quest is a provider connection in the endpoint directory.
- Structured FHIR from Labcorp documents needs C-CDA to FHIR conversion, included from the Scale plan and an add-on on Startup and Growth. Not every document yields structured results.
- Labcorp went live for TEFCA Individual Access Services through the CommonWell network in September 2026. A new record can take about 24 to 72 hours to become available for exchange.
- Use meta.tag to tell sources apart: PatientAuthorizationId identifies the connection, and AuthorizationType is OAUTH for a sign-in source like Quest and IAL2 for records retrieved over the national exchange.
- Methods, units and reference ranges differ between labs. Keep each lab's own reference range with its value.
- An AI agent connected through the Flexpa records MCP server reads the same lab results once the patient authorizes.
Questions
Is there an API for Quest Diagnostics and Labcorp lab results?
Yes. Flexpa returns patient-authorized lab results from both labs through one FHIR API. Quest results come from Quest's patient FHIR API after the patient signs in to Quest. Labcorp results come through TEFCA Individual Access Services after the patient verifies their identity with CLEAR, ID.me or Persona.
Why do Quest and Labcorp results arrive in different formats?
They reach Flexpa over different networks. Quest returns FHIR Observation and DiagnosticReport resources. Labcorp returns C-CDA documents through TEFCA, which Flexpa wraps as DocumentReference and, with C-CDA to FHIR conversion, turns into FHIR resources where it can.
Does my app need TEFCA to get Labcorp results?
Yes. Labcorp results reach Flexpa through TEFCA Individual Access Services, which is enabled per application. Email partnerships@flexpa.com to turn it on. Quest does not need TEFCA.
Can an AI agent read Quest and Labcorp results?
Yes. An agent connected through the Flexpa records MCP server can read the same lab results once the patient authorizes the connection.