OpioidCDSREC01
type: Library
node role: treeRoot
id:
  v: OpioidCDSREC01
text:
  status:
    v: extensions
  div:
    v: Id: OpioidCDSREC01 Url: Library - Recommendation #1 - Nonpharmacologic and Nonopioid Pharmacologic Therapy Consideration Version: 2022.1.0 Name: OpioidCDSREC01 Title: Library - Recommendation #1 - Nonpharmacologic and Nonopioid Pharmacologic Therapy Consideration Status: active Experimental: false Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2026-04-27 16:35:01+0000 Publisher: CDC / Security Risk Solutions, Inc. (SRS) Copyright: Centers for Disease Control and Prevention (CDC) Related Artifacts: Dependencies http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1 FHIR Helpers version: 4.0.1 Library - OpioidCDS Common version: 2022.1.0 Library - OpioidCDS Common Configuration version: 2022.1.0 Library - OpioidCDS Routines version: 2022.1.0 Parameters: Name Type Min Max In/Out ContextPrescriptions MedicationRequest 0 * In Patient Patient 0 1 Out Acute Pain Opioid Analgesic with Ambulatory Misuse Potential Prescriptions MedicationRequest 0 * Out Patient Is Being Prescribed Opioid Analgesic with Ambulatory Misuse Potential boolean 0 1 Out Inclusion Criteria boolean 0 1 Out Exclusion Criteria boolean 0 1 Out Is Recommendation Applicable? boolean 0 1 Out Data Requirements: Type Profile MS Code Filter Patient http://hl7.org/fhir/StructureDefinition/Patient Content: text/cql library OpioidCDSREC01 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 /* ** ** Recommendation #1 ** Nonopioid therapies are at least as effective as opioids for many common types of acute pain. ** Clinicians should maximize use of nonpharmacologic and nonopioid pharmacologic therapies as ** appropriate for the specific condition and patient and only consider opioid therapy for acute ** pain if benefits are anticipated to…
contained: Parameters
  id:
    v: options
  parameter:
    name:
      v: translatorVersion
    value: String
      v: 3.25.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: JSON
  parameter:
    name:
      v: format
    value: String
      v: XML
  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
    l: cqf-cqlOptions
  value: Reference
    l: options
    reference:
      v: #options
url:
  v: http://fhir.org/guides/cdc/opioid-cds/Library/OpioidCDSREC01
  l: OpioidCDSREC01
version:
  v: 2022.1.0
name:
  v: OpioidCDSREC01
title:
  v: Library - Recommendation #1 - Nonpharmacologic and Nonopioid Pharmacologic Therapy Consideration
status:
  v: active
experimental:
  v: false
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
      l: library-type
    code:
      v: logic-library
date:
  v: 2026-04-27T16:35:01+00:00
publisher:
  v: CDC / Security Risk Solutions, Inc. (SRS)
contact:
  telecom:
    system:
      v: url
    value:
      v: https://www.securityrisksolutions.com
copyright:
  v: Centers for Disease Control and Prevention (CDC)
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
related artifact:
  type:
    v: depends-on
  display:
    v: Library Common
  resource:
    v: http://fhir.org/guides/cdc/opioid-cds/Library/OpioidCDSCommon|2022.1.0
    l: http://fhir.org/guides/cdc/opioid-cds/Library/OpioidCDSCommon
related artifact:
  type:
    v: depends-on
  display:
    v: Library Config
  resource:
    v: http://fhir.org/guides/cdc/opioid-cds/Library/OpioidCDSCommonConfig|2022.1.0
    l: http://fhir.org/guides/cdc/opioid-cds/Library/OpioidCDSCommonConfig
related artifact:
  type:
    v: depends-on
  display:
    v: Library Routines
  resource:
    v: http://fhir.org/guides/cdc/opioid-cds/Library/OpioidCDSRoutines|2022.1.0
    l: http://fhir.org/guides/cdc/opioid-cds/Library/OpioidCDSRoutines
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: Acute Pain Opioid Analgesic with Ambulatory Misuse Potential 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: 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
  l: Patient

content type:
  v: text/cql

content type:
  v: application/elm+xml

content type:
  v: application/elm+json