Healthcare

FHIR API integration: what healthcare teams should plan for

· 6 min read · By YLinkTech

FHIR API integration means connecting your application to an electronic health record (EHR), a payer or another health system through HL7’s FHIR standard, which exchanges health data as structured resources over a web API. Calling the endpoint is the easy part. Most of the effort goes into choosing the right version and implementation guide, getting authorization approved, mapping imperfect data and testing against each vendor’s server.

This article is general information, not legal or regulatory advice. Rules and adopted standard versions change, so confirm what applies to you with your own compliance and legal advisers.

What FHIR is, and what it does not promise

HL7 describes FHIR (Fast Healthcare Interoperability Resources) as a standard for exchanging healthcare information electronically. Its specification overview explains that the basic building block is a resource, such as Patient or DiagnosticReport, and that all exchangeable content is defined as a resource with a common structure, common metadata and a human-readable part.

Two design choices matter for planning. First, the base resources cover the needs most implementations share, and a built-in extension mechanism covers the rest. Second, each server publishes a CapabilityStatement that describes the interfaces it exposes.

The practical result is that “supports FHIR” does not mean two servers behave the same way. Optional elements, extensions and search support differ between vendors and between sites running the same vendor. FHIR also does not replace everything that came before it. HL7 notes that it can be used alone or alongside older standards, and many hospitals still run HL7 v2 feeds next to their FHIR APIs.

Choose the version and implementation guides first

HL7 lists Release 5 as the current published version of FHIR. That does not make it the version you will integrate with. The SMART App Launch guide is built on FHIR R4, and as of November 2026 the ONC test method for the standardized API criterion referenced US Core 6.1.0, SMART App Launch 2.0.0 and Bulk Data Access 1.0.0 as base standards, with newer versions approved as options. Build for what the servers you connect to expose today, and read their CapabilityStatement before you estimate.

Layer What it governs Why it affects your plan
FHIR base specification Resources, data types, the REST API, JSON and XML formats Sets the version your client library and data model must match
US Core implementation guide US profiles that narrow the base resources and mark required and must-support elements Tells you which fields you can reasonably expect from a certified US system
SMART App Launch Authorization, launch context and scopes, based on OAuth 2.0 Decides how your app signs in and what it may read or write
Bulk Data Access Export of data for groups of patients Needed for population analytics, quality reporting and data platform loads

Know which rules shape your FHIR API integration

Two US programs explain why FHIR endpoints exist where they do.

The ONC Health IT Certification Program includes a criterion, 45 CFR 170.315(g)(10), for a standardized API for patient and population services. Certified health IT that meets it must support single-patient and multiple-patient access, app registration, and authorization for patient, user and system scopes. Developers must also publish their API documentation at a public link. This is why most certified EHRs offer a FHIR endpoint and a developer portal.

On the payer side, the CMS Interoperability and Prior Authorization final rule (CMS-0057-F) requires impacted payers to implement and maintain FHIR APIs. The CMS fact sheet lists Medicare Advantage organizations, state Medicaid and CHIP fee-for-service programs, Medicaid managed care plans, CHIP managed care entities and Qualified Health Plan issuers on the Federally Facilitated Exchanges. It describes Patient Access, Provider Access, Payer-to-Payer and Prior Authorization APIs, with API compliance dates generally beginning January 1, 2027 and exact dates varying by payer type.

Whether either program applies to your organization depends on your role. Treat this as orientation and ask your advisers for a firm answer.

Start the authorization work early

The SMART App Launch guide defines patterns based on OAuth 2.0 for apps to authorize, authenticate and integrate with FHIR systems. It covers two situations:

  • User-facing apps. The app launches from inside an EHR session or on its own, and can receive launch context such as the selected patient.
  • Backend services. An automated client connects with no user involved in the launch, which suits scheduled data pulls and bulk export.

Access is expressed as scopes, and the scope syntax changed between SMART v1 and v2, so check which one each server accepts.

The code is rarely what delays a project. Registration with each EHR vendor or health system, security questionnaires and scope approval take calendar time that you do not control. Request only the scopes your use case needs, because narrow requests are easier to approve and safer to operate.

Expect the data to be the hard part

A valid FHIR response can still be hard to use. Plan time for these problems:

  • Missing and optional fields. An element marked must-support can still be empty when the source system has no value.
  • Local codes. Labs, medications and problems may arrive with site-specific codes that need mapping to standard terminologies.
  • Extensions. Vendors put useful data in extensions that your parser has to know about.
  • Patient identity. The same person can hold different identifiers in different systems, so matching rules need clinical and privacy review.
  • Volume and paging. Search results are paged, rate limits apply, and bulk export runs asynchronously.

Build a mapping and validation layer between the FHIR client and your application, and log what it rejects. That log becomes your evidence when a site asks why a record is missing.

A planning checklist

  1. Write down the use case and the exact data elements it needs, including whether you write data back.
  2. List every system you will connect to, who operates it, and which FHIR version and implementation guides it supports.
  3. Pick the launch pattern for each connection: EHR launch, standalone launch or backend service.
  4. Begin app registration, security review and contract steps at the start of the project.
  5. Build the mapping and validation layer, and test it with messy sample data.
  6. Test in each vendor’s sandbox, then run a controlled pilot with one site before wider rollout.
  7. Plan operations: token expiry, monitoring, error handling and version upgrades.
  8. Agree how protected health information is handled, logged and retained. If the data will feed AI features, read the guide to HIPAA and generative AI first.

If you are weighing an integration platform against your own connectors, the build vs buy decision framework applies well to this choice.

How YLinkTech helps

We work with providers, payers and digital health companies on healthcare technology, from scoping to production support. Our Digital Product Engineering practice builds FHIR clients and servers, SMART on FHIR apps and the mapping layers behind them through our APIs and systems integration work. We can also supply engineers who have worked with EHR interfaces. If you are planning an integration, tell us about it and we will help you size the work.

Frequently asked questions

Which FHIR version should we build against?

Build against the version the systems you connect to expose. HL7 lists Release 5 as the current published version, but the SMART App Launch guide is based on R4 and US certification standards reference US Core guides. Read each server's CapabilityStatement before you commit, and plan for more than one version over time.

What is SMART on FHIR?

SMART App Launch is an HL7 implementation guide that defines how apps authorize and authenticate with FHIR servers using patterns based on OAuth 2.0. It covers user-facing apps launched inside or outside an EHR, and backend services with no user present. Access is granted through scopes that limit what an app can read or write.

How long does a FHIR integration take?

It depends less on coding and more on steps you do not control: app registration, security review and scope approval with each vendor or health system, plus data mapping for each site. Start those steps at the beginning of the project, pilot with one site, and expect each new connection to need its own testing.

Sources

This article is general information, not professional advice. See our Disclaimer.

Tell us what you are trying to build.

A 30-minute call is usually enough to know whether we are the right fit. We reply within one business day.