OpioidCDSREC10Common
type: Library
node role: treeRoot
id:
  v: OpioidCDSREC10Common
text:
  status:
    v: extensions
  div:
    v: Id: OpioidCDSREC10Common Url: OpioidCDSREC10Common Version: 2022.1.0 Name: OpioidCDSREC10Common Status: draft Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2025-12-13 18:04: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 FHIR Helpersversion: null4.0.1) Library - OpioidCDS Commonversion: null2022.1.0) Library - OpioidCDS Routinesversion: null2022.1.0) Library - OpioidCDS Common Configurationversion: null2022.1.0) Parameters: Name Type Min Max In/Out Patient Patient 0 1 Out UDS Lookback Period Period 0 1 Out Rx Lookback Period Period 0 1 Out Amphetamine Simple Identifier string 0 1 Out Barbiturate Simple Identifier string 0 1 Out Benzodiazepine Simple Identifier string 0 1 Out Buprenorphine Simple Identifier string 0 1 Out Cannabinoid Simple Identifier string 0 1 Out Cocaine Simple Identifier string 0 1 Out Fentanyl Simple Identifier string 0 1 Out Heroin Simple Identifier string 0 1 Out Methadone Simple Identifier string 0 1 Out Opiate Simple Identifier string 0 1 Out Oxycodone Simple Identifier string 0 1 Out PCP Simple Identifier string 0 1 Out All Opioid or Non-opioid UDS in Alternative Lookback Period Observation 0 * Out All Opioid or Non-opioid UDS in Lookback Period Observation 0 * Out Inclusion Criteria For UDS Recommendation boolean 0 1 Out Amphetamine Screenings In Lookback Period Observation 0 * Out Positive Amphetamine Screenings In Lookback Period Resource 0 * Out Negative Amphetamine Screenings In Lookback Period Resource 0 * Out Normalize Rx In Lookback Period MedicationRequest 0 * Out Amphetamine Rx In Lookback Period MedicationRequest 0 * Out Barbiturate Screenings In Lookback Period Observation 0 * Out Positive Barbiturate Screenings In Lookback Period Resource 0 * Out Negative Barbiturate Screenings In Lookback Period Resource 0 * Out Barbiturate Rx In Lookback Period MedicationRequest 0 * Ou…
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/OpioidCDSREC10Common
  l: OpioidCDSREC10Common
version:
  v: 2022.1.0
name:
  v: OpioidCDSREC10Common
status:
  v: draft
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
      l: library-type
    code:
      v: logic-library
date:
  v: 2025-12-13T18:04: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
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 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
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
parameter:
  name:
    v: Patient
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: Patient
parameter:
  name:
    v: UDS Lookback Period
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: Period
parameter:
  name:
    v: Rx Lookback Period
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: Period
parameter:
  name:
    v: Amphetamine Simple Identifier
  use:
    v: out
  min:
    v: 0

v: 1

v: string

name:
  v: Barbiturate Simple Identifier
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

name:
  v: Benzodiazepine Simple Identifier
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

name:
  v: Buprenorphine Simple Identifier
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

name:
  v: Cannabinoid Simple Identifier
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

name:
  v: Cocaine Simple Identifier
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

name:
  v: Fentanyl Simple Identifier
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

name:
  v: Heroin Simple Identifier
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

name:
  v: Methadone Simple Identifier
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

name:
  v: Opiate Simple Identifier
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

name:
  v: Oxycodone Simple Identifier
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

name:
  v: PCP Simple Identifier
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

name:
  v: All Opioid or Non-opioid UDS in Alternative Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Observation

name:
  v: All Opioid or Non-opioid UDS in Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Observation

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

name:
  v: Amphetamine Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Observation

name:
  v: Positive Amphetamine Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: Negative Amphetamine Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: Normalize Rx In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: MedicationRequest

name:
  v: Amphetamine Rx In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: MedicationRequest

name:
  v: Barbiturate Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Observation

name:
  v: Positive Barbiturate Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: Negative Barbiturate Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: Barbiturate Rx In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: MedicationRequest

name:
  v: Benzodiazepine Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Observation

name:
  v: Positive Benzodiazepine Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: Negative Benzodiazepine Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: Benzodiazepine Rx In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: MedicationRequest

name:
  v: Buprenorphine Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Observation

name:
  v: Positive Buprenorphine Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: Negative Buprenorphine Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: Buprenorphine Rx In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: MedicationRequest

name:
  v: Cannabinoid Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Observation

name:
  v: Positive Cannabinoid Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: Negative Cannabinoid Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: Cocaine Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Observation

name:
  v: Positive Cocaine Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: Negative Cocaine Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: Fentanyl Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Observation

name:
  v: Positive Fentanyl Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: Negative Fentanyl Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: Fentanyl Rx In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: MedicationRequest

name:
  v: Heroin Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Observation

name:
  v: Positive Heroin Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: Negative Heroin Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: Methadone Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Observation

name:
  v: Positive Methadone Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: Negative Methadone Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: Methadone Rx In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: MedicationRequest

name:
  v: Opiate Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Observation

name:
  v: Positive Opiate Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: Negative Opiate Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: Opiate Rx In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: MedicationRequest

name:
  v: Oxycodone Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Observation

name:
  v: Positive Oxycodone Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: Negative Oxycodone Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: Oxycodone Rx In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: MedicationRequest

name:
  v: PCP Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Observation

name:
  v: Positive PCP Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: Negative PCP Screenings In Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: Unexpected Details
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: Remove Substances Without Positive or Negative Results
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: Inclusion Criteria For Unexpected Results
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: All Lab Dates in Lookback Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: date

name:
  v: Unexpected Div Start
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

name:
  v: Table Start
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

name:
  v: Table Headers
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: string

name:
  v: Generate Table Rows
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: string

name:
  v: Generate Footer Rows
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: string

name:
  v: Table End
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

name:
  v: Details Table
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

name:
  v: Expected Result Footnote
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

name:
  v: Details More Info
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

name:
  v: Div End
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

name:
  v: Get HTML Details
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

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

type:
  v: Observation
profile:
  v: http://hl7.org/fhir/StructureDefinition/Observation
  l: Observation
must support:
  v: code
must support:
  v: effective
must support:
  v: status
must support:
  v: value
must support:
  v: code.coding
code filter:
  path:
    v: code
  value set:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
    l: all-urine-drug-screening-tests

type:
  v: MedicationRequest
profile:
  v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
  l: MedicationRequest
must support:
  v: category
must support:
  v: status
must support:
  v: intent
must support:
  v: medication
must support:
  v: medication.text
must support:
  v: medication.coding
code filter:
  path:
    v: category
  value set:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/medicationrequest-category-community
    l: medicationrequest-category-community

content type:
  v: text/cql

content type:
  v: application/elm+xml

content type:
  v: application/elm+json