-
Notifications
You must be signed in to change notification settings - Fork 32
CDS Hooks Sandbox Walkthrough
When you access the CDS Hooks Sandbox, you’ll arrive at the main dashboard. This dashboard simulates the experience of using Clinical Decision Support (CDS) Hooks in an Electronic Health Record (EHR) system. It includes panels for FHIR server settings, CDS service configurations, and various hooks for testing.
-
Top Menu Navigation:
-
Hooks Tabs: Displays the available CDS Hooks for testing, such as those corresponding to
patient-view
,order-select
, andorder-sign
. -
Settings Menu: Access by selecting the ⚙️ icon located at the top right of the page. It provides options for:
- Add CDS Services: Add new CDS services by entering a discovery URL. Refer to the discovery documentation for more details.
- Configure CDS Services: Manage active CDS services, enabling or disabling them as needed.
- Change Patient: Switch between patients available in the connected FHIR server.
- Change FHIR Server: Select or configure the FHIR server providing clinical data.
- FHIR Server Settings: View and modify the current FHIR server configuration.
- Reset Configuration: Restore the default configuration settings.
-
Hooks Tabs: Displays the available CDS Hooks for testing, such as those corresponding to
-
Main Dashboard Panels:
-
Hook Panel: Lists options for invoking different CDS Hooks, such as
patient-view
,order-select
, andorder-sign
. - Developer Panel: Allows you to select a CDS service for evaluation and view the JSON request/response of CDS Hooks invocations. Error messages are displayed in the browser console, which can typically be accessed by right-clicking on the page, selecting Inspect, and navigating to the Console tab.
-
Hook Panel: Lists options for invoking different CDS Hooks, such as
- Navigate to the
Patient View
tab to simulate an EHR loading a patient's record. - The Hook Panel will show cards generated by the active CDS services for the selected patient. The Developer Panel allows you to review the request and response JSON to diagnose any issues.
Note: The
patient-view
hook is commonly used to offer patient-specific recommendations when opening a patient's chart.
- Navigate to the
Patient View
tab. - Select the patient-greeting service (
https://sandbox-services.cds-hooks.org/cds-services/patient-greeting
) from theselect a service
dropdown located in the developer panel. - View the results for the current patient. You should see something like the following:
- Change the patient (follow the instructions listed in section 6. Changing the Patient).
- View the results for the updated patient.
- Navigate to the
Rx View
tab to simulate selecting orders (e.g., medications or tests) for a patient. - The Hook Panel will display any responses, such as recommendations or alerts related to the selected orders.
Note: The
order-select
hook provides real-time decision support based on the orders being chosen by the clinician.
- Navigate to the
Rx View
tab. - Select the cms-price-check (
https://sandbox-services.cds-hooks.org/cds-services/cms-price-check
) from theselect a service
dropdown located in the developer panel. - Search for
Fentanyl
Choose dose of0.2 MG
and route ofSublingual Tablet
in theMedication
form input. - View the results. You should see something like the following:
- Search for
12 HR Oxycodone Hydrochloride 10 MG Extended Release Oral Tablet [Oxycontin]
in theMedication
form input. - View the results. You should see a recommendation to order a generic alternative:
- Navigate to the
Rx Sign
tab to simulate finalizing or signing an order for a patient. - View any decision support recommendations or warnings in the Hook Panel before completing the order.
Note: The
order-sign
hook is used to offer relevant guidance just before the order is finalized.
- Navigate to the
Rx Sign
tab. - Configure the opioidcds-10-order-sign service (https://opioid-sandbox.cqframework.org/cdc/opioid-cds-r4/cds-service/cds-services/opioidcds-10-order-sign) by following the steps below.
- Add the CDS service (following the steps in 8. Adding CDS Services) with the following discovery URL:
https://opioid-sandbox.cqframework.org/cdc/opioid-cds-r4/cds-service/cds-services
. - Change the FHIR server (following the steps in 7. Changing the FHIR Server) with the following FHIR server URL:
https://opioid-sandbox.cqframework.org/cdc/opioid-cds-r4/ehr/fhir
- Change the patient (follow the instructions listed in section 6. Changing the Patient) to
example-opioidcds
- Alternatively, configure the CDS service, FHIR server, and patient by navigating to the following URL:
https://sandbox.cds-hooks.org/?fhirServiceUrl=https://opioid-sandbox.cqframework.org/cdc/opioid-cds-r4/ehr/fhir&serviceDiscoveryURL=https://opioid-sandbox.cqframework.org/cdc/opioid-cds-r4/cds-service/cds-services&patientId=example-opioidcds&screen=rx-sign
- Add the CDS service (following the steps in 8. Adding CDS Services) with the following discovery URL:
- Ensure the opioidcds-10-order-sign service (https://opioid-sandbox.cqframework.org/cdc/opioid-cds-r4/cds-service/cds-services/opioidcds-10-order-sign) is selected from the
select a service
dropdown located in the developer panel. - Search for
Oxycodone Hydrochloride 5 MG Oral Tablet
in theMedication
form input. - Enter a value greater than or equal to 28 in the
Supply Duration (Days)
form input. - Click the
Sign Order
button. - View the results. You should see something like the following:
- Follow steps 1-3 of the previous scenario (UDS Recommendation).
- Change the patient (follow the instructions listed in section 6. Changing the Patient) to
example-rec-10-order-sign-illicit-POS-Cocaine-drugs
. - Search for
Oxycodone Hydrochloride 5 MG Oral Tablet
in theMedication
form input. - Enter a value greater than or equal to 28 in the
Supply Duration (Days)
form input. - Click the
Sign Order
button. - View the results. You should see something like the following:
- Select the Change Patient option from the settings menu (⚙️ icon at the top right).
- Select a different patient from the list.
- The chosen patient's data will be used for subsequent CDS Hooks invocations.
- Select the Change FHIR Server option from the settings menu (⚙️ icon at the top right).
- Enter a new FHIR server URL (for example: https://launch.smarthealthit.org/v/r4/fhir is a FHIR R4 server).
- Click Next to apply the change, connecting the Sandbox to the new server.
- You can find patients by last name with a search like https://launch.smarthealthit.org/v/r4/fhir/Patient?given=Chris. (15af1070-1ad4-4800-bd3f-f6a70ff55dac is one of the FHIR Patient IDs returned by this search).
- Select the Add CDS Services option from the settings menu (⚙️ icon at the top right).
- Provide the discovery URL for the new CDS service (see discovery documentation).
- Click Save to confirm. The new service will appear in the Configure CDS Services section.
This guide provides a detailed overview of testing and exploring CDS Hooks functionalities within the simulated EHR environment of the CDS Hooks Sandbox.