Most healthcare AI startups discover the EHR problem after the model works. The demo reads a sample chart and drafts a perfect summary, then the first health system asks how the output gets into Epic, who signs it and what happens when the API refuses the write.
This post is for founders, product leads and engineers at AI companies selling to providers. It covers what you can realistically read, what you can write back, how AI output reaches a clinician's screen, and the mistakes that stall AI integrations with Epic and Oracle Health (Cerner).
What does EHR interoperability mean for a healthcare AI startup?
Connecting an AI product to customer EHRs?
Our EHR integration team builds the read paths, write-back and clinician workflow for AI products across Epic, Oracle Health and other vendors.
EHR interoperability for a healthcare AI startup means two separate problems: getting enough of the chart into the model, and getting the model's output back to a clinician in a form they can act on and sign. Agnotic Technologies plans both paths per customer, because reading is widely standardized and writing is not.
Many AI products solve the first problem well and leave the second for later. The second problem decides whether clinicians ever see the output.
What can an AI product read from the EHR?
An AI product can usually read structured clinical data through HL7 FHIR R4 APIs: demographics, problems, medications, allergies, labs, vitals, encounters and immunizations. Coverage beyond that depends on the vendor and on what each customer has turned on.
ONC certification criterion 170.315(g)(10) requires certified EHRs to offer a standardized API for patient and population services based on HL7 FHIR.
Certification sets a floor, not a ceiling. Vendors expose many more resources and proprietary APIs, but each one you depend on becomes a question in every customer's scoping call.
- Provider launch: a SMART on FHIR app opened from the chart, reading as the signed-in clinician.
- Backend access: a system-level connection for batch or background work, approved per customer.
- Bulk export: population-level files for analytics or model monitoring, where the customer allows it.
- Event feeds: HL7 v2 messages from the customer's interface engine for admissions, results and orders.
Why do clinical notes need their own plan?
Clinical notes need their own plan because most EHRs expose them as documents, not as structured fields. A note usually arrives as a document reference with an attachment in plain text, HTML, RTF or PDF, and the content type can differ by note type.
For a language model, notes are often the most valuable input and the messiest. Plan for format conversion, note type filters, author and date metadata, and a rule for notes the customer marks as sensitive.
- Note types: agree with the customer which types the product may read, such as progress notes and discharge summaries.
- Conversion: strip formatting reliably and keep the section headings the model needs.
- Sensitive notes: exclude categories the customer restricts, and log what was skipped.
- Volume: long histories need a selection rule, not every note ever written.
What can an AI product write back?
Write-back is far narrower than read access. Most vendors allow some writes, such as creating a document, a result or a task, but each customer decides which write paths to enable, and many enable few or none for a new vendor.
Plan the product so it works with the least write access first. A draft that a clinician copies into a note is a weak experience, but it is far better than a feature that waits a year for write permission.
- Draft documents: a note or letter saved for the clinician to review and sign, where enabled.
- Discrete data: scores or observations written as results, which usually face the strictest review.
- Tasks and inbox items: work routed to a pool or person, often through the interface engine.
- Orders: almost always proposed for a clinician to sign, never placed directly by the AI.
How does AI output reach the clinician?
AI output reaches the clinician through one of four surfaces: a suggestion card in the workflow, a draft document awaiting signature, an inbox task, or an embedded app inside the chart. Choose the surface by when the clinician needs the output, not by what is easiest to build.
CDS Hooks is an HL7 specification that lets an EHR call an external decision support service at points in the clinician's workflow, such as opening a chart or signing an order.
A CDS Hooks card fits suggestions tied to a moment, such as a gap flagged when the chart opens. A draft document fits summaries and letters. An inbox task fits work that can wait. Each surface needs the clinician to accept, edit or dismiss, and each response is useful feedback for the model.
Supporting Epic, Oracle Health and the rest
Supporting several EHR vendors means one product core with a thin adapter per vendor and per customer. The model, prompts and checks stay the same; endpoints, scopes, code mappings and enabled write paths become configuration.
Oracle Health documents its Millennium Platform FHIR R4 (4.0.1) APIs with an OAuth 2.0 secured endpoint that supports SMART applications, and each resource interaction states whether patient, provider or system authentication is accepted.
Read each vendor's documentation for which authentication each interaction accepts before you design a feature. A capability that works with a clinician's launch may not be allowed for a background job, and that changes the architecture.
Which mistakes stall AI integrations with Epic and Oracle Health?
The mistakes that stall AI integrations are mostly product decisions made before anyone read a customer's integration rules. They show up late, during security review or go-live.
- Assuming write access: building the core feature on a write path the customer will not enable.
- Reading everything: pulling the whole chart into the prompt, which raises cost, latency and privacy review questions.
- Ignoring note formats: a parser built on one note type that fails on RTF or scanned PDFs.
- Hard-coding one vendor: Epic-specific assumptions in the core, so Oracle Health needs a rewrite.
- No source links: suggestions without the chart data they came from, so clinicians cannot check them.
- Silent failures: an expired token or refused write that drops output without telling anyone.
- Sandbox confidence: synthetic patients that never show real note lengths, duplicates or missing data.
Each of these costs a customer's patience as well as engineering time. Health system teams remember which vendors arrived ready for their integration rules.
Scopes, data volume and the privacy review
Every scope an AI product requests becomes a line in the customer's privacy and security review. Request the narrowest scopes that support the feature, and be ready to explain why each resource is needed.
Reviewers also ask where chart data goes after the model reads it. State whether prompts and outputs are stored, for how long, in which region, and whether any model provider sees them under a business associate agreement.
A worked example: a referral summary product
A startup builds a model that summarizes a patient's history for specialists receiving referrals. The first customer runs Epic and the second runs Oracle Health (Cerner).
The product reads problems, medications, recent labs and the last few relevant notes through FHIR, filtered by note type. It returns the summary as a draft document where the customer allows document creation, and as a viewable page inside an embedded app where it does not.
Every sentence in the summary links to the source resource. The vendor adapters differ only in endpoints, note type mappings and authentication, so the second customer is configuration work, not a new build.
Who owns what?
An AI integration has owners at the startup and at each customer. Name them during scoping, because write-back approvals and clinical sign-off sit on the customer side.
- Startup product team: which surfaces the product uses and the fallback when writes are not enabled.
- Startup engineering: adapters, token handling, logging, retries and the per-customer configuration.
- Customer integration team: app registration, enabled APIs, interface engine routes and testing access.
- Customer clinical lead: where the output appears, who reviews it and what counts as acceptable.
- Customer security team: the vendor review, data flows and business associate terms.
How do you test an AI integration before go-live?
Test the integration with the customer's test environment and realistic data shapes, not only a public sandbox. Then run the product silently on real charts before clinicians see output.
- Read tests: every resource and note type the product uses, including empty and very long charts.
- Write tests: each enabled write path, plus the behavior when a write is refused.
- Surface tests: the card, document or task appears where the clinician expects it.
- Failure tests: expired tokens, timeouts and partial data produce a visible error, not silence.
What are AI EHR integration best practices?
Design for read-only first, treat write-back as an upgrade per customer, and keep vendor differences in adapters and configuration. Read only the data the task needs.
Link every output to its source, make every failure visible, and let clinicians accept, edit or dismiss with the reason logged.
How Agnotic can help
Agnotic works with AI companies on the EHR side of their product: FHIR read paths, note handling, CDS Hooks services, write-back where customers allow it, and adapters for Epic, Oracle Health and other vendors. We also prepare the evidence that customer integration and security teams ask for.
Build your FHIR and SMART on FHIR layer with Agnotic
We build the apps, hooks and adapters that carry AI output into the clinician's workflow.
Related reading on Agnotic
EHR APIs, SMART on FHIR and AI inside clinical workflows.


