Interoperability
EHR and EMR Integration Services
We engineer the interfaces that move patients, orders, results, schedules, and documents between EHRs and the software around them. The goal is an integration your support team can run at 2 a.m. without paging the original developer.
At a glance
- Standards & integrations
- EpicOracle Health (Cerner) MillenniumMEDITECH Expanseathenahealth athenaOneeClinicalWorksVeradigm and NextGen ambulatory EHRs
- Typical deliverables
Interface inventory and data-flow diagram
Per-site interface specifications with sample messages
Mapping and transformation code under version control
Automated test suite with synthetic message fixtures
EHR/EMR integration: overview
Most EHR integration work is not one interface. It is a portfolio: an inbound ADT feed for patient context, an outbound ORU for results, a scheduling feed via SIU, a FHIR API for patient-facing reads, and a C-CDA document exchange for referrals. Each runs on a different transport, has a different failure mode, and is owned by a different team on the hospital side. We design that portfolio as one system with shared identity matching, monitoring, and replay rather than five unrelated projects.
The hard part is rarely parsing a message. It is deciding what to do when an ADT^A08 update arrives before the A01 admit it modifies, when two sites send the same MRN for different people, or when a vendor upgrade silently changes the meaning of a PV1 field. Our engineers write those rules down, test them against de-identified or synthetic traffic, and make the behavior visible in dashboards so operations staff can see what happened to a specific message.
We work across vendors rather than for any one of them. That matters for SaaS companies selling into health systems that run Epic in one region, Oracle Health in another, and MEDITECH at a recently acquired community hospital. A vendor-neutral canonical model, plus thin per-site adapters, keeps your core product from accumulating EHR-specific branches every time sales closes a new customer.
Engineering challenges in EHR/EMR integration
01Every site is a dialect
Two hospitals on the same EHR version still send different Z-segments, different code sets in OBX-3, and different conventions for PV1-2 patient class. Integrations that assume one spec break on the second customer.
02Patient identity drift
MRNs are facility-scoped, merges (ADT^A40) arrive late or not at all, and demographic updates overwrite each other. Without a deliberate matching and merge strategy, duplicate charts spread into your product.
03Ordering and idempotency
Messages arrive out of sequence after an engine restart, and retries replay events you already processed. Consumers must handle duplicates and late updates without corrupting state.
04Long lead times on the EHR side
Interface build slots, firewall changes, VPN tunnels, and test environment refreshes are scheduled by the health system's IT team. Projects stall when engineering is ready before the connectivity is.
05Silent failures
A feed that stops sending looks identical to a quiet night. Without heartbeat checks and volume baselines, teams discover outages when a clinician reports missing results.
Technical capabilities
What our EHR/EMR integration work covers
HL7 v2 interface build
Inbound and outbound ADT, ORM/OML, ORU, SIU, DFT, and MDM interfaces over MLLP with correct ACK handling. We write per-site specifications and map Z-segments explicitly rather than ignoring them.
FHIR R4 API integration
Client and server work against vendor FHIR endpoints using US Core profiles, including paging, _include handling, and rate-limit-aware retry. We test against the vendor's public sandbox where one is offered and against the client's non-production tenant.
SMART on FHIR app embedding
EHR-launched apps that receive patient and encounter context, request only the scopes they need, and handle token expiry inside an iframe or embedded browser.
Clinical document exchange
Generation and parsing of C-CDA documents such as Continuity of Care Documents, Referral Notes, and Discharge Summaries, plus routing through Direct messaging or HIE connections where the client participates.
Canonical data model
A vendor-neutral internal model, often FHIR-shaped, that per-site adapters translate into. New EHR customers become a mapping exercise instead of a code fork.
Identity and merge handling
Deterministic and probabilistic matching rules, merge and unmerge processing, and an audit trail of identity decisions that support staff can inspect.
Operational monitoring
Per-interface volume baselines, ACK latency, error queues with replay, and alerts on silence, so an outage is detected by a system before it is reported by a clinician.
Software architecture
Reference architecture for EHR/EMR integration
A typical multi-EHR integration platform separates transport, translation, and product logic so that a new site adds an adapter, not a rewrite.
- Connectivity
- MLLP listeners
- FHIR REST clients
- SFTP drops
- Site-to-site VPN
- Interface engine
- Routing
- ACK management
- Per-site mapping
- Error queues
- Canonical layer
- FHIR-shaped model
- Terminology mapping
- Identity matching
- Event log
- Product services
- Patient context API
- Orders and results
- Scheduling
- Documents
- Operations
- Volume dashboards
- Silence alerts
- Replay tooling
- Audit logs
Technology stack for EHR/EMR integration
- Standards
- HL7 v2.3–v2.8FHIR R4US CoreC-CDA R2.1SMART App Launch
- Interface engines
- NextGen Connect (Mirth)RhapsodyCloverleafInterSystems HealthShare
- Cloud health services
- Azure Health Data ServicesAWS HealthLakeGoogle Cloud Healthcare API
- Languages
- TypeScriptJavaC#/.NETPython
- Messaging and storage
- KafkaAmazon SQSPostgreSQLObject storage with encryption
Security & compliance
Security and compliance considerations for EHR/EMR integration
What regulations require
- HIPAA requires a Business Associate Agreement before a vendor creates, receives, maintains, or transmits PHI on behalf of a covered entity (45 CFR 164.502(e) and 164.504(e)).
- The HIPAA Security Rule requires audit controls that record and examine activity in systems containing ePHI (45 CFR 164.312(b)) and transmission security for ePHI sent over networks (45 CFR 164.312(e)(1)).
- ONC information blocking rules (45 CFR Part 171), implementing the 21st Century Cures Act, apply to health care providers, certified health IT developers, and HINs/HIEs, and can affect how integrations restrict or delay access to electronic health information.
Recommended engineering practices
- Encrypt MLLP traffic with TLS or run it inside an IPsec tunnel; plain MLLP over the open internet is never acceptable.
- Store raw messages in a separate, access-controlled store with defined retention rather than in application logs.
- Apply least-privilege service accounts per interface so one compromised credential does not expose every feed.
- Mask PHI in error notifications and ticketing systems; send message control IDs, not patient names.
- Threat-model each new connection using NIST SP 800-66r2 guidance as a reference for mapping safeguards.
Regulatory summaries are educational, not legal advice. HIPAA compliance is an organizational program; software can support safeguards but cannot by itself make an organization compliant. Systems that handle PHI need their own risk analysis, vendor evaluation, and Business Associate Agreements before deployment.
Integration capabilities
Integrations we engineer for EHR/EMR integration
- Epic
- Oracle Health (Cerner) Millennium
- MEDITECH Expanse
- athenahealth athenaOne
- eClinicalWorks
- Veradigm and NextGen ambulatory EHRs
- Regional HIEs
- Reference labs (Quest, Labcorp) via HL7 v2
Engineering methodology
How we approach EHR/EMR integration
- 1
Interface inventory
We list every data flow by message type, direction, trigger event, and owner, and identify which flows already exist at the site versus which must be built.
- 2
Specification per site
We capture sample messages, field-level mappings, code sets, and ACK expectations in a written spec the health system's analyst signs off on.
- 3
Build against synthetic traffic
Adapters are built and unit-tested with generated messages that cover edge cases: merges, cancellations, missing segments, and repeated fields.
- 4
Joint testing
We run scripted scenarios with the site's interface team in their test environment, comparing what was sent to what landed.
- 5
Cutover and hypercare
Go-live follows a checklist with rollback steps, then a period of heightened monitoring where volume and error trends are reviewed daily.
Business use cases
Where EHR/EMR integration delivers value
SaaS onboarding at scale
A care-coordination product needs ADT and scheduling feeds from each new hospital customer. A canonical model reduces per-site work to mapping and testing.
Results delivery to the chart
A specialty lab sends ORU^R01 results back into the ordering provider's EHR with LOINC-coded observations and PDF reports in OBX segments.
Patient-facing data access
A consumer app reads a patient's medications, allergies, and lab results through the provider's FHIR API after the patient authorizes access.
Post-acquisition consolidation
A health system that acquired clinics on a different EHR needs referral documents and encounter summaries to flow both ways during a multi-year transition.
Technical comparison
| Path | Best for | Latency | Typical limitation |
|---|---|---|---|
| HL7 v2 over MLLP | Real-time ADT, orders, results inside a hospital network | Seconds | Site-specific variation; needs VPN and engine |
| FHIR R4 REST | Reads of discrete clinical data, patient-facing apps | On request | Write support and resource coverage vary by vendor |
| FHIR Bulk Data ($export) | Population-level extracts for analytics | Hours | Asynchronous; not suited to real-time workflow |
| C-CDA documents | Transitions of care, referrals, summaries | Minutes to hours | Narrative-heavy; discrete data quality varies |
| Vendor proprietary APIs | Workflow actions not covered by standards | On request | Access governed by vendor programs and agreements |
Typical deliverables
What a EHR/EMR integration engagement produces
- Interface inventory and data-flow diagram
- Per-site interface specifications with sample messages
- Mapping and transformation code under version control
- Automated test suite with synthetic message fixtures
- Monitoring dashboards and alert rules
- Runbooks for common failures and replay
- Go-live checklist and hypercare report
Before the first interface goes live
- Signed BAA covering every party that touches PHI
- Written spec with sample messages approved by the site
- ACK behavior agreed: original mode vs enhanced, and timeout values
- Merge and unmerge handling tested
- Volume baseline and silence alert configured
- Replay procedure documented and rehearsed
- Rollback plan and named contacts on both sides
Cost and timeline factors
What shapes EHR/EMR integration cost and timeline
- Number of EHR vendors and distinct sites
- Message types and directions per site
- Whether the site's EHR exposes the needed FHIR resources or HL7 v2 is the only path
- Identity matching complexity across facilities
- Availability of health system interface analysts and test environments
- Vendor program fees or marketplace requirements that apply to the client
Typical timeline
A single inbound ADT feed to one site typically lands in weeks, most of it spent on specification and connectivity. A multi-site, multi-vendor program with a canonical model usually runs over several quarters, with the first site slowest and later sites faster.
Read the cost guideEHR/EMR integration FAQs
Should we integrate with an EHR using HL7 v2 or FHIR?
Use whichever the site supports for the specific flow. HL7 v2 remains the dominant path for real-time hospital events such as admissions, orders, and results. FHIR R4 is strong for on-demand reads and patient-facing access. Many products need both: a v2 ADT feed for event triggers and FHIR calls for detail retrieval.
How long does an EHR integration take?
A single, well-scoped feed often takes weeks, but calendar time is usually driven by the health system: interface analyst availability, firewall and VPN changes, and test environment access. Engineering effort is frequently smaller than coordination effort, so we plan both tracks from the first week.
Do we need an interface engine?
If you connect to more than one or two sites over HL7 v2, an engine pays for itself through routing, queuing, ACK handling, and replay. For FHIR-only integrations, a well-structured service with retry and observability may be enough. The decision depends on volume, number of sites, and who will operate it.
Can you get us access to an EHR vendor's APIs?
No outside firm can grant that. Access to vendor sandboxes, production APIs, and app marketplaces is governed by each vendor's developer programs and by your agreements with the health systems you serve. We help you prepare for those programs and build to their published specifications.
Related engineering topics
- HL7 Integration ServicesHL7 v2 interface engineering over MLLP: ADT, orders, results, scheduling, charges, and documents, with correct ACKs and replayable error handling.Read more
- FHIR Integration ServicesFHIR R4 client and server engineering with US Core, Bulk Data, SMART authorization, and Subscriptions, built to pass conformance testing.Read more
- Interface Engine DevelopmentSelection, build, and operation of healthcare interface engines: Rhapsody, Cloverleaf, Mirth/NextGen Connect, InterSystems, cloud healthcare services, or custom.Read more
- EHR Integration GuideIntegration patterns, project phases, sandbox testing, and go-live planning for connecting software to EHRs through HL7 v2, FHIR, SMART, CDS Hooks, and bulk export.Read more
- Hire EHR Integration DevelopersHire EHR integration developers who connect products and internal systems to EHRs using HL7 v2, FHIR, CDA, and vendor APIs under client agreements.Read more
Discuss your healthcare engineering project
Tell us about the system, the integrations it depends on, and the constraints you are working within. A senior engineer will review it and reply with questions, not a sales script.