Key takeaway
Healthcare API integration is the work of connecting a healthcare application to third-party services such as labs, pharmacies, clearinghouses, identity, payment, messaging and device platforms. Each integration needs a decision about whether the vendor handles PHI and needs a BAA, plus standard-specific work such as X12 transactions, NCPDP SCRIPT or FHIR.
Last reviewed November 17, 2026
Beyond the EHR
Most healthcare products integrate with far more than one EHR. A telehealth app may combine a video vendor, an e-prescribing network, a lab ordering service, an eligibility check, a payment processor and an SMS provider. Each is a potential business associate and each is a potential leak point.
Healthcare API integration is therefore as much a vendor and data-flow exercise as a coding one. We map which PHI each API receives and why, and remove fields that are not needed.
Healthcare API integration use cases
Lab orders and results
Send orders and receive results through lab networks or aggregators using HL7 v2 ORM and ORU messages or FHIR, depending on the lab.
E-prescribing
Integrate with e-prescribing networks that use NCPDP SCRIPT, including EPCS requirements for controlled substances, typically through a certified intermediary.
Eligibility and claims
Use X12 270/271 eligibility, 837 claims and 835 remittance transactions through a clearinghouse API.
Identity and verification
Add identity proofing and multi-factor authentication aligned with NIST SP 800-63 for patient and clinician accounts.
Payments
Collect copays and balances with tokenized card handling, keeping card data out of your systems and minimizing clinical detail in payment metadata.
Devices and wearables
Ingest readings from connected device platforms and consumer health data APIs for remote monitoring programs.
Messaging and notifications
Send SMS, email and push messages through vendors willing to sign a BAA, with content designed to avoid exposing PHI on lock screens.
Technical approach
Standards
We work with the standard each domain uses: FHIR R4 for clinical data, HL7 v2 for many lab and hospital feeds, X12 for HIPAA administrative transactions, NCPDP SCRIPT for e-prescribing, and plain REST or webhooks for identity, payments and messaging vendors.
Authentication
We use the strongest method each vendor supports: OAuth 2.0 client credentials, mutual TLS or signed requests, with API keys only where nothing else is available. Webhooks are verified with signatures and replay protection.
- Credentials in a secrets manager, never in code or CI logs
- Separate keys per environment and per tenant where possible
- Documented rotation procedures
Data mapping and minimization
We define a canonical internal model and adapters per vendor, so switching a vendor does not ripple through the application. Each adapter sends the minimum necessary fields.
Error handling
We use queues and idempotency keys for writes, dead-letter queues for failures, and reconciliation jobs for asynchronous workflows such as claims. Errors are logged with correlation IDs instead of payloads.
Testing with sandboxes
Most healthcare APIs provide sandboxes or test modes. We build contract tests against them with synthetic data and keep mock servers in CI so tests do not depend on vendor uptime.
Data types and standards by domain
| Domain | Standards and data |
|---|---|
| Clinical records | FHIR R4 Patient, Observation, Condition, MedicationRequest, AllergyIntolerance, DocumentReference |
| Lab | HL7 v2 ORM^O01 and ORU^R01, FHIR ServiceRequest and DiagnosticReport |
| Pharmacy | NCPDP SCRIPT new prescriptions, renewals and medication history |
| Eligibility and claims | X12 270/271, 276/277, 837, 835 |
| Scheduling | FHIR Appointment and Slot, HL7 v2 SIU^S12, vendor scheduling APIs |
| Devices | Vendor REST APIs and webhooks; FHIR Observation for normalized readings |
| Identity | OpenID Connect, SAML, identity proofing vendor APIs |
Security considerations
The biggest risk in multi-vendor integration is PHI reaching a vendor with no BAA, often through logs, analytics, error tracking or message content rather than the main API call.
HIPAA requirement
What the rules themselves require
- BAAs with vendors that create, receive, maintain or transmit ePHI on your behalf (45 CFR 164.502(e), 164.504(e))
- Transmission security for data sent to each vendor (164.312(e))
- Audit controls on access to integration data (164.312(b))
- Use of standard X12 transactions where HIPAA administrative simplification rules apply
Recommended practice
Widely accepted security practice
- Minimum-necessary payloads to every vendor
- Signed and verified webhooks with replay protection
- PHI scrubbing in logs, error trackers and analytics
- OWASP API Security Top 10 review of inbound endpoints
Architecture decision
Depends on your product and risk analysis
- Using an aggregator versus direct vendor connections
- Building an internal canonical model or passing vendor formats through
- Synchronous versus queued processing per integration
Your organization's responsibility
Policies and operations software cannot do
- Vendor due diligence and ongoing vendor risk management
- Maintaining a BAA inventory mapped to data flows
- Incident response coordination with vendors
- Risk analysis covering third-party services
Access and onboarding process
- 1
Inventory integrations
List each vendor, the data it receives, the standard used and whether a BAA is needed.
- 2
Vendor selection and contracts
Your organization signs the vendor agreements and BAAs. We provide technical evaluation of APIs, security documentation and sandbox quality.
- 3
Sandbox build
Implement adapters and contract tests against vendor sandboxes using synthetic data.
- 4
Certification or approval steps
Some networks, such as e-prescribing, require the vendor or intermediary to meet certification requirements before production. We plan for these steps.
- 5
Production rollout
Enable production credentials per vendor, monitor error rates and reconcile asynchronous workflows.
Integration architecture options
| Option | When it fits | Trade-offs |
|---|---|---|
| Point-to-point adapters | A handful of vendors with stable APIs | Low overhead; harder to monitor centrally as count grows |
| Interface engine (Mirth Connect, Rhapsody, Iguana) | Lab and hospital HL7 feeds mixed with APIs | Strong message handling; less natural for modern REST and webhooks |
| Integration platform or aggregator | Many labs, payers or EHRs through one contract | Faster coverage; one more business associate and dependency |
| FHIR facade | Normalizing clinical data from multiple vendors | Consistent model for your app; ongoing mapping work |
Timeline and cost factors
As a rough, scope-dependent planning range, a single well-documented REST vendor integration often takes 1 to 4 weeks, while e-prescribing or clearinghouse integrations can take 2 to 4 months including approval steps. These are not quotes.
- Number of vendors and standards involved
- Certification or approval requirements
- Asynchronous reconciliation needs
- Vendor sandbox quality and support responsiveness
- Per-transaction and platform fees charged by vendors
How we work
We begin with a data-flow map and BAA inventory, then build adapters behind a stable internal interface. Each adapter ships with tests, monitoring and a runbook.
When a vendor will not sign a BAA, we redesign the flow so it never receives PHI, or recommend an alternative vendor.
Frequently Asked Questions
Which healthcare vendors need a BAA?
Any vendor that creates, receives, maintains or transmits ePHI on behalf of a covered entity or business associate generally needs a BAA. That often includes hosting, messaging, video, e-prescribing and some analytics vendors. Payment processing has a narrow exception for certain payment activities, so get specific advice.
What are X12 transactions?
X12 transactions are the HIPAA standard formats for administrative exchanges such as eligibility (270/271), claim status (276/277), claims (837) and remittance (835). Most apps reach them through a clearinghouse API.
How do e-prescribing integrations work?
E-prescribing uses the NCPDP SCRIPT standard over a prescription network. Most apps connect through a certified intermediary, and prescribing controlled substances adds DEA EPCS requirements such as two-factor authentication.
Can SMS reminders contain PHI?
Reminders can be sent, but message content should be minimal, because lock screens display it. A text such as 'You have a new message from your care team' is safer than naming a test, diagnosis or clinic specialty.
Should we use an aggregator or connect directly?
Aggregators speed up coverage across many labs, payers or EHRs, at the cost of another vendor and their data model. Direct connections give more control but take longer to scale. The right choice depends on volume and roadmap.
How do you keep PHI out of logs?
We log correlation IDs, status codes and timing rather than payloads, apply structured log scrubbing, and configure error trackers to drop request bodies. We also test this explicitly.