Key takeaway
FHIR integration is the work of exchanging healthcare data through HL7 FHIR REST APIs, typically FHIR R4 constrained by US Core profiles and authorized with SMART on FHIR (OAuth 2.0). A production FHIR integration covers authorization, resource mapping, paging and error handling, terminology, and ongoing monitoring, not just HTTP calls.
Last reviewed November 17, 2026
What FHIR integration covers
FHIR (Fast Healthcare Interoperability Resources) models clinical and administrative data as resources such as Patient, Encounter and Observation, exchanged as JSON over RESTful HTTP. In the US, most certified EHRs expose FHIR R4 endpoints that conform to the US Core Implementation Guide, which maps to the data classes defined in USCDI.
A FHIR integration project usually involves three layers: authorization (who is allowed to call which endpoints and for which patients), data exchange (search, read, and sometimes create or update), and data normalization (turning profiles, extensions and code systems into something your application can use reliably).
We treat FHIR as one interoperability option among several. Some data is still only available through HL7 v2 feeds, vendor-specific APIs or flat files, and we say so early rather than discovering it during build.
Common FHIR use cases
Patient-facing apps
Let patients connect their records from a health system's FHIR endpoint using standalone SMART launch, then display problems, medications, allergies and results.
Clinician apps inside the EHR
Launch a decision-support or documentation tool from the EHR with patient and encounter context passed through the SMART launch.
Population data extracts
Use FHIR Bulk Data ($export) with backend services authorization to pull NDJSON files for analytics, quality measures or care management cohorts.
Scheduling and intake
Read Slot and Appointment resources, or write appointments where the server supports it, to power online booking and pre-visit intake.
Payer and prior authorization flows
Support payer-facing APIs and data exchange patterns tied to the CMS Interoperability and Prior Authorization Final Rule, which phases in requirements from 2026 to 2027.
Decision support at the point of care
Respond to CDS Hooks events such as patient-view or order-select with cards that suggest actions, where the EHR supports CDS Hooks.
Technical approach to FHIR integration
Standards and profiles
We build against FHIR R4 and the US Core Implementation Guide version the target server declares in its CapabilityStatement. We read the CapabilityStatement first to confirm supported resources, search parameters, interactions and SMART configuration rather than assuming them.
Where USCDI data elements matter to your product, we trace each one to its US Core profile and note which elements are must-support and which are optional on the server you are connecting to.
Authentication and authorization
User-facing access uses the SMART App Launch framework (OAuth 2.0 and OpenID Connect) with PKCE and the narrowest scopes your feature needs. System-to-system access uses SMART Backend Services, where the client authenticates with a signed JWT assertion under the client credentials grant.
- Scopes requested per feature, not per convenience
- Access tokens kept server-side where possible; refresh tokens encrypted at rest
- Token lifetimes and revocation handled explicitly
Data mapping and terminology
FHIR resources carry codes from LOINC, SNOMED CT, RxNorm, ICD-10-CM and CPT, often with local codes alongside. We build mapping tables, keep source codes, and record provenance so you can trace any value in your database back to the server and resource version it came from.
Error handling and resilience
We handle paging through Bundle next links, OperationOutcome responses, HTTP 429 throttling, token expiry mid-session, and partial data. Retries use backoff with idempotency safeguards so a write is not duplicated after a timeout.
Testing with sandboxes
We test against public reference servers and vendor sandboxes first, using synthetic patients only. We then validate against the client's non-production environment, because real configurations differ from sandboxes in enabled resources, scopes and data quality.
Supported FHIR resources
The resources below are the ones we most often integrate. Actual availability, supported interactions and search parameters depend on the server and the organization's configuration.
| FHIR resource | Typical use |
|---|---|
| Patient | Demographics, identifiers and patient matching |
| Encounter | Visit context, admission and discharge details |
| Observation | Lab results, vital signs, social history, survey answers |
| Condition | Problem list items and encounter diagnoses |
| MedicationRequest | Active and historical medication orders |
| AllergyIntolerance | Allergies and adverse reactions |
| DocumentReference | Clinical notes and attached documents such as C-CDA |
| Appointment / Slot / Schedule | Scheduling, availability and booking |
| Practitioner / Organization / Location | Provider directory and care team context |
Security considerations for FHIR integrations
A FHIR endpoint returns ePHI, so the integration inherits HIPAA Security Rule obligations wherever that data lands: in your API layer, caches, queues, logs and analytics. The split below separates what HIPAA requires from what is good practice and what is your organization's job.
HIPAA requirement
What the rules themselves require
- Unique user identification and access control for anyone who can view FHIR-sourced data (45 CFR 164.312(a))
- Audit controls that record access to ePHI (164.312(b))
- Person or entity authentication for users and systems (164.312(d))
- Transmission security assessed and implemented for data in transit (164.312(e)); encryption is addressable but a documented decision is required
Recommended practice
Widely accepted security practice
- TLS 1.2 or higher on every hop, with certificate validation enforced
- Least-privilege SMART scopes and short-lived access tokens
- Keeping resource payloads and tokens out of application logs
- OWASP API Security Top 10 review of the integration layer
Architecture decision
Depends on your product and risk analysis
- Caching FHIR data locally versus fetching on demand, based on latency needs and risk analysis
- Storing raw FHIR JSON alongside normalized tables for provenance
- Using a FHIR facade or internal FHIR server as the integration boundary
Your organization's responsibility
Policies and operations software cannot do
- Business associate agreements with your hosting provider and any vendor that touches ePHI
- Including the integration in the Security Rule risk analysis (164.308(a)(1)(ii)(A))
- Approving which apps and scopes are allowed to connect to the EHR
- Workforce access reviews and incident response procedures
Access and onboarding process
- 1
Confirm the target servers
List each EHR, payer or network you need, its FHIR version and US Core version, and whether access is patient-authorized, user-authorized or system-level.
- 2
Register the app
Register with each vendor's developer program to obtain sandbox client IDs. Registration rules, review steps and fees vary by vendor and change over time.
- 3
Build and test in sandboxes
Implement authorization and resource flows against sandbox data, then run conformance checks such as the FHIR validator against your outputs.
- 4
Customer configuration
For provider-authorized and system access, the client organization approves the app, enables scopes and provisions production credentials under its own EHR contract.
- 5
Go live and monitor
Deploy with alerting on authorization failures, error rates and data freshness, and re-verify when the server upgrades its FHIR or US Core version.
Integration architecture options
| Option | When it fits | Trade-offs |
|---|---|---|
| Point-to-point | One app talking to one or two FHIR servers | Fast to start; each new server adds custom code and monitoring |
| Interface engine (Mirth Connect, Rhapsody, Iguana) | You also need HL7 v2 feeds or transformation between formats | Strong routing and monitoring; needs engine expertise and licensing decisions |
| Integration platform or aggregator | Many EHRs, limited internal integration staff | Faster coverage; adds a business associate and a dependency on their data model |
| FHIR facade | Exposing your own data as FHIR or normalizing many sources behind one API | Clean contract for consumers; you own the mapping and conformance work |
Timeline and cost factors
As a rough, scope-dependent planning range, a read-only FHIR integration with one EHR sandbox can take 4 to 8 weeks of engineering, while multi-EHR or write-back integrations often take several months. These are indicative ranges, not quotes, and customer approval cycles frequently set the real pace.
- Number of distinct EHR vendors and versions
- Read-only versus write-back requirements
- Bulk Data and backend services versus user-launched access
- Terminology mapping depth and data quality cleanup
- Vendor program fees and the client's internal review timeline
How we work on FHIR projects
We start with a short discovery that maps each data element you need to a FHIR resource, profile and server, and flags gaps that need another interface. We then build the authorization flow first, because it is the part most likely to change scope.
Throughout the build we test with synthetic data, document every mapping decision, and hand over runbooks for token rotation, version upgrades and incident response.
Frequently Asked Questions
What is the difference between FHIR and HL7 v2?
HL7 v2 is a pipe-delimited messaging standard that pushes events such as admissions and results between systems, usually over MLLP. FHIR is a REST API standard where apps request resources on demand. Most health systems run both, and many integrations need both.
Which FHIR version should we build for?
In the US, FHIR R4 with US Core profiles is the practical baseline because ONC certification criteria reference it. Newer FHIR releases exist, but production EHR support for them is limited, so we design for R4 and keep the mapping layer version-aware.
Can we write data back to the EHR through FHIR?
Sometimes. Many servers support read and search broadly but limit create and update to specific resources and use cases. Write access usually needs explicit approval from the client organization, so we confirm it before designing workflows that depend on it.
What is FHIR Bulk Data?
FHIR Bulk Data Access defines the $export operation for retrieving large sets of resources as NDJSON files, asynchronously. It is used for population health, analytics and payer data exchange, and it is normally authorized with SMART Backend Services rather than a user login.
Does using FHIR make an app HIPAA compliant?
No. FHIR is a data standard, not a security control set. HIPAA obligations depend on whether you are a covered entity or business associate and on how you protect ePHI once it leaves the FHIR server.
What are CDS Hooks?
CDS Hooks is an HL7 specification that lets an EHR call an external decision-support service at defined workflow moments, such as opening a chart or signing an order. The service returns cards with information or suggested actions. EHR support varies by vendor and configuration.