OpioidCDSREC07
type: Library
node role: treeRoot
id:
  v: OpioidCDSREC07
text:
  status:
    v: extensions
  div:
    v: Id: OpioidCDSREC07 Url: Library - Recommendation #7 - Opioid Therapy Risk Assessment Version: 2022.1.0 Name: OpioidCDSREC07 Title: Library - Recommendation #7 - Opioid Therapy Risk Assessment Status: active Experimental: true Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2025-12-31 04:14:52+0000 Publisher: Centers for Disease Control and Prevention (CDC) Related Artifacts: Dependencies http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1 FHIR Helpersversion: null4.0.1) Library - OpioidCDS Commonversion: null2022.1.0) Library - OpioidCDS Common Configurationversion: null2022.1.0) Library - OpioidCDS Routinesversion: null2022.1.0) Parameters: Name Type Min Max In/Out ContextPrescriptions MedicationRequest 0 * In Patient Patient 0 1 Out Risk Assessment Interval Period 0 1 Out Previous 10 Days Interval Period 0 1 Out Encounter Interval Period 0 1 Out Chronic 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 Opioid Risk Assessment in Past 90 Days Procedure 0 * Out Prescribed Opioids for 7 of Past 10 Days with an Encounter 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 Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter: path: code value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/opioid-misuse-assessment-procedure Encounter http://hl7.org/fhir/StructureDefinition/Encounter ;; code filter: path: type value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/office-visit Content: text/cql library OpioidCDSREC07 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 i…
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
extension:
  url:
    v: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem
    l: crmi-softwaresystem
  value: Reference
    l: cqf-tooling
    reference:
      v: Device/cqf-tooling
url:
  v: http://fhir.org/guides/cdc/opioid-cds/Library/OpioidCDSREC07
  l: OpioidCDSREC07
version:
  v: 2022.1.0
name:
  v: OpioidCDSREC07
title:
  v: Library - Recommendation #7 - Opioid Therapy Risk Assessment
status:
  v: active
experimental:
  v: true
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
      l: library-type
    code:
      v: logic-library
date:
  v: 2025-12-31T04:14:52+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
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: Risk Assessment Interval
  use:
    v: out
  min:
    v: 0

v: 1

v: Period

name:
  v: Previous 10 Days Interval
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: Period

name:
  v: Encounter Interval
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: Period

name:
  v: Chronic 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: Opioid Risk Assessment in Past 90 Days
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Procedure

name:
  v: Prescribed Opioids for 7 of Past 10 Days with an Encounter
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

type:
  v: Procedure
profile:
  v: http://hl7.org/fhir/StructureDefinition/Procedure
  l: Procedure
must support:
  v: code
must support:
  v: performed
code filter:
  path:
    v: code
  value set:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/opioid-misuse-assessment-procedure
    l: opioid-misuse-assessment-procedure

type:
  v: Encounter
profile:
  v: http://hl7.org/fhir/StructureDefinition/Encounter
  l: Encounter
must support:
  v: type
must support:
  v: period
code filter:
  path:
    v: type
  value set:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/office-visit
    l: office-visit

content type:
  v: text/cql

content type:
  v: application/elm+xml

content type:
  v: application/elm+json