DEV Community

Cover image for CDS Hooks: Decision Support Inside Epic and Oracle Health
Nirmitee.io
Nirmitee.io

Posted on Originally published at nirmitee.io

CDS Hooks: Decision Support Inside Epic and Oracle Health

How CDS Hooks puts guidance in front of clinicians at the moment of decision, what Epic and Oracle Health support, and the 500ms rule.

Originally published on Nirmitee.io: CDS Hooks in Production: What Epic Supports, What Oracle Doesn't, and How to Build Your First Hook

Most clinical decision support fails for a simple reason: it shows up in the wrong place at the wrong time. A report after the fact, or a separate portal clinicians never check.

CDS Hooks is the standard way to put guidance inside the EHR, at the exact moment a clinician makes a decision: while ordering a medication, opening a chart or starting an encounter. As the source puts it, it is how AI and evidence-based medicine enter the EHR at the moment of decision.

If you are building risk scores, care-gap alerts, drug checks or prior authorization prompts, here is what to know.

How it works

CDS Hooks in production with Epic and Oracle Health: decision support cards inside the EHR workflow

CDS Hooks puts decision support inside the EHR. Source: Nirmitee.io

The design is simple compared to most healthcare integrations. There are three actors:

  • The EHR fires a "hook" at a specific point in the workflow.
  • Your decision support service receives the context, such as the patient and the order, and returns a decision.
  • The clinician sees the result as a "card" in the EHR and acts on it.

Cards can carry a short summary, an urgency level (info, warning or critical), more detail, a source, and suggested actions. The EHR can also send the data your service needs with the request, so your service does not have to fetch it.

The standard hooks

CDS Hooks defines five standard hooks. Four of them:

  • Patient-view: a clinician opens a chart. Used for care gaps, risk scores and outstanding alerts.
  • Order-select: a clinician picks an order. Used for drug interactions, duplicate orders and formulary checks.
  • Order-sign: a clinician signs an order. Used for prior authorization requirements and dose checks.
  • Encounter-start: an encounter begins. Used for protocol and screening reminders.

Epic versus Oracle Health

CDS Hooks support compared: patient-view is supported in Epic and partially in Oracle Health; order-select, order-sign and encounter-start are supported in Epic but not Oracle Health

Hook support by EHR, as of early 2026. Source: Nirmitee.io

Epic is, per the source, the gold standard for CDS Hooks adoption. It supports all of these hooks and maps cards into its own alert system, Best Practice Advisories. A critical card becomes a hard stop that the clinician must acknowledge before going on. A warning becomes a soft stop they can dismiss. An info card is a passive note. Suggested actions become one-click orders or documentation.

Registering a service with Epic requires a secure discovery address, credentials, the data access your service needs, and a signed agreement covering data use, security and support.

Oracle Health is significantly behind, as of early 2026. Only the patient-view hook is partially supported, with basic cards. Order-select, order-sign and encounter hooks are not available, and suggested actions and data sent with requests are limited.

If you must support both, the source lists practical workarounds for Oracle:

  • Embed custom content in Oracle's MPages that calls your service separately.
  • Build a SMART on FHIR app that runs the logic at launch, since Oracle's SMART support is more mature.
  • Use admission and discharge event feeds to trigger your logic, then show results in an app.
  • Check periodically for new orders or encounters and push notifications.

So a single "works in both EHRs" decision support product usually means two delivery paths.

Speed decides adoption

The EHR will time out your service after about 10 seconds, but clinicians will ignore cards that take more than 500 milliseconds to appear. Epic's internal documentation recommends a 300ms target.

The key, per the source: most decision logic can run entirely on the data the EHR sends with the request, with no extra network calls. Design for that from the start.

Testing before production

You cannot test on a live EHR, so testing runs in stages: unit tests with sample requests, a public CDS Hooks sandbox that simulates an EHR, then EHR sandboxes. Epic's sandbox supports full CDS Hooks testing with synthetic patients. Oracle's has limited support, so focus on patient-view.

In production, both Epic and Oracle require encrypted connections, and your service should validate the access token on every request. The original guide covers the production architecture, plus a complete example service you can build on. The full guide also details each card field and how Epic handles the data sent with each request.


Nirmitee.io builds decision support and AI that runs inside Epic and Oracle Health workflows, through CDS Hooks and SMART on FHIR. For the service code and deployment detail, read the original: CDS Hooks in Production on Nirmitee.io.

Dinesh Thorat is Healthtech Growth Partner at Nirmitee.io.

Originally published at nirmitee.io.

Top comments (0)