OpioidCDSREC11OrderSelect
type: Library
node role: treeRoot
id:
  v: OpioidCDSREC11OrderSelect
text:
  status:
    v: generated
  div: Id: library-OpioidCDSREC11 Type: logic-library Version: 2022.1.0 Status: active Related: type: depends-on Resource: http://fhir.org/guides/cdc/opioid-cds/Library/FHIRHelpers type: depends-on Resource: http://fhir.org/guides/cdc/opioid-cds/Library/OpioidCDSCommon type: depends-on Resource: http://fhir.org/guides/cdc/opioid-cds/Library/OpioidCDSRoutines Content: type: text/cql library OpioidCDSREC11 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 OpioidCDSRoutines version '2022.1.0' called Routines /* ** ** Recommendation #11 ** Clinicians should avoid prescribing opioid pain medication and benzodiazepines ** concurrently whenever possible (recommendation category: A, evidence type: 3) ** ** When ** Provider is prescribing an opioid analgesic with ambulatory misuse potential in the outpatient setting ** Provider is prescribing a benzodiazepine or other central nervous system depressant medication ** Opioid review is useful for this patient: ** Patient is 18 or over ** 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 encounters within the past year with any diagnosis of cancer ** Patient prescribed opioid analgesic with ambulatory misuse potential and benzodiazepine or other central nervous system depressant medication concurrently ** Then ** Recommend to avoid prescribing opioid pain medication and benzodiazepine or other central nervous system depressant concurrently ** Will revise ** Benefits outweigh risks, snooze 3 months ** N/A - see comment, snooze 3 months ** */ // META: Plan Definition: http://fhir.org/guides/cdc/opioid-cds-r4/PlanDefinition/opioid-cds-11 parameter ContextPrescriptions List<MedicationRequest> context Patient define "Opioid Analgesic with Ambulatory Misuse …
contained: Parameters
  id:
    v: options
  parameter:
    name:
      v: translatorVersion
    value: string
      v: 3.22.0
  parameter:
    name:
      v: option
    value: string
      v: EnableAnnotations
  parameter:
    name:
      v: option
    value: string
      v: EnableLocators
  parameter:
    name:
      v: option
    value: string
      v: DisableListDemotion
  parameter:
    name:
      v: option
    value: string
      v: DisableListPromotion
  parameter:
    name:
      v: format
    value: string
      v: XML
  parameter:
    name:
      v: format
    value: string
      v: JSON
  parameter:
    name:
      v: analyzeDataRequirements
    value: boolean
      v: false
  parameter:
    name:
      v: collapseDataRequirements
    value: boolean
      v: true
  parameter:
    name:
      v: compatibilityLevel
    value: string
      v: 1.5
  parameter:
    name:
      v: enableCqlOnly
    value: boolean
      v: false
  parameter:
    name:
      v: errorLevel
    value: string
      v: Info
  parameter:
    name:
      v: signatureLevel
    value: string
      v: Overloads
  parameter:
    name:
      v: validateUnits
    value: boolean
      v: true
  parameter:
    name:
      v: verifyOnly
    value: boolean
      v: false
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-cqlOptions
  value: Reference
    reference:
      v: #options
extension:
  url:
    v: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem
  value: Reference
    link: http://fhir.org/guides/cdc/opioid-cds/Device/cqf-tooling
    reference:
      v: Device/cqf-tooling
url:
  v: http://fhir.org/guides/cdc/opioid-cds/Library/OpioidCDSREC11OrderSelect
version:
  v: 2022.1.0
name:
  v: OpioidCDSREC11OrderSelect
title:
  v: Library - Recommendation #11 - Concurrent Use of Opioids and Benzodiazepines
status:
  v: active
experimental:
  v: true
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
    code:
      v: logic-library
date:
  v: 2025-08-14T14:21:53+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
    link: 4.0
    link: .1
related artifact:
  type:
    v: depends-on
  display:
    v: Library FHIRHelpers
  resource:
    v: http://fhir.org/guides/cdc/opioid-cds/Library/FHIRHelpers|4.0.1
    link: 4.0
    link: .1
related artifact:
  type:
    v: depends-on
  display:
    v: Library Common
  resource:
    v: http://fhir.org/guides/cdc/opioid-cds/Library/OpioidCDSCommon|2022.1.0
    link: 2022.1
    link: .0
related artifact:
  type:
    v: depends-on
  display:
    v: Library Config
  resource:
    v: http://fhir.org/guides/cdc/opioid-cds/Library/OpioidCDSCommonConfig|2022.1.0
    link: 2022.1
    link: .0
related artifact:
  type:
    v: depends-on
  display:
    v: Library Routines
  resource:
    v: http://fhir.org/guides/cdc/opioid-cds/Library/OpioidCDSRoutines|2022.1.0
    link: 2022.1
    link: .0
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Opioid analgesics with ambulatory misuse potential
  resource:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/opioid-analgesics-with-ambulatory-misuse-potential
    link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/opioid-analgesics-with-ambulatory-misuse-potential
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Community
  resource:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/medicationrequest-category-community
    link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/medicationrequest-category-community
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Benzodiazepine medications
  resource:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/benzodiazepine-medications
    link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/benzodiazepine-medications
related artifact:
  type:
    v: depends-on
  display:
    v: Value set CNS Depressant Medications

type:
  v: depends-on
display:
  v: Value set Encounter Diagnosis Condition Category
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/condition-encounter-diagnosis-category
  link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/condition-encounter-diagnosis-category

type:
  v: depends-on
display:
  v: Value set Problem List Condition Category
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/condition-problem-list-category
  link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/condition-problem-list-category

type:
  v: depends-on
display:
  v: Value set US Core Health Concern Condition Category
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/condition-us-core-health-concern-category
  link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/condition-us-core-health-concern-category

type:
  v: depends-on
display:
  v: Value set Conditions likely terminal for opioid prescribing
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/conditions-likely-terminal-for-opioid-prescribing
  link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/conditions-likely-terminal-for-opioid-prescribing

type:
  v: depends-on
display:
  v: Value set Active Condition
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/condition-clinical-status-active
  link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/condition-clinical-status-active

type:
  v: depends-on
display:
  v: Value set Limited life expectancy conditions
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/limited-life-expectancy-conditions
  link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/limited-life-expectancy-conditions

name:
  v: ContextPrescriptions
use:
  v: in
min:
  v: 0
max:
  v: *
type:
  v: MedicationRequest

name:
  v: Patient
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: Patient

name:
  v: Opioid Analgesic with Ambulatory Misuse Potential Prescriptions
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: MedicationRequest

name:
  v: Benzodiazepine or CNS Depressant Prescriptions
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: MedicationRequest

name:
  v: Patient Is Being Prescribed Opioid Analgesic with Ambulatory Misuse Potential
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: Patient Is Being Prescribed Benzodiazepine or CNS Depressant
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: Inclusion Criteria
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: Exclusion Criteria
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: Is Recommendation Applicable?
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

type:
  v: Patient
profile:
  v: http://hl7.org/fhir/StructureDefinition/Patient
  link: http://hl7.org/fhir/StructureDefinition/Patient

type:
  v: Condition
profile:
  v: http://hl7.org/fhir/StructureDefinition/Condition
  link: http://hl7.org/fhir/StructureDefinition/Condition
must support:
  v: category
code filter:
  path:
    v: category
  value set:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/condition-encounter-diagnosis-category
    link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/condition-encounter-diagnosis-category

type:
  v: Condition
profile:
  v: http://hl7.org/fhir/StructureDefinition/Condition
  link: http://hl7.org/fhir/StructureDefinition/Condition
must support:
  v: category
code filter:
  path:
    v: category
  value set:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/condition-problem-list-category
    link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/condition-problem-list-category

type:
  v: Condition
profile:
  v: http://hl7.org/fhir/StructureDefinition/Condition
  link: http://hl7.org/fhir/StructureDefinition/Condition
must support:
  v: category
code filter:
  path:
    v: category
  value set:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/condition-us-core-health-concern-category
    link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/condition-us-core-health-concern-category

type:
  v: Encounter
profile:
  v: http://hl7.org/fhir/StructureDefinition/Encounter
  link: http://hl7.org/fhir/StructureDefinition/Encounter
must support:
  v: period
must support:
  v: period.start
must support:
  v: status
must support:
  v: status.value

content type:
  v: text/cql

content type:
  v: application/elm+xml

content type:
  v: application/elm+json