EHR Integration Guide: FHIR, HL7 v2 and SMART on FHIR for Digital Health Teams

Last reviewed: . Sources opened and read on the dates shown.

Short answer: EHR integration means connecting your product to a provider's electronic health record so data moves between them without retyping. The main routes are FHIR APIs with SMART on FHIR sign-in, and the older HL7 v2 message feeds still used inside hospitals. Plan as much time for each health system's approval, security review and site setup as for the code.

This guide is for a founder or product lead at a funded digital health company that has to connect a product to hospital or practice EHRs and has no CTO yet. Rule text and standards versions are as we read them on November 28, 2026. This is general information, not legal advice.

EHR integration: six ways data moves in and out of an EHR

An EHR (electronic health record) can exchange data in six main ways. A product often uses two or three.

MethodIn plain wordsTypically used forWhat to know
HL7 v2 interfaces (HL7 integration)Short messages one system sends another when something happens. HL7, the standards body, calls v2 “the workhorse of electronic data exchange in the clinical domain and arguably the most widely implemented standard for healthcare in the world” (HL7 International, HL7 Version 2 Product Suite, checked November 28, 2026).Visit and registration events, orders, results and scheduling.Sites add their own fields. HL7 says of them: “The meaning of these extensions is opaque without prior manual explanation by the sender.” (HL7 International, FHIR R4: comparison with HL7 Version 2, checked November 28, 2026)
FHIR REST APIs (FHIR integration)A web API. Your software asks the EHR for specific records, such as a patient, a medication or a lab result. FHIR calls each kind a resource. (HL7 International, FHIR R4 overview, checked November 28, 2026)Reading single records on demand, and at some sites writing them.What you can read or write depends on the product and the site.
SMART on FHIRThe sign-in and permission layer on top of a FHIR API.Apps a clinician opens inside the EHR, patient apps and background services.See the next section.
Bulk FHIRA file export for a whole group of patients. HL7's reason for it: “Existing FHIR APIs work well for accessing small amounts of data, but large exports can require hundreds of thousands of requests.” (HL7 International, FHIR Bulk Data Access implementation guide, checked November 28, 2026)Population health, analytics, quality reporting and research.A background job with access approved in advance, set up at each site.
C-CDA documentsA structured clinical summary sent as one document. “Consolidated CDA (C-CDA) is a library of CDA templates developed by HL7.” (HL7 International, Consolidated CDA (C-CDA) implementation guide, checked November 28, 2026)Referral and transition-of-care summaries.You pick fields out of a whole document. ONC's 2026 rule keeps the certification requirement to create and send these until January 1, 2030. (Federal Register (govinfo.gov), ONC final rule, 91 FR 67916, October 28, 2026, checked November 28, 2026)
Integration vendor or networkA company that runs the EHR connections and gives you one API. Or a network whose members query each other, such as TEFCA, a nationwide exchange framework.Many EHR products through one build, or records held by providers you have no contract with.Fees, the vendor's data model, and one more company holding patient data. On TEFCA, ONC says: “TEFCA is designed to support exchange for any purpose, but that purpose must be indicated in each request for data.” (ONC, Trusted Exchange Framework and Common Agreement (TEFCA), checked November 28, 2026)

Moving a practice's whole chart between EHRs is a different job. See the EHR data migration checklist.

What is SMART on FHIR, and how is it different from FHIR?

FHIR defines the data and the API. SMART on FHIR defines how an app gets permission to use that API. HL7's SMART App Launch guide says it “describes a set of foundational patterns based on OAuth 2.0 for client applications to authorize, authenticate, and integrate with FHIR-based data systems.” (HL7 International, SMART App Launch implementation guide, checked November 28, 2026) OAuth 2.0 is a web standard for granting an app limited access.

  • Two ways to start. “An app can launch from within an existing session in an EHR, Patient Portal, or other FHIR system. Alternatively, it can launch as a standalone app.” (HL7 International, SMART App Launch: app launch and authorization, checked November 28, 2026) An EHR launch opens your app inside the clinician's screen, already knowing which patient is open. A standalone launch starts from your own app.
  • Scopes. The app asks for specific permissions, called scopes, such as reading one kind of record.
  • Backend services. A separate pattern covers software that runs with no user present, such as a nightly sync.
  • Registration. An app must be registered with an EHR's authorization service before it can run, and the guide notes that “SMART does not specify a standards-based registration process” (HL7 International, SMART App Launch: app launch and authorization, checked November 28, 2026). So registration works differently at each EHR vendor.

For one vendor's program in detail, see Epic integration.

What do US rules require a certified EHR to expose?

Two sets of federal rules matter. Neither obliges a health system to connect your app on your schedule.

The API certification criterion: 45 CFR 170.315(g)(10)

ONC, the federal health IT office, runs a certification program for EHR software and calls it voluntary. (Federal Register (govinfo.gov), ONC final rule, 91 FR 67916, October 28, 2026, checked November 28, 2026) One criterion is the Standardized API for patient and population services. Its final rule of October 28, 2026, effective December 28, leaves that criterion as it is. (Federal Register (govinfo.gov), ONC final rule, 91 FR 67916, October 28, 2026, checked November 28, 2026) A certified product must:

  • answer requests for one patient's data, and for a group of patients' data;
  • let an app register, and sign users in through SMART App Launch;
  • cut off an app's access within 1 hour when the patient asks; (eCFR, 45 CFR 170.315(g)(10), checked November 28, 2026)
  • publish its API documentation at a public link, with no preconditions.

Versions the rule names today: FHIR Release 4.0.1; US Core Implementation Guide STU 6.1.0, the US rulebook for what a FHIR record must contain; SMART App Launch 2.0.0; and Bulk Data Access v1.0.0. (eCFR, 45 CFR 170.215, checked November 28, 2026) The data set is USCDI version 3, the federal list of core data elements. (eCFR, 45 CFR 170.213, checked November 28, 2026) The older US Core 3.1.1 and SMART 1.0.0 expired on January 1, 2026. Developers may also certify to newer versions ONC has approved, including US Core 8.0.1, SMART App Launch 2.2.0 and USCDI v5. (ONC, Certification Companion Guide, § 170.315(g)(10) standardized API, checked November 28, 2026) HL7's current US Core release is 9.0.0. (HL7 International, US Core implementation guide, checked November 28, 2026) Ask each vendor which versions each site runs.

What the criterion leaves out:

What the EHR developer owes you. Under 45 CFR 170.404, the developer of a certified API must publish its terms, including fees and registration requirements. (eCFR, 45 CFR 170.404, checked November 28, 2026) It may verify who you are within ten business days, and must then “register and enable all applications for production use within five business days of completing its verification of an API User's authenticity” (eCFR, 45 CFR 170.404, checked November 28, 2026). It must also give the health system “the independent ability to permit an API User to interact with the certified API technology deployed by the API Information Source” (eCFR, 45 CFR 170.404, checked November 28, 2026). Read that both ways: the health system decides.

Information blocking: 45 CFR part 171

Who is covered: “This part applies to health care providers, health IT developers of certified health IT, health information exchanges, and health information networks, as those terms are defined in § 171.102.” (eCFR, 45 CFR 171.101, checked November 28, 2026) Information blocking is, in short, a practice that “is likely to interfere with access, exchange, or use of electronic health information” (eCFR, 45 CFR 171.103, checked November 28, 2026), unless the law requires it or an exception applies. Your company is covered only if it fits one of those four definitions.

  • Stalling a lawful request for electronic health information can be information blocking, but not automatically. ONC says “even in cases where a practice does not meet any of the exceptions it does not automatically mean that information blocking has occurred.” (ONC, Information Blocking, checked November 28, 2026)
  • A security review is not automatically blocking. The security exception covers a practice that, among other conditions, is tailored to the specific risk and applied consistently. (eCFR, 45 CFR 171.203, checked November 28, 2026)
  • ONC proposed changes to these rules in December 2025. Its October 2026 final rule did not finalize them. (Federal Register (govinfo.gov), ONC final rule, 91 FR 67916, October 28, 2026, checked November 28, 2026)

Treat this as background for a conversation with counsel, not as a lever to skip a review.

What actually takes the time in an EHR integration?

A first working call against a vendor's test system is the easy part. Live data at a customer takes longer, and most of the wait is outside your control. We give no number of weeks, because we found no primary source for one.

StepWho controls itWhat to expect and prepare
Sandbox accessThe EHR vendorA sandbox is a test system with made-up patients. Oracle Health, for example, documents an open sandbox that needs no sign-in. (Oracle Health developer documentation, Millennium Platform FHIR R4 APIs: Service Root URL, checked November 28, 2026) Passing there proves your code, not a customer's setup.
Production accessThe vendor, then each health systemYou register with the vendor. Then access is granted customer by customer, each with its own address. Oracle Health's documentation notes: “URLs for the FHIR server vary by the tenant (datasource or client) being accessed, as well as other factors.” (Oracle Health developer documentation, Millennium Platform FHIR R4 APIs: Service Root URL, checked November 28, 2026)
Approval and security reviewEach health systemExpect a clinical or operations sponsor, an IT governance step and a security questionnaire. Have a data-flow diagram, security policies and recent test results ready. Request only the data you need. Epic's developer guide says: “Starting narrow helps customers onboard faster and simplifies their review.” (Epic developer documentation, Epic on FHIR: App Creation and Request Process Overview, checked November 28, 2026)
Per-site configurationEach site's IT and interface teamsAddresses, credentials, user accounts, local codes and workflow placement. Epic's guidance puts it this way: “Each organization owns the data in its system and configures it differently” (Epic developer documentation, Epic on FHIR: implementation documentation guidance, checked November 28, 2026). HL7 v2 feeds typically add a network connection and message mapping.
Business associate agreements (BAAs) and data-use termsEach customer's legal and privacy staff, and your counselA provider covered by HIPAA may let you handle patient information for it only with satisfactory assurance, in a written contract, that you will safeguard it. (eCFR, 45 CFR 164.502(e), checked November 28, 2026) The contract must set what you may do with the data, (eCFR, 45 CFR 164.504(e), checked November 28, 2026) so settle analytics and de-identification rights here. Your own vendors that touch the data, such as a cloud host or an integration vendor, are subcontractors and need agreements with you. (eCFR, 45 CFR 160.103, checked November 28, 2026)

Start the security and legal paperwork the day a pilot is agreed. Keep one reusable packet of diagrams, security answers and install steps, so the second site does not start from zero. The vendor examples above are illustrations, not recommendations.

EHR integration services: build direct, use an integration vendor, or wait?

EHR integration services come in two kinds: integration vendors that sell one API across many EHRs, and firms that build the integration for you. Choose by your next few customers, not by the technology.

Your situationLean towardWhy, and what it costs you
Your first customers run the same certified EHR, and you mainly read standard chart data.Build direct on that EHR's FHIR APIThe certified API covers this and its documentation is public. You handle the vendor's program and each site's review yourself.
Clinicians must open your product inside the EHR.Build direct as a SMART on FHIR appThis is what the EHR launch is for. Plan around that vendor's developer program.
Many customers on many EHR products, including small-practice systems.Integration vendorOne build reaches many systems. You pay its fees, accept its data model, and add a company that holds patient data. Each site's approval still applies.
You must write data back, or hear about events as they happen.Decide site by site: vendor-specific APIs or HL7 v2 feedsWriting sits outside the certified minimum, so what exists differs by product and by site.
You need records held by providers you have no contract with.A network, or access the patient authorizesOn TEFCA, each request must state its purpose. Confirm with counsel that your use fits a permitted one.
No signed customer or pilot sponsor yet, or the product is useful without EHR data.WaitStart with patient-entered data or a file export. Store it in FHIR-shaped records so a later integration is a mapping job.

Weigh this advice accordingly. Palo Alto Health Labs sells fractional CTO work, Fabrica and scoped build or migration work, so it has an interest in how you answer.

If you plan to hire a firm for the build, see custom healthcare software development.

Questions to ask an integration vendor or an EHR's developer program

Ask an integration vendor

  1. Which EHR products do you connect to today? For each: read, write or both, and by which method?
  2. What does each new site still have to do, and what do we have to do?
  3. Will you sign a business associate agreement with us? Which subcontractors handle the data?
  4. Do you store patient data or only pass it through? Where, and for how long?
  5. Is pricing per site, per patient or per call? What is it at ten times our volume?
  6. If we leave, do we keep the site connections and credentials, or start again?

Ask an EHR's developer program

  1. Where are your published API documentation, terms and fees for the certified API?
  2. Which FHIR, US Core and SMART App Launch versions do your customers run today?
  3. Which APIs go beyond the certified read set, such as writing or event notices? Who licenses them, us or the customer?
  4. What are the steps from registration to production at one customer? Which repeat at every customer?
  5. Is there an app review, a marketplace listing or a paid tier? Which are optional, and does the customer pay anything?

And ask your sponsor at the health system: who must approve this, in what order, and when does each committee next meet?

Who owns EHR integration when you have no CTO?

Someone has to pick the method, read the vendor terms, answer the security questionnaire, and say no to an integration nobody has asked for. Without a CTO, that falls to a founder, a contractor or a part-time technical leader.

Palo Alto Health Labs provides embedded technical leadership for funded digital health companies before a full-time CTO hire, including architecture, vendor and build-versus-buy decisions. See fractional CTO for digital health companies; many teams start with the fixed-scope, three-week Initial Audit. For a scoped build, see EHR and FHIR integration services. Engagements are led by Mike Hittle (background).

This is not legal counsel, and nobody can promise a health system's approval or a date. If your customer is a practice still picking its system, see how to choose an EHR for a private practice. The rest of the library is on the fractional CTO hub.

Frequently asked questions

Is HL7 integration the same as FHIR integration?

No. HL7 is the standards organization behind both. HL7 integration usually means HL7 v2 message feeds, which push events such as orders and results between systems. FHIR integration means a web API your software calls for specific records. A hospital project can need both.

Do all EHRs have a FHIR API?

A product certified to 45 CFR 170.315(g)(10) must offer a standardized API that returns the USCDI data set for one patient or a group of patients. (eCFR, 45 CFR 170.315(g)(10), checked November 28, 2026) Certification is voluntary, so look the product up in ONC's Certified Health IT Product List. (ONC, Certification of Health IT, checked November 28, 2026) Anything beyond that read set depends on the vendor and the site.

Can a SMART on FHIR app write data back to the EHR?

Sometimes. The federal certification criterion covers reading only, and ONC's guide says it excludes write capabilities. (ONC, Certification Companion Guide, § 170.315(g)(10) standardized API, checked November 28, 2026) Writing notes, orders or results back depends on the EHR product and on what each site enables. Ask both.

How long does EHR integration take?

No single honest figure exists. One step has a federal clock: the developer of a certified API has ten business days to verify an app developer and five more to enable the app for production use. (eCFR, 45 CFR 170.404, checked November 28, 2026) Each health system's approval, security review and setup have no such clock.

Sources

Each outside claim on this page links to the page it came from, opened and read on the date shown. Figures and terms change; check the current source before relying on one. This page is general information, not legal advice.

  1. HL7 International, HL7 Version 2 Product Suite. Checked November 28, 2026.
  2. HL7 International, FHIR R4: comparison with HL7 Version 2. Checked November 28, 2026.
  3. HL7 International, FHIR R4 overview. Checked November 28, 2026.
  4. HL7 International, FHIR Bulk Data Access implementation guide. Checked November 28, 2026.
  5. HL7 International, Consolidated CDA (C-CDA) implementation guide. Checked November 28, 2026.
  6. Federal Register (govinfo.gov), ONC final rule, 91 FR 67916, October 28, 2026. Checked November 28, 2026.
  7. ONC, Trusted Exchange Framework and Common Agreement (TEFCA). Checked November 28, 2026.
  8. HL7 International, SMART App Launch implementation guide. Checked November 28, 2026.
  9. HL7 International, SMART App Launch: app launch and authorization. Checked November 28, 2026.
  10. eCFR, 45 CFR 170.315(g)(10). Checked November 28, 2026.
  11. eCFR, 45 CFR 170.215. Checked November 28, 2026.
  12. eCFR, 45 CFR 170.213. Checked November 28, 2026.
  13. ONC, Certification Companion Guide, § 170.315(g)(10) standardized API. Checked November 28, 2026.
  14. HL7 International, US Core implementation guide. Checked November 28, 2026.
  15. ONC, Certification of Health IT. Checked November 28, 2026.
  16. eCFR, 45 CFR 170.404. Checked November 28, 2026.
  17. eCFR, 45 CFR 171.101. Checked November 28, 2026.
  18. eCFR, 45 CFR 171.103. Checked November 28, 2026.
  19. ONC, Information Blocking. Checked November 28, 2026.
  20. eCFR, 45 CFR 171.203. Checked November 28, 2026.
  21. Oracle Health developer documentation, Millennium Platform FHIR R4 APIs: Service Root URL. Checked November 28, 2026.
  22. Epic developer documentation, Epic on FHIR: App Creation and Request Process Overview. Checked November 28, 2026.
  23. Epic developer documentation, Epic on FHIR: implementation documentation guidance. Checked November 28, 2026.
  24. eCFR, 45 CFR 164.502(e). Checked November 28, 2026.
  25. eCFR, 45 CFR 164.504(e). Checked November 28, 2026.
  26. eCFR, 45 CFR 160.103. Checked November 28, 2026.

Book a 30-minute scoping call

Thirty minutes on where the product is, what has to be true for the next milestone, and the smallest engagement that would move it. No pitch deck needed. It is a conversation, not an audit or legal advice.

Book a 30-minute scoping call

Start with the fixed-scope Initial Audit · Send a short note

Please do not send patient information, credentials or production data when you get in touch.