TEFCA (Trusted Exchange Framework and Common Agreement) is the legal and trust framework under which US healthcare organizations exchange records nationwide through Qualified Health Information Networks. FHIR (Fast Healthcare Interoperability Resources) is the HL7 API standard for how one system exposes and consumes clinical data. TEFCA decides who may exchange and on what terms; FHIR decides what the exchange looks like on the wire.

Mixing the two up costs real time. We have seen a quarter budgeted for "TEFCA integration" spent on FHIR endpoints that no network would ever call. We have also seen a team ship a conformant FHIR R4 server and only then learn that nationwide exchange needs participation agreements and a QHIN connection too. On our FHIR R4 platform with TEFCA connectivity the two workstreams shared almost no code. One produced resource providers and an OAuth surface; the other produced adapters, agreements and a partner registry.

What FHIR covers

FHIR R4 defines a resource model (Patient, Encounter, Observation, Coverage and roughly 140 more) and a REST API to read, write and search those resources. Around them sit search parameters, bundles for batching, operations such as $everything for chart pulls, subscriptions for change notification and Bulk Data for population-level export.

Trust is outside its scope. The specification says nothing about who may call your endpoint or which legal agreement covers the exchange. Nor does it say how a hospital in Ohio finds the record of a patient who arrived from Texas. FHIR starts after two parties have agreed to talk and standardizes the conversation itself.

A production FHIR surface also means profiles. Base FHIR is loose on purpose, so US exchange runs on sets of constraints. US Core fixes the mandatory fields and terminologies. CARIN BB shapes claims data for patient access. The Da Vinci guides cover prior authorization and payer data exchange. A server that claims R4 conformance while ignoring the profile layer will reject most of what a real partner sends.

What TEFCA covers

Point-to-point agreements do not scale to a whole country. Before TEFCA, broad reach meant joining several exchange networks, each with its own agreement, technical minimum and politics. TEFCA uses two levels instead. A small number of designated QHINs connect to each other under one Common Agreement. Everyone else joins through a QHIN as a participant or subparticipant.

The framework fills in what FHIR leaves open. The Common Agreement sets the legal terms every participant inherits. Exchange purposes state why a query is allowed (treatment, payment, individual access, public health). The Recognized Coordinating Entity (RCE) handles designation and conformance. A technical minimum lists the functions every QHIN supports: patient discovery, record query and message delivery.

That minimum was built on IHE document exchange (the XCA and XCPD family), because nationwide exchange existed before FHIR matured and the installed base is document-shaped. The TEFCA FHIR roadmap moves the framework toward native FHIR exchange, and newer versions of the Common Agreement formalize it. A team scoping TEFCA work today should plan for both: document query to reach today's participants and FHIR for where the framework is heading.

FHIR R4 API layer below the TEFCA trust framework and QHIN network layer, with clinical systems exchanging data
Bottom layer: the FHIR API of each system. Top layer: TEFCA participation through a QHIN under the Common Agreement.

TEFCA vs FHIR side by side

TEFCA vs FHIR side by side
Dimension FHIR TEFCA
What it is An API standard and resource model (HL7) A trust framework and legal agreement (ONC / RCE)
Layer Wire format, endpoints, operations Governance, participation, network topology
Scope of a build The data surface of one system An organization's place in nationwide exchange
Defines trust? No; it assumes the parties already agreed Yes; that is what it is for
Defines data format? Yes: resources, profiles, terminologies By reference to standards such as IHE and FHIR
Typical artifacts Resource providers, OAuth scopes, capability statement Participation agreements, QHIN adapters, partner registry
Who you deal with Your API consumers and their apps A QHIN, and through it every other participant

A short version that holds up in projects: FHIR describes how one endpoint speaks, and TEFCA describes who may ask it a question and through which network.

Where the two meet in a real build

They meet in the adapter layer. On our platform, TEFCA operations such as patient discovery and document query sit behind a typed adapter contract for each network partner. Epic Nexus, CommonWell and eHealth Exchange all implement that contract, and the quirks every network has stay inside its own adapter. A new partner is a row in a trusted-partner registry.

Security splits the same way. The FHIR side authenticates apps through SMART on FHIR v2.1 with PKCE and checks token scopes on each endpoint. The TEFCA side authenticates organizations through certificates, signed agreements and exchange-purpose assertions. One audit trail has to cover both, so that each cross-network read traces to the authority behind it; that trail is also what an info-blocking review examines.

Consent is the third meeting point. The TEFCA individual-access purpose and the FHIR Consent resource deal with the same question from two sides. When every read and write is scoped to the Consent that authorized it, review questions get direct answers; when consent lives only on paper, the gaps show up during review and resist small fixes.

What you build for each

On the FHIR side: resource providers against the profiles your partners use, a terminology service so ValueSet expansion and code validation stay consistent across consumers, an OAuth surface that third-party apps can configure from your well-known endpoints, and Bulk Data jobs that finish multi-million-resource pulls. Our interoperability platform case lists each of these parts.

On the TEFCA side, a decision comes before any code: participate directly through a QHIN or as a subparticipant through an intermediary. It is a business choice with technical consequences. The engineering follows: one adapter per network behavior, a registry that turns partners into configuration, and an audit chain showing that each exchange happened under a valid purpose.

The same split between contract and source quirks applies when your consumers are internal teams; that is how our clinical data aggregation hub is organized. When the job is moving files under audit, the trust problem returns at a smaller scale (scoped tokens, virus scanning, retention), as in our HIPAA audited file proxy. For a US health data platform, plan TEFCA and FHIR as two workstreams, connect them at the adapter layer and audit everything that crosses between them.