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.
Glossary
CDS Hooks

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.
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.
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.
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.
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.
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.
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.
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.
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.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
CDS Hooks operates within a rich ecosystem of interoperability standards and clinical workflow concepts. Understanding these related terms is essential for implementing effective, real-time decision support.
Prefetch Template
A mechanism that allows a CDS service to request specific FHIR data be included in the initial hook invocation, eliminating the need for a round-trip API call. The service declares a prefetch template with key-value pairs where the key is a user-defined name and the value is a FHIR read or search URL. This dramatically reduces latency for time-sensitive decision support by providing essential data upfront.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us