OpioidCDSR4Common
type: Library
node role: treeRoot
id:
  v: OpioidCDSR4Common
text:
  status:
    v: generated
  div: Generated Narrative: Library OpioidCDSR4Common Participants Author Kensaku Kawamoto, MD, PhD, MHS Author Bryn Rhodes Author Floyd Eisenberg, MD, MPH Author Robert McClure, MD, MPH Related Artifacts Documentation CDC guideline for prescribing opioids for chronic pain https://www.cdc.gov/mmwr/volumes/65/rr/rr6501e1.htm?CDC_AA_refVal=https%3A%2F%2Fwww.cdc.gov%2Fmmwr%2Fvolumes%2F65%2Frr%2Frr6501e1er.htm Depends On Library OMTKLogic http://cqframework.org/cpg-example-opioids/Library/OMTKLogic|0.0.0 Depends On Code System SNOMED SNOMED CT (all versions) Depends On Code System Medication Request Category Codes MedicationRequest Category Codes Depends On Value Set Active Condition CPG Active Condition Value Set Depends On Value Set Benzodiazepines http://fhir.org/guides/cdc/opioid-cds/ValueSet/benzodiazepines-medications Depends On Value Set End of Life Conditions http://fhir.org/guides/cdc/opioid-cds/ValueSet/end-of-life-conditions Depends On Value Set Hospice Disposition http://fhir.org/guides/cdc/opioid-cds/ValueSet/hospice-disposition Depends On Value Set Hospice Finding Codes http://fhir.org/guides/cdc/opioid-cds/ValueSet/hospice-finding Depends On Value Set Hospice Procedure Codes http://fhir.org/guides/cdc/opioid-cds/ValueSet/hospice-procedure Depends On Value Set Illicit Drug Screening http://fhir.org/guides/cdc/opioid-cds/ValueSet/illicit-drug-urine-screening Depends On Value Set Limited Life Expectancy Conditions http://fhir.org/guides/cdc/opioid-cds/ValueSet/limited-life-expectancy-conditions Depends On Value Set Long Acting Opioids http://fhir.org/guides/cdc/opioid-cds/ValueSet/long-acting-opioids Depends On Value Set Naloxone http://fhir.org/guides/cdc/opioid-cds/ValueSet/naloxone-medications Depends On Value Set Risk Assessment http://fhir.org/guides/cdc/opioid-cds/ValueSet/opioid-abuse-assessment Depends On Value Set Opioid Drug Screening http://fhir.org/guides/cdc/opioid-cds/ValueSet/opioid-urine-screening Depends On Value Set Ambulatory Abuse Potential Opio…
url:
  v: http://cqframework.org/cpg-example-opioids/Library/OpioidCDSR4Common
version:
  v: 1.0.0
name:
  v: OpioidCDSR4Common
title:
  v: Opioid CDS R4 Common Logic
status:
  v: active
experimental:
  v: true
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
    code:
      v: logic-library
    display:
      v: Logic Library
date:
  v: 2025-03-04T15:46:21+00:00
publisher:
  v: HL7 International - Clinical Decision Support WG
contact:
  name:
    v: HL7 International - Clinical Decision Support WG
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/dss/index.cfm
description:
  v: Common Opioid Decision Support Logic for use in implementing CDC Opioid Prescribing Guidelines.
use context:
  code:
    system:
      v: http://terminology.hl7.org/CodeSystem/usage-context-type
    code:
      v: focus
    display:
      v: Clinical Focus
  value: CodeableConcept
    coding: http://snomed.info/id/182888003
      system:
        v: http://snomed.info/sct
      code:
        v: 182888003
      display:
        v: Medication requested (situation)
use context:
  code:
    system:
      v: http://terminology.hl7.org/CodeSystem/usage-context-type
    code:
      v: focus
    display:
      v: Clinical Focus
  value: CodeableConcept
    coding: http://snomed.info/id/82423001
      system:
        v: http://snomed.info/sct
      code:
        v: 82423001
      display:
        v: Chronic pain (finding)
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
    code:
      v: 001
    display:
      v: World
purpose:
  v: This library contains common logic across recommendations including MME calculations, conversions, and looking up codes in valuesets.
usage:
  v: This library is used for decision support for opioid guideline recommendations when applying PlanDefinitions.
copyright:
  v: CDC 2016+
topic:
  text:
    v: Opioid Prescribing
author:
  name:
    v: Kensaku Kawamoto, MD, PhD, MHS
author:
  name:
    v: Bryn Rhodes
author:
  name:
    v: Floyd Eisenberg, MD, MPH
author:
  name:
    v: Robert McClure, MD, MPH
related artifact:
  type:
    v: documentation
  display:
    v: CDC guideline for prescribing opioids for chronic pain
  url:
    v: https://www.cdc.gov/mmwr/volumes/65/rr/rr6501e1.htm
  document:
    url:
      v: https://www.cdc.gov/mmwr/volumes/65/rr/rr6501e1.htm
related artifact:
  type:
    v: depends-on
  display:
    v: Library OMTKLogic
  resource:
    v: http://cqframework.org/cpg-example-opioids/Library/OMTKLogic|0.0.0
    link: 0.0
    link: .0
related artifact:
  type:
    v: depends-on
  display:
    v: Code System SNOMED
  resource:
    v: http://snomed.info/sct
    link: http://snomed.info/sct
related artifact:
  type:
    v: depends-on
  display:
    v: Code System Medication Request Category Codes
  resource:
    v: http://terminology.hl7.org/CodeSystem/medicationrequest-category
    link: http://terminology.hl7.org/CodeSystem/medicationrequest-category
related artifact:
  type:
    v: depends-on
  display:
    v: Value Set Active Condition
  resource:
    v: http://hl7.org/fhir/uv/cpg/ValueSet/cpg-active-condition-vs
    link: http://hl7.org/fhir/uv/cpg/ValueSet/cpg-active-condition-vs
related artifact:
  type:
    v: depends-on
  display:
    v: Value Set Benzodiazepines
  resource:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/benzodiazepines-medications
    link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/benzodiazepines-medications
related artifact:
  type:
    v: depends-on
  display:
    v: Value Set End of Life Conditions
  resource:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/end-of-life-conditions
    link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/end-of-life-conditions
related artifact:
  type:
    v: depends-on
  display:
    v: Value Set Hospice Disposition
  resource:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/hospice-disposition
    link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/hospice-disposition
related artifact:
  type:
    v: depends-on
  display:
    v: Value Set Hospice Finding Codes
  resource:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/hospice-finding
    link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/hospice-finding
related artifact:
  type:
    v: depends-on
  display:
    v: Value Set Hospice Procedure Codes
  resource:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/hospice-procedure
    link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/hospice-procedure
related artifact:
  type:
    v: depends-on
  display:
    v: Value Set Illicit Drug Screening
  resource:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/illicit-drug-urine-screening
    link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/illicit-drug-urine-screening
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
    link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/limited-life-expectancy-conditions

type:
  v: depends-on
display:
  v: Value Set Long Acting Opioids
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/long-acting-opioids
  link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/long-acting-opioids

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

type:
  v: depends-on
display:
  v: Value Set Risk Assessment
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/opioid-abuse-assessment
  link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/opioid-abuse-assessment

type:
  v: depends-on
display:
  v: Value Set Opioid Drug Screening
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/opioid-urine-screening
  link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/opioid-urine-screening

type:
  v: depends-on
display:
  v: Value Set Ambulatory Abuse Potential Opioids
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/opioids-abused-in-ambulatory-care
  link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/opioids-abused-in-ambulatory-care

type:
  v: depends-on
display:
  v: Value Set Substance Abuse
resource:
  v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/substance-abuse
  link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/substance-abuse

name:
  v: IsForChronicPain
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

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 Ambulatory Naloxone Rx
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: MedicationRequest

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

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

type:
  v: MedicationRequest
code filter:
  path:
    v: medication
  value set:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/opioids-abused-in-ambulatory-care
    link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/opioids-abused-in-ambulatory-care

type:
  v: MedicationRequest

type:
  v: Medication

type:
  v: MedicationRequest
code filter:
  path:
    v: medication
  value set:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/benzodiazepines-medications
    link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/benzodiazepines-medications

type:
  v: MedicationRequest

type:
  v: Medication

type:
  v: MedicationRequest
code filter:
  path:
    v: medication
  value set:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/naloxone-medications
    link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/naloxone-medications

type:
  v: MedicationRequest

type:
  v: Medication

type:
  v: MedicationRequest
code filter:
  path:
    v: medication
  value set:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/opioids-abused-in-ambulatory-care
    link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/opioids-abused-in-ambulatory-care

type:
  v: MedicationRequest

type:
  v: Medication

type:
  v: Condition
code filter:
  path:
    v: code
  value set:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/end-of-life-conditions
    link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/end-of-life-conditions

type:
  v: Condition
code filter:
  path:
    v: code
  value set:
    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

type:
  v: ServiceRequest
code filter:
  path:
    v: code
  code: http://snomed.info/id/306205009
    system:
      v: http://snomed.info/sct
    code:
      v: 306205009

type:
  v: ServiceRequest
code filter:
  path:
    v: code
  value set:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/hospice-procedure
    link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/hospice-procedure

type:
  v: ServiceRequest
code filter:
  path:
    v: code
  value set:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/hospice-procedure
    link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/hospice-procedure

type:
  v: Observation
code filter:
  path:
    v: code
  value set:
    v: http://fhir.org/guides/cdc/opioid-cds/ValueSet/hospice-finding
    link: http://fhir.org/guides/cdc/opioid-cds/ValueSet/hospice-finding

type:
  v: Encounter

content type:
  v: text/cql

content type:
  v: application/elm+xml