Key takeaway
HIPAA-compliant EHR integration means designing EHR connections around least-privilege scopes, controlled service accounts, data minimization, encrypted transport, BAAs with every intermediary and audit trails that both the app and the EHR owner can review. The EHR owner's security review usually sets the bar.
Last reviewed November 17, 2026
HIPAA-compliant EHR integration: service overview
This service is for teams whose product needs EHR data or needs to write back to the EHR: patient engagement apps, clinical decision support tools, care management platforms, RPM programs, revenue cycle tools and analytics products. It is also for hospital IT teams evaluating how a third-party app should be allowed to connect.
An EHR connection is usually the highest-value credential an application holds. A backend service account with broad read access to a health system's FHIR server can expose far more data than a compromised patient login. We treat that connection as a privileged access path and engineer it accordingly.
We design and build the integration, document its data flows for the health system's security review, and help you answer the security questionnaire honestly. Access to any EHR depends on the client's EHR contract and the vendor's developer program; we do not hold partnerships or certifications with EHR vendors.
Healthcare business challenges in EHR connections
Over-scoped access requests
It is tempting to request patient/*.read or system/*.read to avoid future change requests. Health system reviewers increasingly reject this, and it enlarges the blast radius if your credentials are stolen.
Shared and long-lived service accounts
HL7 interfaces and vendor APIs are often set up with one shared account whose password never changes and that several engineers know. That undermines unique user identification and accountability.
Unencrypted legacy transport
HL7 v2 over MLLP has no built-in encryption. Many interfaces still rely on a site-to-site VPN that was configured years ago and is not monitored.
Data copied everywhere
Integrations frequently copy full charts into the app database, a data warehouse, a cache and debugging exports. Each copy is another place ePHI must be protected, retained and eventually deleted.
Lengthy security reviews
Health systems send detailed questionnaires and may require architecture diagrams, penetration test summaries and evidence of BAAs. Weak answers delay go-live by months.
Unclear responsibility boundaries
When data moves from the EHR to an interface engine to your cloud to an analytics vendor, it is easy to lose track of who is a business associate of whom and which agreements cover which hop.
Integration development capabilities
Scope minimization analysis
We map each product feature to the specific FHIR resources or HL7 message types it needs and request only those scopes, documenting the justification for the health system's reviewer.
SMART on FHIR user-level access
EHR-launched and standalone SMART apps using authorization code with PKCE, so data access is bound to the signed-in clinician or patient and their EHR permissions.
Backend service authentication
SMART Backend Services with asymmetric key client assertions instead of shared secrets, with keys held in a managed key store and rotated on a schedule.
Secure HL7 v2 transport
MLLP over TLS or within a monitored VPN or private connectivity, interface engine hardening, and message-level logging that records control IDs rather than message contents.
Data minimization pipelines
Transform inbound data to keep only the fields the product uses, discard the rest at the edge, and set retention rules for any cached EHR data.
Write-back safeguards
Validation, idempotency keys and human review steps for anything written into the chart, plus clear provenance so clinicians can see what the app wrote.
Integration audit and monitoring
Per-connection audit trails of which records were requested by which identity, alerting on volume anomalies, and dashboards for interface health.
Security review support
Data flow diagrams, scope justifications, encryption and key management descriptions, and BAA chain documentation prepared for health system questionnaires.
HIPAA-related security considerations for EHR integrations
HIPAA requirement
What the rules themselves require
- Unique identification for each user and system identity that accesses ePHI through the integration (164.312(a)(2)(i)).
- Person or entity authentication for both human users and service clients (164.312(d)).
- Audit controls recording activity on systems that hold ePHI pulled from the EHR (164.312(b)).
- BAAs between the covered entity and any business associate, and between business associates and their subcontractors that handle ePHI (164.502(e), 164.504(e)).
- Minimum necessary for uses and disclosures where the Privacy Rule standard applies; note it does not apply to disclosures to a provider for treatment (164.502(b)).
Recommended practice
Widely accepted security practice
- Request the narrowest FHIR scopes per feature and use user-level scopes wherever a user is present.
- Use asymmetric client assertions rather than client secrets for backend services.
- Encrypt all transport, including HL7 v2 feeds, and monitor any VPN tunnels carrying PHI.
- Strip unneeded fields at ingestion and set explicit retention for cached EHR data.
- Alert on unusual query volume per identity.
Architecture decision
Depends on your product and risk analysis
- Private network connectivity to the health system instead of internet-facing endpoints.
- A separate integration tenant or account isolated from the main application environment.
- Tokenizing medical record numbers inside the application.
- Bulk FHIR exports instead of per-patient queries, depending on the use case.
Your organization's responsibility
Policies and operations software cannot do
- Executing the BAA chain before production data flows.
- Health system approval of scopes, accounts and data use.
- Procedures for provisioning, reviewing and revoking integration credentials when staff leave or contracts end.
- Joint incident response contacts and notification expectations between vendor and health system.
- Including the integration in each party's risk analysis (164.308(a)(1)(ii)(A)).
Technical architecture for secure EHR connections
Integration boundary service
All EHR traffic flows through one integration service that owns credentials, token exchange and data transformation. Application services never hold EHR credentials directly. This narrows where secrets live and gives one place to audit and throttle EHR access.
Identity and credential handling
User-context calls use the user's SMART access token, so the EHR's own permissions apply. Backend calls use a dedicated client identity per environment and per health system, with private keys in a key management service and no human access to production keys.
- Separate client registrations for development, test and production.
- Key rotation documented and rehearsed before go-live.
- Refresh tokens encrypted at rest and bound to the registered client.
Minimization and storage
Inbound FHIR bundles or HL7 messages are parsed, validated and reduced to the fields the product needs before storage. Raw payloads, if kept for troubleshooting, are encrypted, access-restricted and expired on a short schedule.
Provenance and auditing
Each stored record carries its source system, retrieval time and the identity that requested it. Audit events record the request, not the clinical contents, so audit logs do not become a second copy of the chart.
EHR and API integration options
| Method | Security notes |
|---|---|
| FHIR R4 with SMART App Launch | User-bound OAuth 2.0 access; scopes limited by EHR configuration and user permissions |
| SMART Backend Services | System-level access; requires tight scopes, asymmetric keys and strong monitoring |
| FHIR Bulk Data | Efficient population-level export; large data volumes need storage, retention and deletion planning |
| HL7 v2 via interface engine | Real-time ADT, orders and results; transport must be encrypted outside MLLP itself |
| Vendor proprietary APIs | Fill gaps in FHIR coverage; access governed by the client's EHR contract and vendor program |
| Flat files or SFTP | Common for batch feeds; enforce key-based auth, encryption and prompt file deletion |
Development methodology
- 1
Feature-to-data mapping
For each feature, record the exact resources, elements and frequency needed. This is the basis for scope requests and the minimum necessary rationale.
- 2
Agreement and access planning
Confirm the BAA chain, the health system's developer program requirements and who will register clients and approve scopes.
- 3
Architecture and threat model
Design the integration boundary, credential storage and data flows, and model threats such as stolen backend keys, replayed tokens and over-retrieval.
- 4
Sandbox build and testing
Build against vendor sandboxes with synthetic data, including negative tests for denied scopes and expired credentials.
- 5
Security review package
Prepare diagrams, scope justifications and control descriptions for the health system's review and answer follow-up questions.
- 6
Production cutover and monitoring
Go live with volume alerts, interface health dashboards and a runbook for credential rotation and incident contact.
Cost and timeline factors
These are rough, scope-dependent planning ranges, not quotes and not based on our project data. Calendar time is often driven by health system review and vendor program steps rather than engineering effort.
Read-only SMART on FHIR, one EHR
Roughly 6 to 12 weeks of engineering, plus whatever time the health system's security review and app registration take.
Backend or bulk integration
Roughly 2 to 4 months, driven by data volume, transformation complexity and retention design.
HL7 v2 interfaces
Each interface is typically weeks rather than months, but connectivity setup, VPN coordination and message variation between sites add calendar time.
Write-back and multi-EHR
Writing to the chart and supporting several EHR vendors can multiply testing and review effort; plan in phases.
Frequently Asked Questions
How is this different from your Epic or Oracle Health integration pages?
Those pages describe vendor-specific approaches and programs. This service focuses on the security engineering that applies to every EHR connection: scope minimization, credential control, encrypted transport, data minimization, BAAs and audit. Most projects use both.
Do we need a BAA with the hospital to integrate with its EHR?
If your product creates, receives, maintains or transmits ePHI on behalf of the hospital, you are generally a business associate and a BAA is required. A patient-directed app that receives data at the patient's request through patient access APIs may not be a business associate of the provider. Have counsel confirm your specific relationship.
Why do health systems push back on system-level FHIR scopes?
System scopes grant access across patients without a user present. If those credentials leak, the exposure can cover a large patient population. Reviewers want to see that each scope maps to a feature and that keys are protected and monitored.
Is HL7 v2 secure enough for PHI?
HL7 v2 is a message format and MLLP is a framing protocol; neither provides encryption. They can be used safely when wrapped in TLS, a monitored VPN or private connectivity, with the interface engine hardened and access-controlled.
Should we store EHR data in our own database?
Only what the product needs, for as long as it needs it. Some features can query the EHR on demand instead of caching. Where storage is necessary, we reduce payloads to required fields, encrypt them and apply retention and deletion rules.
Can you help us complete a health system security questionnaire?
Yes. We prepare accurate technical answers, diagrams and control descriptions for the parts we engineered. Organizational questions such as workforce training or your policies need answers from your own compliance program.