OpioidCDSREC10OrderSignCRD
type: Library
node role: treeRoot
id:
  v: OpioidCDSREC10OrderSignCRD
text:
  status:
    v: extensions
  div:
    v: Id: OpioidCDSREC10OrderSignCRD Url: OpioidCDSREC10OrderSignCRD Version: 2022.1.0 Name: OpioidCDSREC10OrderSignCRD Status: draft Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2025-11-13 15:52:38+0000 Publisher: Centers for Disease Control and Prevention (CDC) Related Artifacts: Dependencies http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1 http://fhir.org/guides/cdc/opioid-cds/Library/FHIRHelpers|4.0.1 Parameters: Name Type Min Max In/Out ContextPrescriptions MedicationRequest 0 * In Patient Patient 0 1 Out Do the CRD thing? boolean 0 1 Out Get Coverage Extension Extension 0 1 Out Data Requirements: Type Profile MS Code Filter Patient http://hl7.org/fhir/StructureDefinition/Patient Content: text/cql library OpioidCDSREC10OrderSignCRD version '2022.1.0' using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' called FHIRHelpers /* ** Recommendation #10 ** When prescribing opioids for subacute or chronic pain, clinicians should consider the benefits ** and risks of toxicology testing to assess for prescribed medications as well as other prescribed ** and nonprescribed controlled substances (recommendation category: B; evidence type: 4). ** ** When ** Provider is prescribing an opioid analgesic with ambulatory misuse potential in the outpatient setting: ** Prescription is for treating subacute and/or chronic pain. ** Opioid review is useful for this patient: ** Patient is 18 or over ** Patient does not have evidence of sickle cell disease ** Patient does not have findings indicating limited life expectancy ** Patient does not have orders for therapies indicating end of life care ** Patient is not undergoing active cancer treatment: ** Patient has had at least 2 office visits within the past 12 months with an oncology specialist present, or ** Patient has had at least 2 office visits within the past 12 months with a CDC malignant cancer condition diagnosis ** Patient does not have conditions likely terminal …
url:
  v: http://fhir.org/guides/cdc/opioid-cds/Library/OpioidCDSREC10OrderSignCRD
  l: OpioidCDSREC10OrderSignCRD
version:
  v: 2022.1.0
name:
  v: OpioidCDSREC10OrderSignCRD
status:
  v: draft
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
      l: library-type
    code:
      v: logic-library
date:
  v: 2025-11-13T15:52:38+00:00
publisher:
  v: Centers for Disease Control and Prevention (CDC)
contact:
  telecom:
    system:
      v: url
    value:
      v: https://www.cdc.gov
related artifact:
  type:
    v: depends-on
  display:
    v: FHIR model information
  resource:
    v: http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1
    l: http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo
related artifact:
  type:
    v: depends-on
  display:
    v: Library FHIRHelpers
  resource:
    v: http://fhir.org/guides/cdc/opioid-cds/Library/FHIRHelpers|4.0.1
    l: http://fhir.org/guides/cdc/opioid-cds/Library/FHIRHelpers
parameter:
  name:
    v: ContextPrescriptions
  use:
    v: in
  min:
    v: 0
  max:
    v: *
  type:
    v: MedicationRequest
parameter:
  name:
    v: Patient
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: Patient
parameter:
  name:
    v: Do the CRD thing?
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Get Coverage Extension
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: Extension
data requirement:
  type:
    v: Patient
  profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    l: Patient
content:
  content type:
    v: text/cql
content:
  content type:
    v: application/elm+xml
content:
  content type:
    v: application/elm+json