Table of Contents


Population Criteria

        • /*Captures encounters of patients with an opioid(s), benzodiazepine, or a combination of these medications at discharge*/
          "Inpatient Encounter with Age Greater than or Equal to 18" InpatientEncounter
            with ( ["Medication, Discharge": "Schedule II and III Opioid Medications"]
              union ["Medication, Discharge": "Schedule IV Benzodiazepines"] ) OpioidOrBenzodiazepineDischargeMedication
              such that OpioidOrBenzodiazepineDischargeMedication.authorDatetime during InpatientEncounter.relevantPeriod
         
        • "Initial Population"
         
        • /*Excludes patients with cancer or who are receiving palliative or hospice care at the time of the encounter*/
          "Inpatient Encounter with Age Greater than or Equal to 18" InpatientEncounter
            where exists ( ["Diagnosis": "All Primary and Secondary Cancer"] Cancer
                where Cancer.prevalencePeriod overlaps InpatientEncounter.relevantPeriod
            )
              or exists ( InpatientEncounter.diagnoses Diagnosis
                  where Diagnosis.code in "All Primary and Secondary Cancer"
              )
              or exists ( ["Intervention, Order": "Palliative or Hospice Care"] PalliativeOrHospiceCareOrder
                  where PalliativeOrHospiceCareOrder.authorDatetime during InpatientEncounter.relevantPeriod
              )
              or exists ( ["Intervention, Performed": "Palliative or Hospice Care"] PalliativeOrHospiceCarePerformed
                  where PalliativeOrHospiceCarePerformed.relevantPeriod overlaps InpatientEncounter.relevantPeriod
              )
         
        • /*Encounters of patients prescribed two or more opioids or an opioid and benzodiazepine at discharge.
          */
          ( "Inpatient Encounter with Age Greater than or Equal to 18" InpatientEncounter
              where ( Count(["Medication, Discharge": "Schedule II and III Opioid Medications"] Opioids
                    where Opioids.authorDatetime during InpatientEncounter.relevantPeriod
                )>= 2
              )
          )
            union ( "Inpatient Encounter with Age Greater than or Equal to 18" InpatientEncounter
                with ["Medication, Discharge": "Schedule II and III Opioid Medications"] OpioidsDischarge
                  such that OpioidsDischarge.authorDatetime during InpatientEncounter.relevantPeriod
                with ["Medication, Discharge": "Schedule IV Benzodiazepines"] BenzodiazepinesDischarge
                  such that BenzodiazepinesDischarge.authorDatetime during InpatientEncounter.relevantPeriod
            )
         
        • None
         
        • None
         
        • None
         
  • Definitions

    Functions

    Terminology

    • code "Birth date" ("LOINC Code (21112-8)")
    • valueset "All Primary and Secondary Cancer" (2.16.840.1.113762.1.4.1111.161)
    • valueset "Encounter Inpatient" (2.16.840.1.113883.3.666.5.307)
    • valueset "Ethnicity" (2.16.840.1.114222.4.11.837)
    • valueset "ONC Administrative Sex" (2.16.840.1.113762.1.4.1)
    • valueset "Palliative or Hospice Care" (2.16.840.1.113883.3.600.1.1579)
    • valueset "Payer" (2.16.840.1.114222.4.11.3591)
    • valueset "Race" (2.16.840.1.114222.4.11.836)
    • valueset "Schedule II and III Opioid Medications" (2.16.840.1.113762.1.4.1111.165)
    • valueset "Schedule IV Benzodiazepines" (2.16.840.1.113762.1.4.1125.1)

    Data Criteria (QDM Data Elements)

    • "Diagnosis: All Primary and Secondary Cancer" using "All Primary and Secondary Cancer (2.16.840.1.113762.1.4.1111.161)"
    • "Encounter, Performed: Encounter Inpatient" using "Encounter Inpatient (2.16.840.1.113883.3.666.5.307)"
    • "Intervention, Order: Palliative or Hospice Care" using "Palliative or Hospice Care (2.16.840.1.113883.3.600.1.1579)"
    • "Intervention, Performed: Palliative or Hospice Care" using "Palliative or Hospice Care (2.16.840.1.113883.3.600.1.1579)"
    • "Medication, Discharge: Schedule II and III Opioid Medications" using "Schedule II and III Opioid Medications (2.16.840.1.113762.1.4.1111.165)"
    • "Medication, Discharge: Schedule IV Benzodiazepines" using "Schedule IV Benzodiazepines (2.16.840.1.113762.1.4.1125.1)"
    • "Patient Characteristic Birthdate: Birth date" using "Birth date (LOINC Code 21112-8)"
    • "Patient Characteristic Ethnicity: Ethnicity" using "Ethnicity (2.16.840.1.114222.4.11.837)"
    • "Patient Characteristic Payer: Payer" using "Payer (2.16.840.1.114222.4.11.3591)"
    • "Patient Characteristic Race: Race" using "Race (2.16.840.1.114222.4.11.836)"
    • "Patient Characteristic Sex: ONC Administrative Sex" using "ONC Administrative Sex (2.16.840.1.113762.1.4.1)"

    Supplemental Data Elements

    Risk Adjustment Variables