Study guide · Health technology

HL7 FHIR Explained: Resources, APIs, and Interoperability

A study guide to HL7 FHIR: what resources are, how the REST API works, how FHIR compares with HL7 v2 and CDA, and where SMART on FHIR and US Core fit in.

Rows of server cabinets under blue cable trays in a bright data centre.
Photo by Taylor Vick on Unsplash

Key takeaways

  • FHIR models health data as resources with a defined structure and a URL.
  • Data is exchanged with RESTful HTTP calls (GET, POST, PUT, DELETE), usually in JSON.
  • R4 is the most widely implemented release; R5 was published in 2023.
  • SMART on FHIR adds OAuth 2.0-based authorization for apps.
  • Implementation guides such as US Core constrain FHIR for real-world use.

What is HL7 FHIR?

FHIR is a specification from HL7 International that combines lessons from earlier HL7 standards with common web technologies: HTTP, REST, JSON, XML, and OAuth. Its goal is to make health data exchange easier to implement without giving up clinical meaning.

The core idea is the resource: a small, reusable unit of health data with a defined set of elements, a type, and a unique identifier. Resources link to each other—an Observation points to the Patient it belongs to and the Encounter in which it was recorded.

What are the most common FHIR resources?

The base specification defines well over a hundred resource types. These are the ones students and developers meet first:

Commonly used FHIR resources
ResourceRepresents
PatientDemographics and identifiers for a person receiving care
PractitionerA clinician or other healthcare professional
OrganizationA hospital, clinic, payer, or other organization
EncounterAn interaction such as a visit or admission
ObservationMeasurements and findings: vital signs, lab values, survey answers
ConditionA diagnosis, problem, or health concern
MedicationRequestAn order or prescription for a medicine
AllergyIntoleranceAn allergy or intolerance and its reactions
DiagnosticReportA report grouping results, such as a lab panel or imaging report
ImmunizationA vaccine administered or reported

How does the FHIR REST API work?

Each resource type has its own endpoint on a FHIR server. Clients use standard HTTP verbs to read, search, create, and update resources:

FHIR RESTful interactions (illustrative)
InteractionHTTP requestPurpose
readGET [base]/Patient/123Fetch one resource by ID
searchGET [base]/Observation?patient=123&category=vital-signsFind resources matching criteria
createPOST [base]/ObservationAdd a new resource
updatePUT [base]/Condition/456Replace an existing resource
historyGET [base]/Patient/123/_historySee prior versions

Search results come back as a Bundle resource—a container holding the matching resources plus paging links.

How does FHIR compare with HL7 v2 and CDA?

HL7 standards compared
StandardFormatTypical use
HL7 Version 2Pipe-delimited messagesEvent messages inside hospitals: admissions (ADT), orders, results
CDA / C-CDAXML documentsClinical documents such as discharge summaries and continuity-of-care records
FHIRResources over REST (JSON/XML)APIs for apps, patient access, and system-to-system exchange

What are SMART on FHIR and US Core?

Together, these explain how a patient can connect an app to their provider's record. For the bigger picture of what an EHR stores, read What is an electronic health record?.

SMART on FHIR
A set of open specifications that use OAuth 2.0 and OpenID Connect so third-party apps can launch from an EHR or patient portal and access FHIR data with the user's permission.
Implementation guide (IG)
A document that constrains and extends base FHIR for a specific use, such as which elements are required.
US Core
The HL7 implementation guide that defines minimum FHIR requirements for U.S. data exchange, aligned with USCDI data classes.

Which FHIR version should you learn?

Release 4 (R4), published in 2019, introduced the first normative (stable) content and is the version most production systems and national implementation guides use. Release 5 (R5) followed in 2023. If you are studying for practical work, start with R4 and US Core, then review what changed in R5.

A FEW QUICK ANSWERS

Common questions

What does FHIR stand for?

Fast Healthcare Interoperability Resources. It is pronounced like the word "fire".

Is FHIR a replacement for HL7 v2?

Not entirely. HL7 v2 remains widely used inside hospitals. FHIR is increasingly used for APIs, apps, and new integrations, and the two often coexist.

Does FHIR use JSON or XML?

Both are supported, along with RDF. JSON is the most common choice for web and mobile apps.

CHECK THE ORIGINAL GUIDANCE

Sources

  1. FHIR OverviewHL7 International
  2. FHIR RESTful APIHL7 International
  3. SMART on FHIRSMART Health IT, Boston Children's Hospital
  4. US Core Implementation GuideHL7 International

This guide was last reviewed against its sources on November 14, 2026. Source dates are shown where available.