Metadata
Title Median Time to Pain Medication for Patients with a Diagnosis of Sickle Cell Disease (SCD) with Vaso-Occlusive Episode (VOE)
Version 0.1.000
Short Name CMS1272
GUID (Version Independent) urn:uuid:45b1d115-75a2-4cc7-b44f-65b7e7193a59
GUID (Version Specific) urn:uuid:f860d181-2abc-4250-bdfc-12e7ba999f53
Effective Period 2026-01-01 through 2027-12-31
Use Context Venue = EH
Steward (Publisher) American Society of Hematology
Developer Health Services Advisory Group
Description

Median time (in minutes) from Emergency Department (ED) arrival to initial administration of pain medication for all patients, regardless of age, with a principal encounter diagnosis of sickle cell disease (SCD) with vaso-occlusive episode (VOE)

Copyright

This measure is Copyright (c) 2025 American Society of Hematology. All Rights Reserved.

LOINC (R) copyright 2004-2024, Regenstrief Institute, Inc. SNOMED Clinical Terms (R) (SNOMED CT [R]) copyright 2004-2024, The International Health Terminology Standards Development Organisation (IHTSDO). ICD-10 is copyright 2024 World Health Organization. All Rights Reserved.

The copyrights in the Current Procedural Terminology (“CPT”) codes are owned by the American Medical Association (“AMA”). Copyright 2024 American Medical Association. All rights are reserved by the AMA. You cannot, without express written permission from the AMA, copy, modify, distribute, display, or use CPT for any commercial purpose, including for productive use in a clinical setting. Any such use requires a separate license from the AMA.

(R) or [R] represents Registered Trademark, and (c) represents Copyright.

Disclaimer

This measure, including specifications (“Measure”), is not a clinical guideline, does not establish a standard of medical care, and has not been tested for all potential applications. The Measure is not intended to diagnose or treat disease or other conditions. The Measure is not a medical device and has not been evaluated by the Food and Drug Administration. Information provided through the Measure is not intended to direct or substitute for the independent assessment or judgment of a qualified healthcare professional. The American Society of Hematology (“ASH”) assumes no liability for use of the Measure, or data contained or not contained in the Measure.

ASH consents to the use, reproduction, and distribution of the Measure for non-commercial purposes only (e.g., for consideration by health care providers in a professional setting). You cannot, without the express written consent of ASH, use the Measure for any commercial purpose. Unauthorized commercial use of the Measure is expressly prohibited. Commercial use includes the sale, license, or distribution of the Measure for commercial gain, or incorporation of the Measure into a product or service that is sold, licensed, or distributed for commercial gain. These requirements apply to both you as an individual and to the corporate entity that you represent as an employee or agent, to the extent applicable.

To request permission to make a commercial use of the Measure, please email: quality@hematology.org. Any commercial use of the Measure requires a separate license from ASH.

Any use, publication, or other dissemination of this Measure shall include the following attribution:

“This [publication, etc.] was prepared using clinical quality measures developed by the American Society of Hematology. The content reflects the views of [name of author(s)].”

You agree that you shall not remove, obscure, or alter any proprietary rights notices (including copyright and trademark notices) which may be affixed to or contained within the Measure.

Information contained in the Measure may include information protected by intellectual property rights of third parties which are not owned by ASH. ASH disclaims all liability for the use or accuracy of any such information. Users of the proprietary code sets should obtain all necessary licenses from the owners of these code sets.

USE OF THE MEASURE (INCLUDING ANY CPT CODES) IS AT YOUR SOLE RISK. THE MEASURE IS PROVIDED “AS IS” WITHOUT EXPRESS OR IMPLIED WARRANTIES OF ANY KIND, INCLUDING IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NONINFRINGEMENT. ASH EXPRESSLY DISCLAIMS ANY AND ALL RESPONSIBILITY OR LIABILITY FOR DAMAGES OF ANY KIND ARISING OUT OF USE, REFERENCE TO, OR RELIANCE ON THE MEASURE.

Rationale

Sickle Cell Disease (SCD) is the most common inherited blood disorder and is estimated to affect approximately 100,000 individuals in the United States (Hassell, 2010). SCD is also most prominent among Black or African American patients—affecting 1 out of 365 Black or African American births (Hassell, 2010)—and the average life expectancy of publicly insured individuals with SCD is reported to be approximately 52.6 years of age (Jiao et al., 2023). Based on a 2022 systematic review, total annual costs (medical and non-medical) were estimated to range from $14,012 to $80,842 per patient per year (Baldwin et al., 2022).

Evidence suggests that up to 60% of patients with SCD surveyed reported avoiding care in the ED (Crego et al., 2021). When they do seek emergency care due to an acute severe pain crisis, studies have shown patients wait an average of 90 minutes before analgesics are given (Tanabe, 2007; Lin, Strouse, Whiteman, Anders, & Stewart, 2016), and in another study across seven EDs found that half of all pediatric visits had a time to first opioid over one hour (Brousseau et al., 2020). Updated data from the National Hospital Ambulatory Medical Care Survey (NHAMCS) show that from 1999 to 2020, of the 222,612 estimated yearly average number of ED visits by patients with a diagnosis of SCD, three-fourths were due to a complaint of pain (Attell et al., 2024). Compared with prior estimates (1999-2007), the overall volume of ED visits has increased by nearly 13% (Attell et al., 2024). Individuals with SCD face health inequities stemming from socioeconomic factors, including disease stigma, racial prejudice, and lack of access to specialized care (Haywood et al., 2014; Pokhrel, Olayemi, Ogbonda, Nair, & Wang, 2023; Telfair, Haque, Etienne, Tang, & Strasser, 2003; Wahab et al., 2024). These inequities were demonstrated in a study of adult patients with acute pain from SCD and renal colic in an ED. This study showed that despite higher arrival pain scores and triage acuity levels in patients with SCD, SCD patients experienced longer time to initial analgesia when compared with renal colic patients (Lazio et al., 2010).

To promote rapid, effective, and safe analgesic management and resolution of VOE, the 2014 National Heart, Lung, and Blood Institute (NHLBI) Evidence-Based Management of Sickle Cell Disease Expert Panel Report recommends the use of an individualized prescribing and monitoring protocol or an SCD-specific protocol whenever possible (National Institutes of Health [NIH] & NHLBI, 2014). Individualized care plans, developed by the patient’s SCD clinician, are based on the patient’s home opioid consumption and effective dosing from previous ED visits. The plan is made available to ED clinicians via the electronic health record and provides direction on pain management. Individualized prescribing and monitoring protocols in patients with SCD have demonstrated decreased time to first opioid, shorter ED and hospital length of stay, and more rapid reduction in pain scores, when compared with weight-based dosing (Della-Moretta et al., 2020; Tanabe et al., 2023a; Tanabe et al., 2023b; Welch-Coltrane et al., 2021).

The implementation of this eCQM targeting timing to administration of pain medication for adult and pediatric patients with SCD presenting to the ED may significantly improve pain management and other outcomes, including admission rates (Wachnik et al., 2022), hospital length of stay (Wachnik et al., 2022; Brandow et al., 2016; King, Albright, & Murry, 2023), length of ED stay (Lin et al., 2016; King et al., 2023; Mathias & McCavit, 2015), and patient satisfaction (Kim, Brathwaite, & Kim, 2017).

Clinical Recommendation Statement

This measure is supported by two evidence-based clinical practice guidelines. The clinical recommendation statements from the supporting guidelines are noted below and specifically recommend the rapid initiation of analgesic medications for patients presenting to the ED with acute pain associated with a diagnosis of SCD with VOE, which demonstrates a direct relationship to this measure:

  1. The American Society of Hematology 2020 guidelines for sickle cell disease: management of acute and chronic pain (Brandow et al., 2020) Statement: Recommendation 1A - For adults and children with SCD presenting to an acute care setting with acute pain related to SCD, the ASH guideline panel recommends rapid (within 1 hour of emergency department [ED] arrival) assessment and administration of analgesia with frequent reassessments (every 30-60 minutes) to optimize pain control (strong recommendation based on low certainty in the evidence about effects).

  2. The 2014 National Heart, Lung, and Blood Institute (NHLBI): Evidence-Based Management of Sickle Cell Disease Expert Panel Report (NIH & NHLBI, 2014) Statement: In adults and children with SCD and a vaso-occlusive crisis (VOC):

    a) Rapidly initiate treatment with parenteral opioids associated with severe pain (Strong Recommendation, High-Quality Evidence) OR

    b) Rapidly initiate analgesic therapy within 30 minutes of triage or within 60 minutes of registration. (Consensus–Panel Expertise – Expert Opinion).

Citation

Attell, B. K., Barrett, P. M., Pace, B. S., McLemore, M. L., McGee, B. T., Oshe, R., . . . Snyder, A. B. (2024). Characteristics of emergency department visits made by individuals with sickle cell disease in the U.S., 1999-2020. AJPM Focus, 3(1), 100158. doi:10.1016/j.focus.2023.100158

Citation

Baldwin, Z., Jiao, B., Basu, A., Roth, J., Bender, M. A., Elsisi, Z., . . . Devine, B. (2022). Medical and non-medical costs of sickle cell disease and treatments from a US perspective: A systematic review and landscape analysis. PharmacoEconomics Open, 6(4), 469-481. doi:10.1007/s41669-022-00330-w

Citation

Brandow, A. M., Carroll, C. P., Creary, S., Edwards-Elliott, R., Glassberg, J., Hurley, R. W., . . . Lang, E. (2020). American Society of Hematology 2020 guidelines for sickle cell disease: management of acute and chronic pain. Blood Advances, 4(12), 2656-2701. doi:10.1182/bloodadvances.2020001851

Citation

Brandow, A. M., Nimmer, M., Simmons, T., Charles Casper, T., Cook, L. J., Chumpitazi, C. E., . . . Brousseau, D. C. (2016). Impact of emergency department care on outcomes of acute pain events in children with sickle cell disease. American Journal of Hematology, 91(12), 1175-1180. doi:10.1002/ajh.24534

Citation

Brousseau, D. C., Alpern, E. R., Chamberlain, J. M., Ellison, A. M., Bajaj, L., Cohen, D. M., . . . Pediatric Emergency Care Applied Research Network. (2020). A multiyear cross-sectional study of guideline adherence for the timeliness of opioid administration in children with sickle cell pain crisis. Annals of Emergency Medicine, 76(3S), S6-S11. doi:10.1016/j.annemergmed.2020.08.006

Citation

Crego, N., Masese, R., Bonnabeau, E., Douglas, C., Rains, G., Shah, N., & Tanabe, P. (2021). Patient perspectives of sickle cell management in the emergency department. Critical Care Nursing Quarterly, 44(2), 160-174. doi:10.1097/CNQ.0000000000000350

Citation

Della-Moretta, S., Delatore, L., Purcell, M., Huang, Y., Heinlein, M., Adkins, E., & Desai, P. (2020). The effect of use of individualized pain plans in sickle cell patients presenting to the emergency department. Annals of Emergency Medicine, 76(3S), S21-S27. doi:10.1016/j.annemergmed.2020.08.008

Citation

Hassell, K. L. (2010). Population estimates of sickle cell disease in the U.S. American Journal of Preventive Medicine, 38, S512–S521. doi:10.1016/j.amepre.2009.12.022

Citation

Haywood, C., Jr., Diener-West, M., Strouse, J., Carroll, C. P., Bediako, S., Lanzkron, S., . . . IMPORT Investigators. (2014). Perceived discrimination in health care is associated with a greater burden of pain in sickle cell disease. Journal of Pain and Symptom Management, 48(5), 934-943. doi:10.1016/j.jpainsymman.2014.02.002

Citation

Jiao, B., Johnson, K. M., Ramsey, S. D., Bender, M. A., Devine, B., & Basu, A. (2023). Long-term survival with sickle cell disease: a nationwide cohort study of Medicare and Medicaid beneficiaries. Blood Advances, 7(13), 3276-3283. doi:10.1182/bloodadvances.2022009202

Citation

Kim, S., Brathwaite, R., & Kim, O. (2017). Evidence-based practice standard care for acute pain management in adults with sickle cell disease in an urgent care center. Quality Management in Health Care, 26(2), 108-115. doi:10.1097/QMH.0000000000000135

Citation

King, H., Albright, A., & Murry, M. (2023). Delayed management of sickle cell disease vaso-occlusive episodes and the impact on prolonged hospitalizations at a single academic center. Blood, 142(Supplement 1), 7201. doi:10.1182/blood-2023-190385

Citation

Lazio, M. P., Costello, H. H., Courtney, D. M., Martinovich, Z., Myers, R., Zosel, A., & Tanabe, P. (2010). A comparison of analgesic management for emergency department patients with sickle cell disease and renal colic. The Clinical Journal of Pain, 26(3), 199-205. doi:10.1097/AJP.0b013e3181bed10c

Citation

Lin, S. M., Strouse, J. J., Whiteman, L. N., Anders, J., & Stewart, R. W. (2016). Improving quality of care for sickle cell patients in the pediatric emergency department. Pediatric Emergency Care, 32(1), 14-16. doi:10.1097/PEC.0000000000000369

Citation

Mathias, M. D., & McCavit, T. L. (2015). Timing of opioid administration as a quality indicator for pain crises in sickle cell disease. Pediatrics, 135(3), 475-482. doi:10.1542/peds.2014-2874

Citation

National Institutes of Health, & National Heart, Lung, and Blood Institute. (2014). Evidence-based Management of Sickle Cell Disease Expert Panel Report. Bethesda, MD. Retrieved from https://www.nhlbi.nih.gov/health-topics/evidence-based-management-sickle-cell-disease

Citation

Pokhrel, A., Olayemi, A., Ogbonda, S., Nair, K., & Wang, J. C. (2023). Racial and ethnic differences in sickle cell disease within the United States: From demographics to outcomes. European Journal Haematology, 110(5), 554-563. doi:10.1111/ejh.13936

Citation

Tanabe, P., Bosworth, H. B., Crawford, R. D., Glassberg, J., Miller, C. N., Paice, J. A., & Silva, S. (2023). Time to pain relief: A randomized controlled trial in the emergency department during vaso-occlusive episodes in sickle cell disease. European Journal of Haematology, 110(5), 518–526. doi:10.1111/ejh.13924

Citation

Tanabe, P., Ibemere, S., Pierce, A. E., Freiermuth, C. E., Bosworth, H. B., Yang, H., . . . Barnhart, H. X. (2023). A comparison of the effect of patient-specific versus weight-based protocols to treat vaso-occlusive episodes in the emergency department. Academic Emergency Medicine, 30(12), 1210-1222. doi:10.1111/acem.14805

Citation

Tanabe, P., Myers, R., Zosel, A., Brice, J., Ansari, A. H., Evans, J., . . . Paice, J. A. (2007). Emergency department management of acute pain episodes in sickle cell disease. Academic Emergency Medicine, 14(5), 419-425. doi:10.1197/j.aem.2006.11.033

Citation

Telfair, J., Haque, A., Etienne, M., Tang, S., & Strasser, S. (2003). Rural/urban differences in access to and utilization of services among people in Alabama with sickle cell disease. Public Health Reports, 118(1), 27-36. doi:10.1093/phr/118.1.27

Citation

Wachnik, A. A., Welch-Coltrane, J. L., Adams, M. C. B., Blumstein, H. A., Pariyadath, M., Robinson, S. G., . . . Hurley, R. W. (2022). A standardized emergency department order set decreases admission rates and in-patient length of stay for adults patients with sickle cell disease. Pain Medicine, 23(12), 2050-2060. doi:10.1093/pm/pnac096

Citation

Wahab, S., Kelly, K., Klingler, M., Pirovic, A., Futch, K., Rennie, C., . . . Costin, J. M. (2024). Impact of race, socioeconomic status, and geography on healthcare outcomes for children with sickle cell disease in the United States: A scoping review. Cureus: Journal of Medical Science, 16(3), e56089. doi:10.7759/cureus.56089

Citation

Welch-Coltrane, J. L., Wachnik, A. A., Adams, M. C. B., Avants, C. R., Blumstein, H. A., Brooks, A. K., . . . Hurley, R. W. (2021). Implementation of individualized pain care plans decreases length of stay and hospital admission rates for high utilizing adults with sickle cell disease. Pain Medicine (Malden, Mass.), 22(8), 1743–1752. doi:10.1093/pm/pnab092

Guidance (Usage)

This eCQM is an episode-based measure. An episode is defined as a qualifying encounter is defined as an emergency department (ED) visit for a patient, regardless of age, for which the discharge time occurred during the two-year measurement period and the following criteria are met:

  • The ED visit requires a principal diagnosis of SCD with VOE, and

  • The ED visit requires at least one qualifying pain medication administered during the ED encounter.

The measure uses a two-year measurement period from January 1, XXXX through December 31, XXXX.

This version of the eCQM uses QI-CORE version 6.0. Please refer to the eCQI resource center (https://ecqi.healthit.gov/qdm) for more information on the QI-CORE.

Measure Group (Rate) (ID: Group_1)
Basis Encounter
Scoring Continuous Variable
Scoring Unit min
Improvement Notation Decreased score indicates improvement
Type Process
Rate Aggregation

Median

Initial Population ID: InitialPopulation_1
Description:

ED encounters with a discharge time during the two-year measurement period for all patients, regardless of age, who have a principal encounter diagnosis of SCD with VOE and who have at least one qualifying pain medication administered during the ED encounter

Criteria: Initial Population
Measure Population ID: MeasurePopulation_1
Description:

Equals Initial Population

Criteria: Measure Population
Measure Observation ID: MeasureObservation_1
Description:

Median time (in minutes) from ED arrival to initial administration of pain medication

Criteria: Measure Observation
Input Population: MeasurePopulation_1 AggregateMethod: median
Stratifier ID: Stratification_1_1
Description:

Stratification 1: Pain medication administered via parenteral route

Stratifier ID: Stratification_1_2
Description:

Stratification 2: Pain medication administered via non-parenteral route

Supplemental Data Guidance Guidance

For every patient evaluated by this measure also identify payer, race, ethnicity and sex

Supplemental Data Elements
Supplemental Data Element ID: sde-ethnicity
Usage Code: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data]
Description: SDE Ethnicity
Logic Definition: SDE Ethnicity
Supplemental Data Element ID: sde-payer
Usage Code: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data]
Description: SDE Payer
Logic Definition: SDE Payer
Supplemental Data Element ID: sde-race
Usage Code: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data]
Description: SDE Race
Logic Definition: SDE Race
Supplemental Data Element ID: sde-sex
Usage Code: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data]
Description: SDE Sex
Logic Definition: SDE Sex
Measure Logic
Primary Library https://madie.cms.gov/Library/CMS1272FHIRTimetoPainMedSCDVOE
Contents Population Criteria
Logic Definitions
Terminology
Dependencies
Data Requirements
Parameters
Population Criteria
Measure Group (Rate) (ID: Group_1)
Initial Population
define "Initial Population":
  "ED Encounter For SCD With VOE With Pain Medication Administered"
Definition
Measure Population
define "Measure Population":
  "Initial Population"
Definition
Measure Observation
define function "Measure Observation"(SCDwVOEEncounterWithPainMed Encounter):
  difference in minutes between start of SCDwVOEEncounterWithPainMed.period and start of SCDwVOEEncounterWithPainMed.firstPainMedicationAdministration ( ).effective
Definition
Stratifier
define "Stratification 1":
  "ED Encounters Where First Pain Medication Was Administered Via Parenteral Route"
Definition
Stratifier
define "Stratification 2":
  "ED Encounters Where First Pain Medication Was Administered Via Non-Parenteral Route"
Definition
Logic Definitions
Logic Definition Library Name: SupplementalDataElements
define "SDE Sex":
  case
    when Patient.sex = '248153007' then "Male (finding)"
    when Patient.sex = '248152002' then "Female (finding)"
    else null
  end
Logic Definition Library Name: SupplementalDataElements
define "SDE Payer":
  [Coverage: type in "Payer Type"] Payer
    return {
      code: Payer.type,
      period: Payer.period
    }
Logic Definition Library Name: SupplementalDataElements
define "SDE Ethnicity":
  Patient.ethnicity E
    return Tuple {
      codes: { E.ombCategory } union E.detailed,
      display: E.text
    }
Logic Definition Library Name: SupplementalDataElements
define "SDE Race":
  Patient.race R
    return Tuple {
      codes: R.ombCategory union R.detailed,
      display: R.text
    }
Logic Definition Library Name: FHIRHelpers
define function ToString(value uri): value.value
Logic Definition Library Name: FHIRHelpers
/*
@description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)
value to a CQL DateTime Interval
@comment: If the start value of the given period is unspecified, the starting
boundary of the resulting interval will be open (meaning the start of the interval
is unknown, as opposed to interpreted as the beginning of time).
*/
define function ToInterval(period FHIR.Period):
    if period is null then
        null
    else
        if period."start" is null then
            Interval(period."start".value, period."end".value]
        else
            Interval[period."start".value, period."end".value]
Logic Definition Library Name: FHIRHelpers
/*
@description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.
*/
define function ToConcept(concept FHIR.CodeableConcept):
    if concept is null then
        null
    else
        System.Concept {
            codes: concept.coding C return ToCode(C),
            display: concept.text.value
        }
Logic Definition Library Name: FHIRHelpers
/*
@description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.
*/
define function ToCode(coding FHIR.Coding):
    if coding is null then
        null
    else
        System.Code {
          code: coding.code.value,
          system: coding.system.value,
          version: coding.version.value,
          display: coding.display.value
        }
Logic Definition Library Name: CQMCommon
/*
 @description: Returns the condition that is specified as the principal diagnosis for the encounter and has a code in the given valueSet.
 @comment: See the QICore 6 Authoring Patterns discussion on [Principal Diagnosis and Present on Admission](https://github.com/cqframework/CQL-Formatting-and-Usage-Wiki/wiki/Authoring-Patterns-QICore-v6.0.0#conditions-present-on-admission-and-principal-diagnoses) for more information
 */
 define fluent function hasPrincipalDiagnosisOf(encounter Encounter, valueSet ValueSet):
   (encounter.principalDiagnosis()) PD
     return PD.diagnosis in valueSet
       or PD.diagnosis.getCondition().code in valueSet
Logic Definition Library Name: CQMCommon
/*
@description: Returns the claim diagnosis element that is specified as the principal diagnosis for the encounter
 @comment: See the QICore 6 Authoring Patterns discussion on [Principal Diagnosis and Present on Admission](https://github.com/cqframework/CQL-Formatting-and-Usage-Wiki/wiki/Authoring-Patterns-QICore-v6.0.0#conditions-present-on-admission-and-principal-diagnoses) for more information
*/
define fluent function principalDiagnosis(encounter Encounter):
singleton from (
     (encounter.claimDiagnosis()) CD
       where CD.type.includesCode("Principal Diagnosis")
   )
Logic Definition Library Name: CQMCommon
/*
@description: Returns the claim diagnosis elements for the given encounter
@comment: See the QICore 6 Authoring Patterns discussion on [Principal Diagnosis and Present on Admission](https://github.com/cqframework/CQL-Formatting-and-Usage-Wiki/wiki/Authoring-Patterns-QICore-v6.0.0#conditions-present-on-admission-and-principal-diagnoses) for more information
*/
define fluent function claimDiagnosis(encounter Encounter):
  encounter E
    let 
      claim: ([Claim] C where C.status = 'active' and C.use = 'claim' and exists (C.item I where I.encounter.references(E))),
      claimItem: (claim.item I where I.encounter.references(E))
    return claim.diagnosis D where D.sequence in claimItem.diagnosisSequence
Logic Definition Library Name: CQMCommon
/*
@description: Returns the Condition resource for the given reference
*/
define fluent function getCondition(reference Reference):
  singleton from (([ConditionEncounterDiagnosis] union [ConditionProblemsHealthConcerns]) C where reference.references(C.id))
Logic Definition Library Name: QICoreCommon
/*
@description: Returns true if any of the given references are to the given resource
@comment: Returns true if the `id` element of the given resource exactly equals the tail of any of the given references.
NOTE: This function assumes resources from the same source server.
*/
define fluent function references(references List<Reference>, resource Resource):
  exists (references R where R.references(resource))
Logic Definition Library Name: QICoreCommon
/*
@description: Returns true if the given reference is to the given resource
@comment: Returns true if the `id` element of the given resource exactly equals the tail of the given reference.
NOTE: This function assumes resources from the same source server.
*/
define fluent function references(reference Reference, resource Resource):
  resource.id = Last(Split(reference.reference, '/'))
Logic Definition Library Name: QICoreCommon
/*
@description: Returns true if the given code is in the given codeList
@comment: Returns true if the `code` is equivalent to any of the codes in the given `codeList`, false otherwise.
*/
define fluent function includesCode(codeList List<Concept>, code Code):
  exists (codeList C where C ~ code)
Logic Definition Library Name: QICoreCommon
/*
@description: Returns true if the given reference is to the given resourceId
@comment: Returns true if the `resourceId` parameter exactly equals the tail of the given reference.
NOTE: This function assumes resources from the same source server.
*/
define fluent function references(reference Reference, resourceId String):
  resourceId = Last(Split(reference.reference, '/'))
Logic Definition Library Name: CMS1272FHIRTimetoPainMedSCDVOE
define "SDE Sex":
  SDE."SDE Sex"
Logic Definition Library Name: CMS1272FHIRTimetoPainMedSCDVOE
define "ED Encounter With Principal Diagnosis Of SCD With VOE":
  [Encounter: "Emergency Department Evaluation and Management Visit"] EDEncounter
    where end of EDEncounter.period during day of "Measurement Period"
      and EDEncounter.status = 'finished'
      and EDEncounter.hasPrincipalDiagnosisOf ( "Sickle Cell Disease with Vaso Occlusive Episode" )
Logic Definition Library Name: CMS1272FHIRTimetoPainMedSCDVOE
define "Pain Medications Administered During ED Encounter":
  ["MedicationAdministration": "Analgesics for Acute Pain"] PainMed
    with "ED Encounter With Principal Diagnosis Of SCD With VOE" SCDwVOEEncounter
      such that PainMed.status = 'completed'
        and start of PainMed.effective during SCDwVOEEncounter.period
Logic Definition Library Name: CMS1272FHIRTimetoPainMedSCDVOE
define "ED Encounter For SCD With VOE With Pain Medication Administered":
  "ED Encounter With Principal Diagnosis Of SCD With VOE" SCDwVOEEncounter
    with "Pain Medications Administered During ED Encounter" PainMed
      such that start of PainMed.effective during SCDwVOEEncounter.period
Logic Definition Library Name: CMS1272FHIRTimetoPainMedSCDVOE
define "ED Encounters Where First Pain Medication Was Administered Via Non-Parenteral Route":
  "ED Encounter For SCD With VOE With Pain Medication Administered" Encounter
    let FirstParenteral: FirstParenteralPainMed(Encounter),
    FirstNonParenteral: FirstNonParenteralPainMed(Encounter)
    where FirstParenteral is null
      or start of FirstNonParenteral.effective before start of FirstParenteral.effective
    return Encounter
Logic Definition Library Name: CMS1272FHIRTimetoPainMedSCDVOE
define "Stratification 2":
  "ED Encounters Where First Pain Medication Was Administered Via Non-Parenteral Route"
Logic Definition Library Name: CMS1272FHIRTimetoPainMedSCDVOE
define "ED Encounters Where First Pain Medication Was Administered Via Parenteral Route":
  "ED Encounter For SCD With VOE With Pain Medication Administered" Encounter
    let FirstParenteral: FirstParenteralPainMed(Encounter),
    FirstNonParenteral: FirstNonParenteralPainMed(Encounter)
    where FirstNonParenteral is null
      or start of FirstParenteral.effective on or before start of FirstNonParenteral.effective
    return Encounter
Logic Definition Library Name: CMS1272FHIRTimetoPainMedSCDVOE
define "Stratification 1":
  "ED Encounters Where First Pain Medication Was Administered Via Parenteral Route"
Logic Definition Library Name: CMS1272FHIRTimetoPainMedSCDVOE
define "SDE Payer":
  SDE."SDE Payer"
Logic Definition Library Name: CMS1272FHIRTimetoPainMedSCDVOE
define "Initial Population":
  "ED Encounter For SCD With VOE With Pain Medication Administered"
Logic Definition Library Name: CMS1272FHIRTimetoPainMedSCDVOE
define "SDE Ethnicity":
  SDE."SDE Ethnicity"
Logic Definition Library Name: CMS1272FHIRTimetoPainMedSCDVOE
define "SDE Race":
  SDE."SDE Race"
Logic Definition Library Name: CMS1272FHIRTimetoPainMedSCDVOE
define "Measure Population":
  "Initial Population"
Logic Definition Library Name: CMS1272FHIRTimetoPainMedSCDVOE
define function FirstParenteralPainMed(SCDwVOEEncounter Encounter):
  First(["MedicationAdministration": "Analgesics for Acute Pain (Parenteral Route)"] ParenteralPainMed
      where ParenteralPainMed.status = 'completed'
        and start of ParenteralPainMed.effective during SCDwVOEEncounter.period
      sort by start of effective
  )
Logic Definition Library Name: CMS1272FHIRTimetoPainMedSCDVOE
define function FirstNonParenteralPainMed(SCDwVOEEncounter Encounter):
  First(["MedicationAdministration": "Analgesics for Acute Pain (Non Parenteral Route)"] NonParenteralPainMed
      where NonParenteralPainMed.status = 'completed'
        and start of NonParenteralPainMed.effective during SCDwVOEEncounter.period
      sort by start of effective
  )
Logic Definition Library Name: CMS1272FHIRTimetoPainMedSCDVOE
define function "Measure Observation"(SCDwVOEEncounterWithPainMed Encounter):
  difference in minutes between start of SCDwVOEEncounterWithPainMed.period and start of SCDwVOEEncounterWithPainMed.firstPainMedicationAdministration ( ).effective
Logic Definition Library Name: CMS1272FHIRTimetoPainMedSCDVOE
define fluent function firstPainMedicationAdministration(SCDwVOEEncounterWithPainMed Encounter):
  First("Pain Medications Administered During ED Encounter" PainMed
      sort by start of effective
  )
Terminology
Code System Description: Code system SNOMEDCT
Resource: http://snomed.info/sct
Canonical URL: http://snomed.info/sct
Code System Description: Code system Diagnosis Type
Resource: http://terminology.hl7.org/CodeSystem/ex-diagnosistype
Canonical URL: http://terminology.hl7.org/CodeSystem/ex-diagnosistype
Value Set Description: Value set Emergency Department Evaluation and Management Visit
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1010
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1010
Value Set Description: Value set Sickle Cell Disease with Vaso Occlusive Episode
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1160.42
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1160.42
Value Set Description: Value set Analgesics for Acute Pain
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1160.43
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1160.43
Value Set Description: Value set Analgesics for Acute Pain (Parenteral Route)
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1160.74
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1160.74
Value Set Description: Value set Analgesics for Acute Pain (Non Parenteral Route)
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1160.73
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1160.73
Value Set Description: Value set Payer Type
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
Direct Reference Code Display: Male (finding)
Code: 248153007
System: http://snomed.info/sct
Direct Reference Code Display: Female (finding)
Code: 248152002
System: http://snomed.info/sct
Direct Reference Code Display: Principal Diagnosis
Code: principal
System: http://terminology.hl7.org/CodeSystem/ex-diagnosistype
Dependencies
Dependency Description: QICore model information
Resource: http://hl7.org/fhir/Library/QICore-ModelInfo
Canonical URL: http://hl7.org/fhir/Library/QICore-ModelInfo
Dependency Description: Library SDE
Resource: https://madie.cms.gov/Library/SupplementalDataElements|5.1.000
Canonical URL: https://madie.cms.gov/Library/SupplementalDataElements|5.1.000
Dependency Description: Library FHIRHelpers
Resource: https://madie.cms.gov/Library/FHIRHelpers|4.4.000
Canonical URL: https://madie.cms.gov/Library/FHIRHelpers|4.4.000
Dependency Description: Library CQMCommon
Resource: https://madie.cms.gov/Library/CQMCommon|4.1.000
Canonical URL: https://madie.cms.gov/Library/CQMCommon|4.1.000
Dependency Description: Library QICoreCommon
Resource: https://madie.cms.gov/Library/QICoreCommon|4.0.000
Canonical URL: https://madie.cms.gov/Library/QICoreCommon|4.0.000
Data Requirements
Data Requirement Type: Patient
Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient
Must Support Elements: extension, url
Data Requirement Type: Resource
Profile(s): http://hl7.org/fhir/StructureDefinition/Resource
Must Support Elements: id, id.value
Data Requirement Type: Claim
Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-claim
Must Support Elements: status, status.value, use, use.value, item
Data Requirement Type: Condition
Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-encounter-diagnosis
Data Requirement Type: Condition
Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-problems-health-concerns
Data Requirement Type: Encounter
Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter
Must Support Elements: type, period, status, status.value, diagnosis, diagnosis.code
Code Filter(s):
Path: type
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1010
Data Requirement Type: Encounter
Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter
Must Support Elements: period, type, diagnosis, diagnosis.code
Data Requirement Type: MedicationAdministration
Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationadministration
Must Support Elements: medication, status, status.value, effective
Code Filter(s):
Path: medication
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1160.43
Data Requirement Type: MedicationAdministration
Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationadministration
Must Support Elements: medication, status, status.value, effective
Code Filter(s):
Path: medication
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1160.74
Data Requirement Type: MedicationAdministration
Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationadministration
Must Support Elements: medication, status, status.value, effective
Code Filter(s):
Path: medication
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1160.73
Data Requirement Type: MedicationAdministration
Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationadministration
Must Support Elements: medication.reference.value, status, status.value, effective
Data Requirement Type: Medication
Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication
Must Support Elements: id.value, code
Data Requirement Type: Coverage
Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage
Must Support Elements: type, period
Code Filter(s):
Path: type
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
Parameters
Name Use Card. Type Documentation
Measurement Period in 0..1 Period
Initial Population out 0..* Resource
Measure Population out 0..* Resource
SDE Sex out 0..1 Coding
SDE Payer out 0..* Resource
SDE Ethnicity out 0..1 Resource
SDE Race out 0..1 Resource
Stratification 2 out 0..* Resource
Stratification 1 out 0..* Resource
Generated using version 0.5.4 of the sample-content-ig Liquid templates