2022 CDC Clinical Practice Guideline for Prescribing Opioids Implementation Guide
2022.1.0 - CI Build

2022 CDC Clinical Practice Guideline for Prescribing Opioids Implementation Guide, published by Centers for Disease Control and Prevention (CDC). This guide is not an authorized publication; it is the continuous build for version 2022.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/opioid-cds-r4/ and changes regularly. See the Directory of published versions

Library: OpioidCDSREC10OrderSelect

Official URL: http://fhir.org/guides/cdc/opioid-cds/Library/OpioidCDSREC10OrderSelect Version: 2022.1.0
Draft as of 2025-08-14 Computable Name: OpioidCDSREC10OrderSelect
Id: OpioidCDSREC10OrderSelect
Url: OpioidCDSREC10OrderSelect
Version: 2022.1.0
Name: OpioidCDSREC10OrderSelect
Status: draft
Type:

system: http://terminology.hl7.org/CodeSystem/library-type

code: logic-library

Date: 2025-08-14 14:21:53+0000
Publisher: Centers for Disease Control and Prevention (CDC)
Related Artifacts:

Dependencies

Parameters:
NameTypeMinMaxIn/Out
ContextPrescriptionsMedicationRequest0*In
PatientPatient01Out
Is Perform Drug Screen Recommendation Applicable?boolean01Out
Applicable Because of Unexpected Resultsboolean01Out
Detailstring01Out
Data Requirements:
TypeProfileMSCode Filter
Patient http://hl7.org/fhir/StructureDefinition/Patient
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
MedicationRequest http://hl7.org/fhir/StructureDefinition/MedicationRequest ;;;; code filter:
path: category
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/medicationrequest-category-community
Content: text/cql
library OpioidCDSREC10OrderSelect version '2022.1.0'

using FHIR version '4.0.1'

include FHIRHelpers version '4.0.1' called FHIRHelpers
include OpioidCDSCommon version '2022.1.0' called Common
include OpioidCDSCommonConfig version '2022.1.0' called Config
include OpioidCDSRoutines version '2022.1.0' called Routines
include OpioidCDSREC10Common version '2022.1.0' called Rec10Common

parameter ContextPrescriptions List<MedicationRequest>

context Patient

define "Is Perform Drug Screen Recommendation Applicable?":
  Rec10Common."Inclusion Criteria For UDS Recommendation"

define "Applicable Because of Unexpected Results":
  Rec10Common."Inclusion Criteria For Unexpected Results"

define "Detail":
  Rec10Common."Get HTML Details"
Content: application/elm+xml
Encoded data (9704 characters)
Content: application/elm+json
Encoded data (14908 characters)