FHIR Integration with Epic, Cerner and athenahealth: A Practical Guide for Health-Tech Startups
For many health-tech products, EHR integration decides whether clinics can actually use them. Reading appointments, writing notes back, pulling patient demographics or lab results: all of it means connecting to systems such as Epic, Oracle Health (Cerner) or athenahealth. FHIR has made this far more achievable than it used to be, but it still needs planning.
FHIR and HL7 in plain terms
HL7 v2 is the older messaging standard still used inside hospitals for things like admissions and lab results. FHIR (Fast Healthcare Interoperability Resources) is the modern standard: data is exposed as resources such as Patient, Appointment, Observation and Encounter through REST APIs. US regulations have pushed certified EHRs to offer standardized FHIR APIs, which is why most new integrations start with FHIR.
SMART on FHIR
SMART on FHIR adds a standard way for apps to authenticate and launch, either inside the EHR for a clinician or standalone for a patient. If your product will be used by clinicians during a visit, plan for an EHR launch so the user does not have to log in twice and the app opens on the right patient.
Questions to answer first
- Which data do you actually need? Read-only demographics and appointments are simpler than writing clinical notes or orders.
- Read or write? Writing back to the record usually involves more review and testing with each vendor and customer.
- Which EHRs do your first customers use? Start with the one your pilot sites run.
- Patient-facing or provider-facing? The authorization flow and approval steps differ.
- Do you also need HL7 v2 or files? Some workflows, such as lab results or scheduling feeds, still arrive as HL7 v2 messages.
Working with each vendor
Each major EHR vendor runs its own developer program with sandboxes, documentation and an app registration or review process. Expect to register your app, test against sandbox data, and then work with each customer site to enable it in production. Customer IT teams often need a security review and a signed agreement before go-live, so allow time for that.
Security and HIPAA
- Request only the scopes you need.
- Encrypt data in transit and at rest, and keep PHI out of logs.
- Store tokens securely and handle refresh and revocation properly.
- Log every access for audit.
- Sign Business Associate Agreements with every vendor that touches PHI.
A realistic plan
- Map the data and workflow with a pilot clinic.
- Build against the vendor sandbox with test patients.
- Add monitoring, error handling and retry logic for API limits and outages.
- Pilot with one site, fix edge cases, then scale.
Softsols builds HIPAA-ready healthcare software with bidirectional FHIR and HL7 integration. See HIPAA-compliant healthcare software development.
Frequently asked questions
Is FHIR enough for every EHR integration?
Often, but not always. Some workflows such as lab results or scheduling feeds still use HL7 v2 messages or files.
What is SMART on FHIR?
A standard for app authorization and launch on top of FHIR, so an app can open inside the EHR on the right patient.
Do we need a BAA for EHR integration?
Yes, with any party that creates, receives, stores or transmits PHI on your behalf.
Planning an EHR integration? Book a free 30-minute call with our healthcare team or estimate your project cost.
