Skip to content
Healthcare SoftwareEngineering

AI Integration

Healthcare AI Integration Services for Existing EHRs and Products

An accurate model nobody sees at the right moment changes nothing. Our healthcare AI integration services put AI output inside the EHR screens, work queues, and product features people already use, with clear attribution, graceful failure, and an audit trail.

AI integration: overview

Many organizations already have an AI capability, whether a vendor model, an internally built risk score, or a hosted LLM feature, but it lives in a separate portal or dashboard that clinicians and staff rarely open. Integration is the work of delivering that capability inside existing workflows: a CDS Hooks card when an order is signed, a SMART on FHIR app panel in the chart, a score in an EHR worklist column, or a new feature inside a healthcare SaaS product.

Integration has its own engineering problems distinct from building or deploying the model. Data must flow from the EHR to the AI service in time for the moment of use, through FHIR APIs, HL7 v2 feeds, or bulk exports. Results must flow back in a form the host system accepts, attributed clearly as AI-generated. The integration has to behave well when the AI service is slow or unavailable, which in practice means timeouts, cached results where appropriate, and a workflow that continues without the AI rather than blocking the clinician.

Access to EHR APIs, app marketplaces, and sandboxes is governed by each EHR vendor's programs and by your organization's agreements, and timelines often depend on those approvals. We work within those channels, design integrations that respect the host system's performance limits, and document the data flows for privacy and security review. This page covers integration into existing systems; building a new AI application from scratch is covered under healthcare AI development.

Engineering challenges in AI integration

  • 01Data not available at the moment of use

    A model that needs the latest vitals cannot score an order in real time if vitals reach the data warehouse in a nightly batch. Integration design starts with what data is reachable, and how fast, at the decision point.

  • 02Host system performance limits

    CDS Hooks services have tight response expectations, and EHR APIs have rate limits. An AI service that takes seconds to respond either needs prefetching and caching or a different integration point.

  • 03Interruptive alerts that get ignored

    Pop-up alerts for every AI suggestion lead to fatigue and overrides. Choosing between interruptive cards, passive indicators, and worklist columns is a workflow design decision with clinicians, not a technical default.

  • 04Writing AI output into the record

    Write-back requires decisions about which resource type to use, how AI provenance is recorded, who is the author, and whether a human must accept the content first.

  • 05Vendor program dependencies

    App registration, API access, and marketplace listing depend on EHR vendor programs and client agreements. These approvals can set the critical path more than the engineering work.

Technical capabilities

What our AI integration work covers

  • SMART on FHIR app integration

    We build SMART on FHIR apps that launch within the EHR with patient and user context, display AI outputs with their supporting evidence, and respect the scopes granted by the authorization server.

  • CDS Hooks services

    We implement CDS Hooks services for hooks such as patient-view and order-sign, using prefetch templates to reduce latency and returning cards with suggestions, links, and source information.

  • Interface-based delivery

    Where APIs are limited, we deliver AI results through HL7 v2 messages, flowsheet rows, or worklist feeds via an interface engine, with message-level acknowledgments and error queues.

  • Product feature integration

    For healthcare SaaS companies, we embed AI capabilities into existing product architecture: API contracts, tenant isolation, feature flags, and UI patterns that mark AI-generated content.

  • Write-back with provenance

    When AI output is written back, we use appropriate FHIR resources and Provenance records, require human acceptance where the risk calls for it, and keep the original AI output alongside any edits.

  • Graceful degradation

    Timeouts, circuit breakers, and cached results keep the host workflow responsive. When the AI service is unavailable, the workflow continues without it and the gap is logged.

  • Transparency in the UI

    Integrated displays show that content is AI-generated, the model version, the key inputs or sources, and how to report a problem, supporting both user trust and source-attribute expectations.

Software architecture

Reference architecture for AI integration

An AI integration sits between the host system and the AI service, translating context in and results out, and absorbing the AI service's latency and failures.

  1. Host systems
    • EHR
    • Healthcare SaaS product
    • Work queues
    • Patient portal
  2. Integration points
    • SMART on FHIR launch
    • CDS Hooks
    • HL7 v2 interfaces
    • Product APIs
  3. Integration service
    • Context assembly
    • Prefetch cache
    • Timeouts and fallbacks
    • Result mapping
  4. AI services
    • Model endpoints
    • LLM gateway
    • RAG service
  5. Records
    • FHIR Provenance
    • Audit events
    • User feedback capture
Illustrative layering; actual architecture is decided per engagement and documented in decision records.

Technology stack for AI integration

Standards
FHIR R4SMART App LaunchCDS HooksHL7 v2
Integration
Interface enginesFHIR client librariesMessage brokers
Apps
ReactTypeScriptOAuth 2.0 / OIDC
Resilience
Circuit breakersRedis cachingDead-letter queues
Observability
OpenTelemetryInterface monitoringAudit logging

Security & compliance

Security and compliance considerations for AI integration

What regulations require

  • ONC's HTI-1 final rule requires developers of certified health IT supplying decision support interventions under 45 CFR 170.315(b)(11) to support source attributes; when integrating third-party predictive AI into a certified EHR, understand how source information will be made available to users, and confirm current requirements given later rulemaking.
  • FDA's September 2022 CDS guidance explains how the section 520(o) criteria apply; how an integrated AI output is presented, including whether clinicians can independently review the basis for it, is relevant to whether the function is regulated as a device.
  • The HIPAA Security Rule requires access controls and audit controls (45 CFR 164.312(a) and (b)); integration services that move ePHI between the EHR and AI services must authenticate, restrict, and log that access.
  • The 21st Century Cures Act information blocking rules (45 CFR Part 171) apply to actors such as health IT developers of certified health IT and providers, and are relevant when integrations control access to or exchange of electronic health information.

Recommended engineering practices

  • Request only the SMART scopes and prefetch data the AI feature actually uses.
  • Label AI-generated content clearly in every host UI and record FHIR Provenance on write-back.
  • Set timeouts so an AI failure never blocks a clinical workflow.
  • Document every data flow between host systems and AI services for privacy review.
  • Note that access to EHR APIs and marketplaces is governed by the EHR vendor's programs and your agreements; we are independent and not affiliated with EHR vendors.

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 AI integration

  • Epic, Oracle Health, MEDITECH, athenahealth, and other EHRs via their available APIs (trademarks belong to their owners)
  • SMART on FHIR authorization servers
  • CDS Hooks-enabled EHRs
  • HL7 v2 interface engines
  • FHIR Bulk Data export
  • Healthcare SaaS product APIs
  • LLM gateways and model endpoints
  • Identity providers

Engineering methodology

How we approach AI integration

  1. 1

    Moment of use

    Identify exactly where in the workflow the AI output should appear, who sees it, and what action it informs, with clinical and operational users.

  2. 2

    Data path

    Determine what data is available at that moment, through which interface, and with what latency and access requirements.

  3. 3

    Integration pattern

    Choose SMART app, CDS Hooks, interface, or product API delivery, and design display, write-back, and fallback behavior.

  4. 4

    Build and test

    Implement against EHR sandboxes or test environments with fictional patients, including timeout and failure scenarios.

  5. 5

    Pilot in workflow

    Release to a pilot group, measure use, overrides, and latency, and adjust display and timing before expanding.

Business use cases

Where AI integration delivers value

  • Risk score in a worklist

    Add a readmission risk column to a care management worklist, refreshed on a schedule that matches data availability.

  • Order-time suggestion card

    Return a CDS Hooks card at order signing that shows an AI-generated suggestion with its supporting data and a link to details.

  • Chart summary panel

    Embed an LLM-generated chart summary in a SMART on FHIR app, with each statement linked to its source document.

  • AI feature in a SaaS product

    Add document classification to a revenue cycle SaaS product with tenant-level feature flags and AI content labeling.

Technical comparison

Integration patterns for delivering AI inside the EHR
PatternBest forConstraints
CDS Hooks cardSuggestions at a specific action like order signingTight latency; risk of alert fatigue
SMART on FHIR appRich displays with evidence and interactionRequires launch and app approval
Worklist columnPrioritization across many patientsUsually batch-refreshed
HL7 v2 result messageSystems with limited API supportLimited display control
Write-back resourcePersisting accepted AI outputNeeds provenance and human acceptance rules

Typical deliverables

What a AI integration engagement produces

  • Workflow integration design with moment-of-use analysis
  • Data flow and access documentation
  • SMART on FHIR app or CDS Hooks service
  • Interface specifications and mappings
  • Write-back design with Provenance
  • Fallback and degradation behavior tests
  • Pilot usage and latency report

AI integration design checklist

  • The moment of use and the action it informs are defined
  • Required data is available at that moment
  • Latency budget fits the integration point
  • AI content is labeled in the host UI
  • The workflow continues if the AI service fails
  • Write-back records provenance and acceptance
  • Vendor program and agreement requirements are confirmed

Cost and timeline factors

What shapes AI integration cost and timeline

  • Number of host systems and EHR vendors involved
  • Integration pattern and its latency demands
  • Vendor program and sandbox access timelines
  • Whether write-back to the record is required
  • Clinical workflow design and pilot effort
  • Existing interface engine and FHIR capabilities

Typical timeline

A read-only SMART on FHIR panel or CDS Hooks service for one EHR can be built in weeks to a couple of months once access is granted. Multi-EHR integrations with write-back usually take several quarters, with vendor approvals frequently on the critical path.

Read the cost guide

AI integration FAQs

What are healthcare AI integration services?

Healthcare AI integration services embed AI capabilities into existing EHRs, clinical workflows, and healthcare products so outputs appear where people already work. The work covers data flows into the AI service, delivery through SMART on FHIR apps, CDS Hooks, interfaces, or product APIs, write-back with provenance, fallback behavior, and audit logging.

Should AI suggestions appear as EHR alerts?

Sometimes, but not by default. Interruptive alerts suit a narrow set of high-importance, time-sensitive situations. Many AI outputs work better as passive indicators, worklist columns, or panels clinicians open when needed. We decide with clinical users and measure override and use rates during pilots.

Can you integrate AI with Epic or Oracle Health?

We engineer integrations using the standards-based and vendor APIs these EHRs make available, such as FHIR, SMART on FHIR, and CDS Hooks. We are independent and not affiliated with or endorsed by any EHR vendor; access to APIs, sandboxes, and app marketplaces is governed by each vendor's programs and your organization's agreements.

What happens if the AI service is down?

The integration is designed so the clinical workflow continues without it. Timeouts and circuit breakers prevent the host system from waiting, cached results may be shown with their age where that is safe, and otherwise the AI content is simply absent. Outages are logged and alerted so the owning team can respond.

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.