Continuous Improvement Build This is the continuous integration, community release of the CDS Hooks specification. All stable releases are available at https://cds-hooks.hl7.org. This specification describes a "hook"-based pattern for invoking decision support from within a clinician's workflow.
CDS hooks take EHR events (like when a provider opens a chart/views a patient, when an order is selected or signed, when a visit starts or ends, ...) and notify arbitrary web services that anyone can create. These services can give "card" data back to the EHR to display to the provider.
Think of the following:
- You create a cost estimator card for when a provider selects an MRI order.
- You create a service that suggest a different medication for a doctor when they are about to prescribe something.
- You create a service that makes CME appear inside the EHR when a patient has certain characteristics.
To get you started, we are going to build #3, because, well, it is super interesting.
It's called "CME-ster" and it makes the following card surface in an EHR when a provider opens a chart and the patient has a history of dementia.
The link is to the awesome Curbsider's podcast which internal medicine doctors/hospitalist love
#268 Dementia Made Simple with Dr. Josh Uy
Dust off your dementia playbook and re-evaluate your approach as Dr. Josh Uy walks us through this common (yet perplexing) condition. Dr. Uy (@joshuy) is the geriatric fellowship director at University of Pennsylvania in addition to a nursing home director and shares his skills in simplifying dementia screening, management, and treatment.
Two get CDS Hooks to work you need two things:
- Somewhere you serve your code for "CME-ster"
- an EHR to show these cards in
For the server part, I like repl.it, and I have some code there you can sign up for a free account and fork it at
Once you fork it click "Run"
You will notice you magically have your own url serving code at the upper right
In fact if you hit the button with the box and an arrow coming out of it, you will see your code being served
To simulate an EHR, go to the CDS Hooks Sandbox at
Click on the gear in the upper right
Click Add CDS Service
Enter your repl url with /cds-services added to the end like this:
Magically you will see this card appear in the "EHR"
Try changing the code (like the image or the "details" of the json for the card). Hit Stop on your repl, then run, then reload the CDS Hooks Sandbox.
Check out more FHIR tutorials at www.patient.dev
<div style="width:70vw; float:left; position:relative;"><img src="https://www.patient.dev/wp-content/uploads/2021/12/chartview.jpg" style="width:70vw;"></div>