Inferensys

Glossary

CDS Hooks

An HL7 standard for triggering real-time, context-aware clinical decision support, such as an SDOH screening reminder, within a clinician's EHR workflow.
Cinematic overhead of a WeWork creative suite room with multiple curved monitors showing AI decision dashboards, executives in casual attire reviewing data, dramatic pendant lighting.
CLINICAL WORKFLOW STANDARD

What is CDS Hooks?

CDS Hooks is an HL7 standard that defines a real-time, event-driven interface for triggering clinical decision support services directly within a clinician's electronic health record workflow.

CDS Hooks is an HL7 specification that enables external, context-aware clinical decision support (CDS) services to be invoked automatically at specific points in a clinician's EHR workflow. The standard defines a set of pre-defined triggers—called "hooks"—such as patient-view or order-select, which fire when a clinician performs a corresponding action. The EHR sends a lightweight, context-rich request to a remote CDS service, which returns actionable guidance, such as an SDOH screening reminder or a care gap alert, displayed as an information card within the user interface.

The architecture decouples decision logic from the EHR, allowing healthcare organizations to deploy interoperable, best-of-breed CDS tools without custom integration. Each hook invocation includes FHIR resources and workflow context, enabling the service to deliver patient-specific, real-time recommendations. This standard is foundational for embedding advanced analytics, including social determinants of health extraction and prior authorization checks, directly into the clinical moment, thereby reducing cognitive burden and improving guideline adherence.

HL7 STANDARD

Key Features of CDS Hooks

CDS Hooks is an HL7 specification that defines a real-time, event-driven architecture for integrating clinical decision support (CDS) services directly into a clinician's EHR workflow. It enables external services to be invoked automatically at specific moments in a user's session, such as when opening a patient's chart or ordering a medication, and return contextually relevant guidance.

01

Event-Driven Triggering

CDS Hooks operates on a hook-based invocation model. The EHR fires a named hook at a predefined point in the clinician's workflow, such as patient-view or order-select. An external CDS service subscribed to that hook receives a context-rich payload and responds with actionable cards. This eliminates the need for clinicians to manually launch a separate application or search for guidance.

patient-view
Most Common Hook
order-select
Medication Workflow Hook
03

Card-Based Response Model

The CDS service responds with an array of decision support cards rendered natively within the EHR interface. Each card can include:

  • Information cards displaying static text or links
  • Suggestion cards proposing a specific action (e.g., 'Order HbA1c lab')
  • App link cards launching a SMART on FHIR application for complex workflows This standardized response format ensures a consistent user experience across different EHR platforms.
04

FHIR-Native Interoperability

CDS Hooks is deeply integrated with the HL7 FHIR standard. The context payload references FHIR resources, and the prefetch mechanism allows the EHR to proactively bundle relevant FHIR data (e.g., MedicationRequest, Observation) in the initial request. This tight coupling ensures semantic interoperability and reduces the latency and complexity of secondary data retrieval by the CDS service.

05

Security via OAuth 2.0

The specification mandates a strict OAuth 2.0 authorization framework using the JSON Web Token (JWT) Bearer profile. The EHR issues a signed JWT to the CDS service, asserting the identity of the requesting user and the scope of their access. This ensures that protected health information (PHI) is only transmitted to trusted, authenticated services and that the service operates within the user's authorized data scope.

06

SDOH Screening Integration

A primary use case for CDS Hooks is triggering social determinants of health (SDOH) screenings. A hook like patient-view can invoke a service that checks for gaps in SDOH documentation. The response card can prompt the clinician to administer a PRAPARE screening tool or alert them to a previously documented risk, such as food insecurity, directly within the encounter workflow.

CDS HOOKS EXPLAINED

Frequently Asked Questions

Clear, technical answers to the most common questions about the CDS Hooks standard for integrating real-time clinical decision support into the EHR workflow.

CDS Hooks is an HL7 standard that defines a specification for triggering real-time, context-aware clinical decision support (CDS) within a clinician's electronic health record (EHR) workflow. It works by having the EHR invoke a remote CDS service at specific points in the user's workflow—called hooks—such as when opening a patient's chart or signing a medication order. The EHR sends a lightweight JSON payload containing the current clinical context (e.g., patient ID, encounter ID, draft order details) to the external CDS service. The service then executes its logic and returns a response containing informational cards (e.g., a reminder to screen for food insecurity), suggested orders, or links to launch a SMART app for a more complex interaction. This architecture decouples the decision support logic from the EHR vendor's code, enabling a service-oriented approach to clinical intelligence.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.