OpioidCDSCommon
type: Library
node role: treeRoot
id:
  v: OpioidCDSCommon
text:
  status:
    v: generated
  div:
    v: Id: library-OpioidCDSCommon 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/OMTKLogicMK2020 Data Requirements: type: MedicationRequest type: Medication code filter: path: id type: MedicationRequest type: Medication code filter: path: id type: MedicationRequest type: Medication code filter: path: id type: Medication code filter: path: id type: Medication code filter: path: id type: Condition code filter: path: category valueset: http://hl7.org/fhir/us/core/ValueSet/us-core-condition-category type: Condition code filter: path: category valueset: http://hl7.org/fhir/us/core/ValueSet/us-core-condition-category type: Procedure code filter: path: code valueset: http://fhir.org/guides/cdc/opioid-cds/ValueSet/hospice-procedure type: ServiceRequest code filter: path: code valueset: http://fhir.org/guides/cdc/opioid-cds/ValueSet/hospice-procedure type: Observation code filter: path: code valueset: http://fhir.org/guides/cdc/opioid-cds/ValueSet/hospice-finding type: Encounter type: MedicationRequest code filter: path: medication valueset: http://fhir.org/guides/cdc/opioid-cds/ValueSet/opioid-analgesics-with-ambulatory-misuse-potential Content: type: text/cql library OpioidCDSCommon version '2022.1.0' using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' called FHIRHelpers include OMTKLogicMK2020 version '2022.1.0' called OMTKLogic codesystem "LOINC": 'http://loinc.org' codesystem "SNOMED": 'http://snomed.info/sct' codesystem "Medication Request Category Codes": 'http://terminology.hl7.org/CodeSystem/medicationrequest-category' codesystem "Medication Request Status Codes": 'http://hl7.org/fhir/medication-request-status' codesystem "Condition Clinical Status Codes": 'http://terminology.hl7.org/CodeSystem/condition-clinical' valueset "US Core Condition Category Codes": 'http://hl7.org/fhir/us/core/Valu…
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/OpioidCDSCommon
  l: OpioidCDSCommon
version:
  v: 2022.1.0
name:
  v: OpioidCDSCommon
title:
  v: Library - OpioidCDS Common
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-03-18T16:23:26+11: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 OMTKLogic
  resource:
    v: http://fhir.org/guides/cdc/opioid-cds/Library/OMTKLogicMK2020|2022.1.0
    l: http://fhir.org/guides/cdc/opioid-cds/Library/OMTKLogicMK2020
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: Code system LOINC
  resource:
    v: http://loinc.org
    l: loinc.org
related artifact:
  type:
    v: depends-on
  display:
    v: Code system SNOMED
  resource:
    v: http://snomed.info/sct
    l: sct
related artifact:
  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
    l: limited-life-expectancy-conditions
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Therapies indicating end of life care
  resource:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/therapies-indicating-end-of-life-care
    l: therapies-indicating-end-of-life-care
related artifact:
  type:
    v: depends-on

v: Value set Conditions likely terminal for opioid prescribing

type:
  v: depends-on
display:
  v: Value set CDC malignant cancer conditions
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/cdc-malignant-cancer-conditions
  l: cdc-malignant-cancer-conditions

type:
  v: depends-on
display:
  v: Value set Oncology specialty designations (NUCC)
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/oncology-specialty-designations
  l: oncology-specialty-designations

type:
  v: depends-on
display:
  v: Value set Opioid misuse disorders
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/opioid-misuse-disorders
  l: opioid-misuse-disorders

type:
  v: depends-on
display:
  v: Value set Substance misuse behavioral counseling
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/substance-misuse-behavioral-counseling
  l: substance-misuse-behavioral-counseling

type:
  v: depends-on
display:
  v: Value set Conditions documenting substance misuse
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/conditions-documenting-substance-misuse
  l: conditions-documenting-substance-misuse

type:
  v: depends-on
display:
  v: Value set Office Visit
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/office-visit
  l: office-visit

type:
  v: depends-on
display:
  v: Value set Opioid counseling procedure
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/opioid-counseling-procedure
  l: opioid-counseling-procedure

type:
  v: depends-on
display:
  v: Value set Opioid misuse assessment procedure
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/opioid-misuse-assessment-procedure
  l: opioid-misuse-assessment-procedure

type:
  v: depends-on
display:
  v: Value set Hospice Disposition
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/hospice-disposition
  l: hospice-disposition

type:
  v: depends-on
display:
  v: Value set Hospice Finding Codes
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/hospice-finding
  l: hospice-finding

type:
  v: depends-on
display:
  v: Value set Observation Category Laboratory
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/observation-category-laboratory
  l: observation-category-laboratory

type:
  v: depends-on
display:
  v: Value set Observation Category Procedure
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/observation-category-procedure
  l: observation-category-procedure

type:
  v: depends-on
display:
  v: Value set Pain treatment plan
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/pain-treatment-plan
  l: pain-treatment-plan

type:
  v: depends-on
display:
  v: Value set Pain management procedure
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/pain-management-procedure
  l: pain-management-procedure

type:
  v: depends-on
display:
  v: Value set PDMP review procedure
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/pdmp-review-procedure
  l: pdmp-review-procedure

type:
  v: depends-on
display:
  v: Value set PDMP data reviewed finding
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/pdmp-data-reviewed-finding
  l: pdmp-data-reviewed-finding

type:
  v: depends-on
display:
  v: Value set Conditions Documenting Sleep Disordered Breathing
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/conditions-documenting-sleep-disordered-breathing
  l: conditions-documenting-sleep-disordered-breathing

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
  l: opioid-analgesics-with-ambulatory-misuse-potential

type:
  v: depends-on
display:
  v: Value set Extended release opioid with ambulatory misuse potential
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/extended-release-opioid-with-ambulatory-misuse-potential
  l: extended-release-opioid-with-ambulatory-misuse-potential

type:
  v: depends-on
display:
  v: Value set Buprenorphine Medications
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/buprenorphine-medications
  l: buprenorphine-medications

type:
  v: depends-on
display:
  v: Value set Buprenorphine and methadone medications
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/buprenorphine-and-methadone-medications
  l: buprenorphine-and-methadone-medications

type:
  v: depends-on
display:
  v: Value set Non-synthetic opioid medications
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/non-synthetic-opioid-medications
  l: non-synthetic-opioid-medications

type:
  v: depends-on
display:
  v: Value set Barbiturate Medications
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/barbiturate-medications
  l: barbiturate-medications

type:
  v: depends-on
display:
  v: Value set Benzodiazepine medications
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/benzodiazepine-medications
  l: benzodiazepine-medications

type:
  v: depends-on
display:
  v: Value set Naloxone medications
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/naloxone-medications
  l: naloxone-medications

type:
  v: depends-on
display:
  v: Value set Fentanyl Medications
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/fentanyl-type-medications
  l: fentanyl-type-medications

type:
  v: depends-on
display:
  v: Value set Amphetamine Medications
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/amphetamines-class-medications
  l: amphetamines-class-medications

type:
  v: depends-on
display:
  v: Value set Methadone Medications
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/methadone-medications
  l: methadone-medications

type:
  v: depends-on
display:
  v: Value set Oxycodone Medications
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/oxycodone-medications
  l: oxycodone-medications

type:
  v: depends-on
display:
  v: Value set Synthetic Opioid Medications
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/synthetic-opioid-medications
  l: synthetic-opioid-medications

type:
  v: depends-on
display:
  v: Value set CNS Depressant Medications
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/cns-depressant-medications
  l: cns-depressant-medications

type:
  v: depends-on
display:
  v: Value set All Drug Urine Screening
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
  l: all-urine-drug-screening-tests

type:
  v: depends-on
display:
  v: Value set Non-opioid drug urine screening
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/non-opioid-urine-drug-screening
  l: non-opioid-urine-drug-screening

type:
  v: depends-on
display:
  v: Value set Opiate Urine Tests
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/opiate-specific-urine-drug-screening-tests
  l: opiate-specific-urine-drug-screening-tests

type:
  v: depends-on
display:
  v: Value set General Opiate Urine Tests
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/general-opiate-urine-drug-screening-tests
  l: general-opiate-urine-drug-screening-tests

type:
  v: depends-on
display:
  v: Value set Opioid drug urine screening
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/opioid-urine-drug-screening
  l: opioid-urine-drug-screening

type:
  v: depends-on
display:
  v: Value set Cocaine Urine Tests
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/cocaine-urine-drug-screening-tests
  l: cocaine-urine-drug-screening-tests

type:
  v: depends-on
display:
  v: Value set PCP Urine Tests
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/phencyclidine-urine-drug-screening-tests
  l: phencyclidine-urine-drug-screening-tests

type:
  v: depends-on
display:
  v: Value set Fentanyl Urine Tests
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/fentanyl-type-urine-drug-screening-tests
  l: fentanyl-type-urine-drug-screening-tests

type:
  v: depends-on
display:
  v: Value set Amphetamine Urine Tests
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/amphetamine-urine-drug-screening-tests
  l: amphetamine-urine-drug-screening-tests

type:
  v: depends-on
display:
  v: Value set Cannabinoid Urine Tests
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/cannabinoid-urine-drug-screening-tests
  l: cannabinoid-urine-drug-screening-tests

type:
  v: depends-on
display:
  v: Value set Methadone Urine Tests
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/methadone-urine-drug-screening-tests
  l: methadone-urine-drug-screening-tests

type:
  v: depends-on
display:
  v: Value set Synthetic Opioid Urine Tests
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/synthetic-opioid-urine-drug-screening-tests
  l: synthetic-opioid-urine-drug-screening-tests

type:
  v: depends-on
display:
  v: Value set Barbiturate Urine Tests
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/barbiturate-urine-drug-screening-tests
  l: barbiturate-urine-drug-screening-tests

type:
  v: depends-on
display:
  v: Value set Benzodiazepine Urine Tests
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/benzodiazepine-urine-drug-screening-tests
  l: benzodiazepine-urine-drug-screening-tests

type:
  v: depends-on
display:
  v: Value set Buprenorphine Urine Tests
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/buprenorphine-urine-drug-screening-tests
  l: buprenorphine-urine-drug-screening-tests

type:
  v: depends-on
display:
  v: Value set Heroin Urine Tests
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/heroin-urine-drug-screening-tests
  l: heroin-urine-drug-screening-tests

type:
  v: depends-on
display:
  v: Value set Oxycodone Urine Tests
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/oxycodone-urine-drug-screening-tests
  l: oxycodone-urine-drug-screening-tests

type:
  v: depends-on
display:
  v: Value set Community
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/medicationrequest-category-community
  l: medicationrequest-category-community

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

type:
  v: depends-on
display:
  v: Value set Active MedicationRequest
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/medicationrequest-status-active
  l: medicationrequest-status-active

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
  l: 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
  l: 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
  l: condition-us-core-health-concern-category

type:
  v: depends-on
display:
  v: Value set Sickle Cell Diseases
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/sickle-cell-diseases
  l: sickle-cell-diseases

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

name:
  v: Opioid Other Than Synthetic Ordered In Last 12 Months
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: MedicationRequest

name:
  v: Active Ambulatory Opioid Rx
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: MedicationRequest

name:
  v: Active Ambulatory Benzodiazepine Rx
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: MedicationRequest

name:
  v: Active Medication List
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: MedicationRequest

name:
  v: Active Ambulatory Benzodiazepine or CNS Depressant Rx
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: MedicationRequest

name:
  v: Active Ambulatory Naloxone Rx
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: MedicationRequest

name:
  v: US Core-Categorized Conditions
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Condition

name:
  v: Conditions Indicating End of Life or With Limited Life Expectancy
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Condition

name:
  v: Admitted/Referred/Discharged to Hospice Care
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: End of Life Assessment
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: USCore Encounter Cancer Diagnoses
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Condition

name:
  v: USCore Problem List Cancer Diagnoses
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Condition

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

name:
  v: First Month
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: Period

name:
  v: Second Month
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: Period

name:
  v: Third Month
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: Period

name:
  v: Prescribed Opioids for 21 or more of 30 Days for each of the past 3 Months
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: Positive Sickle Cell Condition
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Condition

name:
  v: Patient 18 or Older?
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: Patient Age Less Than 18
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: Style Header
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: MedicationRequest
profile:
  v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
  l: MedicationRequest
must support:
  v: status
must support:
  v: authoredOn
must support:
  v: medication
must support:
  v: status.value
must support:
  v: category
must support:
  v: medication.reference
must support:
  v: id
must support:
  v: intent
must support:
  v: subject
must support:
  v: recorder
must support:
  v: dosageInstruction
must support:
  v: dispenseRequest
must support:
  v: timing
must support:
  v: timing.event
must support:
  v: timing.repeat
must support:
  v: timing.repeat.bounds
code filter:
  path:
    v: status
  value set:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/medicationrequest-status-active
    l: medicationrequest-status-active

type:
  v: MedicationRequest
profile:
  v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
  l: MedicationRequest
must support:
  v: status
must support:
  v: category
must support:
  v: status.value
must support:
  v: medication
must support:
  v: medication.reference
must support:
  v: id
must support:
  v: intent
must support:
  v: subject
must support:
  v: authoredOn
must support:
  v: recorder
must support:
  v: dosageInstruction
must support:
  v: dispenseRequest
must support:
  v: timing
must support:
  v: timing.event
must support:
  v: timing.repeat
must support:
  v: timing.repeat.bounds
code filter:
  path:
    v: status
  code:
    code:
      v: active

type:
  v: MedicationRequest
profile:
  v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
  l: MedicationRequest
must support:
  v: status
must support:
  v: category
must support:
  v: authoredOn
must support:
  v: medication
must support:
  v: status.value
must support:
  v: medication.reference
must support:
  v: id
must support:
  v: intent
must support:
  v: subject
must support:
  v: recorder
must support:
  v: dosageInstruction
must support:
  v: dispenseRequest
must support:
  v: timing
must support:
  v: timing.event
must support:
  v: timing.repeat
must support:
  v: timing.repeat.bounds
code filter:
  path:
    v: status
  code:
    code:
      v: active

type:
  v: MedicationRequest
profile:
  v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
  l: MedicationRequest
must support:
  v: medication
must support:
  v: status
must support:
  v: status.value
must support:
  v: category
must support:
  v: medication.reference
must support:
  v: id
must support:
  v: intent
must support:
  v: subject
must support:
  v: authoredOn
must support:
  v: recorder
must support:
  v: dosageInstruction
must support:
  v: dispenseRequest
must support:
  v: timing
must support:
  v: timing.event
must support:
  v: timing.repeat
must support:
  v: timing.repeat.bounds
code filter:
  path:
    v: medication
  value set:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/opioid-analgesics-with-ambulatory-misuse-potential
    l: opioid-analgesics-with-ambulatory-misuse-potential

type:
  v: MedicationRequest
profile:
  v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
  l: MedicationRequest
must support:
  v: authoredOn
must support:
  v: medication
must support:
  v: status
must support:
  v: status.value
must support:
  v: category
must support:
  v: medication.reference
must support:
  v: id
must support:
  v: intent
must support:
  v: subject
must support:
  v: recorder
must support:
  v: dosageInstruction
must support:
  v: dispenseRequest
must support:
  v: timing
must support:
  v: timing.event
must support:
  v: timing.repeat
must support:
  v: timing.repeat.bounds

type:
  v: Medication
profile:
  v: http://hl7.org/fhir/StructureDefinition/Medication
  l: Medication
must support:
  v: id
must support:
  v: code

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

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

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

type:
  v: Observation
profile:
  v: http://hl7.org/fhir/StructureDefinition/Observation
  l: Observation
must support:
  v: code
must support:
  v: status
must support:
  v: status.value
code filter:
  path:
    v: code
  value set:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/hospice-finding
    l: hospice-finding

type:
  v: Encounter
profile:
  v: http://hl7.org/fhir/StructureDefinition/Encounter
  l: Encounter
must support:
  v: period
must support:
  v: period.start
must support:
  v: hospitalization
must support:
  v: hospitalization.dischargeDisposition
must support:
  v: hospitalization.dischargeDisposition.coding
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