eCQM QICore Content Implementation Guide
2024.0.0 - CI Build

eCQM QICore Content Implementation Guide, published by cqframework. This guide is not an authorized publication; it is the continuous build for version 2024.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/ecqm-content-qicore-2024/ and changes regularly. See the Directory of published versions

Measure: Hospital Harm - Pressure InjuryFHIR

Official URL: https://madie.cms.gov/Measure/HospitalHarmPressureInjuryFHIR Version: 0.1.000
Draft as of 2024-07-09 Responsible: Centers for Medicare & Medicaid Services (CMS) Computable Name: HospitalHarmPressureInjuryFHIR
Other Identifiers: Short Name (use: usual, ), UUID:75ae89cd-c418-4de1-98c3-0230c72402b6 (use: official, ), UUID:843c90b5-adbe-4ab7-9dcb-67527ce20fa7 (use: official, ), Publisher (use: official, )

Copyright/Legal: Limited proprietary coding is contained in the Measure specifications for user convenience. Users of proprietary code sets should obtain all necessary licenses from the owners of the code sets. American Institutes for Research (R), formerly IMPAQ International, disclaims all liability for use or accuracy of any third party codes contained in the specifications.

LOINC(R) copyright 2004-2023 Regenstrief Institute, Inc. This material contains SNOMED Clinical Terms(R) (SNOMED CT[R]) copyright 2004-2023 International Health Terminology Standards Development Organisation. ICD-10 copyright 2023 World Health Organization. All Rights Reserved.

The proportion of inpatient hospitalizations for patients aged 18 and older who suffer the harm of developing a new stage 2, stage 3, stage 4, deep tissue, or unstageable pressure injury

UNKNOWN

Title: Hospital Harm - Pressure InjuryFHIR
Id: HospitalHarmPressureInjuryFHIR
Version: 0.1.000
Url: Hospital Harm - Pressure InjuryFHIR
short-name identifier:

CMS826FHIR

version-independent identifier:

urn:uuid:75ae89cd-c418-4de1-98c3-0230c72402b6

version-specific identifier:

urn:uuid:843c90b5-adbe-4ab7-9dcb-67527ce20fa7

publisher (CMS) identifier:

826FHIR

Effective Period: 2025-01-01..2025-12-31
Status: draft
Publisher: Centers for Medicare & Medicaid Services (CMS)
Author: American Institutes for Research (AIR)
Description:

The proportion of inpatient hospitalizations for patients aged 18 and older who suffer the harm of developing a new stage 2, stage 3, stage 4, deep tissue, or unstageable pressure injury

Purpose:

UNKNOWN

Copyright:

Limited proprietary coding is contained in the Measure specifications for user convenience. Users of proprietary code sets should obtain all necessary licenses from the owners of the code sets. American Institutes for Research (R), formerly IMPAQ International, disclaims all liability for use or accuracy of any third party codes contained in the specifications.

LOINC(R) copyright 2004-2023 Regenstrief Institute, Inc. This material contains SNOMED Clinical Terms(R) (SNOMED CT[R]) copyright 2004-2023 International Health Terminology Standards Development Organisation. ICD-10 copyright 2023 World Health Organization. All Rights Reserved.

Disclaimer:

This performance measure is not a clinical guideline, does not establish a standard of medical care, and has not been tested for all potential applications.

THE MEASURES AND SPECIFICATIONS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.

Due to technical limitations, registered trademarks are indicated by (R) or [R] and unregistered trademarks are indicated by (TM) or [TM].

Scoring:

Proportion

Rationale:

This safety eCQM captures the number of patients who experience harm in the form of a pressure injury, during their inpatient hospitalization. The incidence of pressure injuries in hospitalized patients has been estimated at 5.4 per 10,000 patient-days and the rate of hospital-acquired pressure injuries has been estimated at 8.4% (Li et al., 2020). Over 50% of reported pressure injuries in hospitals were stage 2 or higher (Li et al., 2020). Hospital-acquired pressure injuries are serious events and one of the most common patient harms. Pressure injuries commonly cause local infection, osteomyelitis, anemia, and sepsis, in addition to causing significant depression, pain, and discomfort to patients (Shui et al., 2021). Pressure injury is considered a serious reportable event by the National Quality Forum (NQF) (Centers for Medicare and Medicaid Services, 2015).

Studies have shown that age, severity of illness, comorbidity indexes, and Braden scores are predictors of hospital-acquired pressure injuries (HAPI) (Rondinelli et al., 2018). However, even after risk adjustment for patient risk factors, significant variation in rates of HAPI exist between hospitals (Rondinelli et al., 2018). It is widely accepted that the risk of developing a pressure injury can be reduced through best practices. Hospital controlled factors that have been found to be significantly associated with an increase in pressure ulcer risk include infrequent repositioning (p=0.005) and number of days to bed change (OR, 2.89 [95% CI, 1.26-6.63]) (Tayyib, Coyer, and Lewis, 2016; Bly et al., 2016). Nurse staffing, measured as hours per patient day (HPPD), skill mix and expertise, are also significant predictors of HAPI development. Higher HPPD was negatively associated with HAPI, while higher skill mix was associated with a lower risk for HAPIs (Tschannen et al., 2020). Systematically measuring patients who develop new pressure injuries while in the hospital setting will provide hospitals with a reliable and timely measurement, to more reliably assess harm reduction efforts and modify their improvement efforts in near real-time. This eCQM will fill a gap in measurement and provide incentives for hospitals’ quality improvement. Although several pressure injury measures are currently in use, there are no electronic health record (EHR)-based measures intended for use in acute care hospitals. In addition, the intent of this measure is to incentivize greater achievements in reducing harms and enhance hospital performance on patient safety outcomes.

Stage 2 pressure injuries carry a less serious burden in terms of patient harm than stage 3, stage 4, unstageable, and deep tissue pressure injuries (DTPI). Partial thickness wounds heal primarily as a result of epidermal regeneration and often heal without untoward consequences, loss of skin function or scar tissue formation. Based on the healing capabilities inherent in these partial thickness wounds, it is the expert opinion of the NPUAP that the presentation of a stage 2 pressure injuries does not carry the same potential longstanding negative consequences to patients as do full thickness pressure injuries. Stage 2 pressure injuries constitute a very real patient harm that should be monitored and addressed; however, the relative level of harm is less than with stage 3, stage 4, unstageable pressure injuries and potentially DTPI (National Pressure Ulcer Advisory Panel, 2019).

The accurate and timely identification of DTPI is important for several reasons. Early discovery of DTPI allows prompt identification of possible causes, initiation of treatment, and potential development of preventive strategies. In addition, 24 to 72 hours can lapse between the precipitating pressure event and the onset of purple or maroon skin. This delayed manifestation becomes particularly important when the precipitating event occurred before the patient’s admission, yet the DTPI appears beyond the 24-hour window for present-on-admission status (Wound Management and Prevention, 2018).

Clinical recommendation statement:

The Clinical Guidelines Committee for the American College of Physicians (ACP) presents the available evidence on the comparative effectiveness of various risk assessment instruments and benefits and harms of strategies to prevent pressure ulcers (Qaseem et al., 2015).

Recommendation 1: ACP recommends that clinicians should perform a risk assessment to identify patients who are at risk of developing pressure ulcers.

Recommendation 2: ACP recommends that clinicians should choose advanced static mattresses or advanced static overlays in patients who are at an increased risk of developing pressure ulcers.

Recommendation 3: ACP recommends against using alternating-air mattresses or alternating-air overlays in patients who are at an increased risk of developing pressure ulcers.

The European Pressure Ulcer Advisory Panel, National Pressure Injury Advisory Panel and Pan Pacific Pressure Injury Alliance (Prevention and Treatment of Pressure Ulcers/Injuries: Clinical Practice Guideline. The International Guideline. EPUAP/NPIAP/PPPIA:2019) provide guidance for categorizing pressure injuries and recommendations for structured skin and risk assessment.

Guidelines focused on risk factors and risk assessment: 1.1: Consider individuals with limited mobility, limited activity and a high potential for friction and shear to be at risk of pressure injuries. 1.2: Consider individuals with a category/stage I pressure injury to be at risk of developing a category/stage II or greater pressure injury. 1.7: Consider the impact of diabetes mellitus on the risk of pressure injuries. 1.8: Consider the impact of perfusion and circulation deficits on the risk of pressure injuries. 1.12: Consider the impact of increased body temperature on the risk of pressure injuries. 1.17: Consider the impact of time spent immobilized before surgery, the duration of surgery and the American Society of Anesthesiologists (ASA) Physical Status Classification on surgery-related pressure injury risk.

Guidelines focused on skin and tissue assessment: 2.2: Inspect the skin of individuals at risk of pressure injuries to identify presence of erythema. 2.3: Differentiate blanchable from non-blanchable erythema using either finger pressure or the transparent disk method and evaluate the extent of erythema.

Guidelines focused on preventative skin care: 3.1: Implement a skin care regimen that includes:

  • Keeping skin clean and appropriately hydrated
  • Cleansing the skin promptly after episodes of incontinence
  • Avoiding use of alkaline soaps and cleansers
  • Protecting the skin from moisture with a barrier product 3.3: Use high absorbency incontinence products to protect the skin in individuals with or at risk of pressure injuries who have urinary incontinence. 3.4: Consider using textiles with low friction coefficients for individuals with or at risk of pressure injuries.
    3.5: Use a soft silicone multi-layered foam dressing to protect the skin for individuals at risk of pressure injuries.

Guidelines focused on nutrition screening:
4.1: Conduct nutritional screening for individuals at risk of a pressure injury. 4.2: Conduct a comprehensive nutrition assessment for adults at risk of a pressure injury who are screened to be at risk of malnutrition and for all adults with a pressure injury.
4.3: Develop and implement an individualized nutrition care plan for individuals with or at risk of a pressure injury who are malnourished or who are at risk of malnutrition.
4.4: Optimize energy intake for individuals at risk of pressure injuries who are malnourished or at risk of malnutrition.
4.6: Provide 30 to 35 kcalories/kg body weight/day for adults with a pressure injury who are malnourished or at risk of malnutrition.
4.7: Provide 1.25 to 1.5 g protein/kg body weight/day for adults with a pressure injury who are malnourished or at risk of malnutrition.
4.9: Offer high calorie, high protein nutritional supplements in addition to the usual diet for adults with a pressure injury who are malnourished or at risk of malnutrition, if nutritional requirements cannot be achieved by normal dietary intake.
4.12: Discuss the benefits and harms of enteral or parenteral feeding to support pressure injury treatment in light of preferences and goals of care for individuals with pressure injuries who cannot meet their nutritional requirements through oral intake despite nutritional interventions.

Guidelines focused on repositioning and early mobilization: 5.1: Reposition all individuals with or at risk of pressure injuries on an individualized schedule, unless contraindicated. 5.2: Determine repositioning frequency with consideration to the individual’s level of activity and ability to independently reposition.

Guidelines focused on heel pressure injury: 6.1: Assess the vascular/perfusion status of the lower limbs, heels and feet when performing a skin and tissue assessment, and as part of a risk assessment. 6.2: For individuals at risk of heel pressure injuries and/or with category/stage I or II pressure injuries, elevate the heels using a specifically designed heel suspension device or a pillow/ foam cushion. Offload the heel completely in such a way as to distribute the weight of the leg along the calf without placing pressure on the Achilles tendon and the popliteal vein. 6.4: Use a prophylactic dressing as an adjunct to heel offloading and other strategies to prevent heel pressure injuries.

Guidelines focused on support surfaces: 7.4: Use a high specification reactive single layer foam mattress or overlay in preference to a foam mattress without high specification qualities for individuals at risk of developing pressure injuries. 7.7: Assess the relative benefits of using an alternating pressure air mattress or overlay for individuals at risk of pressure injuries. 7.8: Use a pressure redistribution support surface on the operating table for all individuals with or at risk of pressure injuries who are undergoing surgery. 7.12: Use a pressure redistribution cushion for preventing pressure injuries in people at high risk who are seated in a chair/wheelchair for prolonged periods, particularly if the individual is unable to perform pressure relieving maneuvers. 7.13: Assess the relative benefits of using an alternating pressure air cushion for supporting pressure injury healing in individuals who are seated in a chair/wheelchair for prolonged periods, particularly if the individual is unable to perform pressure relieving maneuvers.

Guidelines focused on device related pressure injury: 8.1: To reduce the risk of medical device related pressure injuries, review and select medical devices with consideration to:

  • The device's ability to minimize tissue damage
  • Correct sizing/shape of the device for the individual
  • Ability to correctly apply the device according to manufacturer's instructions
  • Ability to correctly secure the device 8.5: Use a prophylactic dressing beneath a medical device to reduce the risk of medical device related pressure injuries.

Guidelines focused on implementing best practices: 20.2: At the organizational level, assess the knowledge health professionals have about pressure injuries to facilitate implementation of an education program and a quality improvement program.
20.4: At an organizational level, assess and maximize the availability and quality of equipment and standards for its use as part of a quality improvement plan to reduce the incidence of pressure injuries.
20.5: At an organizational level, develop and implement a structured, tailored and multi-faceted quality improvement program to reduce the incidence of pressure injuries.
20.6: At an organizational level, engage all key stakeholders in oversight and implementation of the quality improvement program to reduce the incidence of pressure injuries.
20.7: At an organizational level, include evidence-based policies, procedures and protocols and standardized documentation systems to reduce the incidence of pressure injuries.
20.8: At an organizational level, provide clinical decision support tools as part of a quality improvement plan to reduce the incidence of pressure injuries.
20.9: Provide clinical leadership in pressure injury prevention and treatment as part of a quality improvement plan to reduce pressure injuries.
20.10: At a professional level, provide education in pressure injury prevention and treatment as part of a quality improvement plan to reduce the incidence of pressure injuries.
20.11: At an organizational level, regularly monitor, analyze and evaluate performance against quality indicators for pressure injury prevention and treatment. 20.12: At an organizational level, use feedback and reminder systems to promote the quality improvement program and its outcomes to stakeholders.

Guidelines focused on health professional education: 21.1: At the organizational level, assess the knowledge health professionals have about pressure injuries to facilitate implementation of an education program and a quality improvement program.
21.2: At an organizational level, develop and implement a multi-faceted education program for pressure injury prevention and treatment.

Guidance (Usage): Only one harm (new qualifying pressure injury) is counted per encounter. This eCQM is an episode-based measure. An episode is defined as each inpatient hospitalization or encounter that ends during the measurement period. This FHIR-based measure has been derived from the QDM-based measure: CMS826v2.2. Please refer to the HL7 QI-Core Implementation Guide(https://hl7.org/fhir/us/qicore/STU4.1.1/) for more information on QI-Core and mapping recommendations from QDM to QI-Core4.1.1 (https://hl7.org/fhir/us/qicore/STU4.1.1/qdm-to-qicore.html).
Population Criteria:
65020280da013638e7b3dc1f
Initial Population: Inpatient hospitalizations for patients aged 18 and older
Denominator: Equals Initial Population
Denominator Exclusion: Inpatient hospitalizations for patients with a DTPI or stage 2, 3, 4 or unstageable pressure injury diagnosis present on admission, i.e., the diagnosis of pressure injury has a Present on Admission indicator = Y yes (Diagnosis was present at time of inpatient admission) or W (clinically undetermined) Inpatient hospitalizations for patients with a DTPI found on exam within 72 hours after the start of the encounter Inpatient hospitalizations for patients with a stage 2, 3, 4, or unstageable pressure injury found on exam within 24 hours after the start of the encounter Inpatient hospitalizations for patients with diagnosis of a COVID-19 infection during the encounter
Numerator: Inpatient hospitalizations for patients with a new deep tissue pressure injury (DTPI) or stage 2, 3, 4, or unstageable pressure injury, as evidenced by any of the following: A diagnosis of DTPI with the DTPI not present on admission, i.e., the diagnosis of DTPI has a Present on Admission indicator = N no (Diagnosis was not present at time of inpatient admission) or U (documentation insufficient to determine if the condition was present at the time of inpatient admission) A diagnosis of stage 2, 3, 4 or unstageable pressure injury with the pressure injury diagnosis not present on admission, i.e., the diagnosis of pressure injury has a Present on Admission indicator = N no (Diagnosis was not present at time of inpatient admission) or U (documentation insufficient to determine if the condition was present at the time of inpatient admission) A DTPI found on exam greater than 72 hours after the start of the encounter A stage 2, 3, 4 or unstageable pressure injury found on exam greater than 24 hours after the start of the encounter
Supplemental Data Elements:

SDE Ethnicity

SDE Payer

SDE Race

SDE Sex

Supplemental Data Guidance : For every patient evaluated by this measure, also identify payer, race, ethnicity and sex; SDE Ethnicity SDE Payer SDE Race SDE Sex
Libraries:
HospitalHarmPressureInjuryFHIR
Terminology and Other Dependencies:
  • Library/SupplementalDataElements|3.5.000
  • Library/FHIRHelpers|4.4.000
  • Library/CQMCommon|2.2.000
  • Library/QICoreCommon|2.1.000
  • AdministrativeGender
  • Logical Observation Identifiers, Names and Codes (LOINC)
  • Encounter Inpatient
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.194
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.198
  • Observation Services
  • Emergency Department Visit
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.112
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.196
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.113
  • Payer
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.197
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.140
  • Parameters:
    name use min max type
    Measurement Period In 0 1 Period
    SDE Sex Out 0 1 Coding
    Numerator Out 0 * Resource
    Denominator Out 0 * Resource
    SDE Payer Out 0 * Resource
    Initial Population Out 0 * Resource
    SDE Ethnicity Out 0 1 Resource
    Denominator Exclusions Out 0 * Resource
    SDE Race Out 0 1 Resource
    DataRequirements:
    Resource Type Resource Elements Valueset Name Valueset
    Patient(QICorePatient) ethnicity race
    Encounter(QICoreEncounter) type status status.value period condition condition.reference condition.reference.value Observation Services Observation Services
    Encounter(QICoreEncounter) type status status.value period condition condition.reference condition.reference.value Emergency Department Visit Emergency Department Visit
    Encounter(QICoreEncounter) type period status status.value diagnosis condition condition.reference condition.reference.value Encounter Inpatient Encounter Inpatient
    Encounter(QICoreEncounter) type period status status.value diagnosis condition condition.reference condition.reference.value Encounter Inpatient Encounter Inpatient
    Encounter(QICoreEncounter) type period status status.value condition condition.reference condition.reference.value Encounter Inpatient Encounter Inpatient
    Condition(QICoreCondition) id id.value code
    Observation(QICoreObservation) code effective status status.value value component
    Observation(QICoreObservation) code effective status status.value
    Observation(QICoreObservation) code effective status status.value
    Coverage(QICoreCoverage) type period Payer Type Payer
    Direct Reference Codes:
    display code system
    Male M http://hl7.org/fhir/administrative-gender
    Female F http://hl7.org/fhir/administrative-gender
    Physical findings of Skin 8709-8 http://loinc.org
    Logic Definitions:
    Group Scoring Population Criteria Expression
    65020280da013638e7b3dc1f Group scoring: proportion Measure scoring:

    Proportion

    Type:

    Outcome

    Rate Aggregation: None
    Improvement Notation:

    decrease

    Initial Population
    define "Initial Population":
      "Encounter with Age 18 and Older"
    Denominator
    define "Denominator":
      "Initial Population"
    Denominator Exclusion
    define "Denominator Exclusions":
      "Encounter with Deep Tissue Pressure Injury POA"
        union "Encounter with Stage 2, 3, 4 or Unstageable Pressure Injury POA"
        union "Encounter with Diagnosis of COVID19 Infection"
    Numerator
    define "Numerator":
      "Encounter with New Deep Tissue Pressure Injury Not POA"
        union "Encounter with New Stage 2, 3, 4 or Unstageable Pressure Injury Not POA"
    Library Name Name
    SupplementalDataElements SDE Sex
    define "SDE Sex":
      case
        when Patient.gender = 'male' then "M"
        when Patient.gender = 'female' then "F"
        else null
      end
    Library Name Name
    HospitalHarmPressureInjuryFHIR SDE Sex
    define "SDE Sex":
      SDE."SDE Sex"
    Library Name Name
    HospitalHarmPressureInjuryFHIR Encounter with Age 18 and Older
    define "Encounter with Age 18 and Older":
      ["Encounter": "Encounter Inpatient"] InpatientEncounter
        where AgeInYearsAt(date from start of InpatientEncounter.period) >= 18
          and InpatientEncounter.period ends during day of "Measurement Period"
          and InpatientEncounter.status = 'finished'
    Library Name Name
    HospitalHarmPressureInjuryFHIR Encounter with New Deep Tissue Pressure Injury Not POA by Indicator
    define "Encounter with New Deep Tissue Pressure Injury Not POA by Indicator":
      "Encounter with Age 18 and Older" InpatientHospitalization
        where exists ( InpatientHospitalization.diagnosis EncounterDiag
            where EncounterDiag.condition.getCondition ( ).code in "Pressure Injury Deep Tissue Diagnoses"
              and ( EncounterDiag.diagnosisPresentOnAdmission in "Not Present On Admission or Documentation Insufficient to Determine" )
        )
    Library Name Name
    HospitalHarmPressureInjuryFHIR Encounter with New Deep Tissue Pressure Injury by Skin Exam after First 72 Hours
    define "Encounter with New Deep Tissue Pressure Injury by Skin Exam after First 72 Hours":
      "Encounter with Age 18 and Older" InpatientHospitalization
        let hospitalizationPeriod: CQMCommon."HospitalizationWithObservation" ( InpatientHospitalization )
        with ["Observation": "Physical findings of Skin"] SkinExam
          such that QICoreCommon."ToInterval" ( SkinExam.effective ) starts during Interval[start of hospitalizationPeriod + 72 hours, end of hospitalizationPeriod]
            and SkinExam.status in { 'final', 'amended', 'corrected' }
            and ( SkinExam.value as Concept in "Pressure Injury Deep Tissue"
                or SkinExam.component.code in "Pressure Injury Deep Tissue"
            )
    Library Name Name
    HospitalHarmPressureInjuryFHIR Encounter with New Deep Tissue Pressure Injury Not POA
    define "Encounter with New Deep Tissue Pressure Injury Not POA":
      "Encounter with New Deep Tissue Pressure Injury Not POA by Indicator"
        union "Encounter with New Deep Tissue Pressure Injury by Skin Exam after First 72 Hours"
    Library Name Name
    HospitalHarmPressureInjuryFHIR Encounter with New Stage 2, 3, 4 or Unstageable Pressure Injury Not POA by Indicator
    define "Encounter with New Stage 2, 3, 4 or Unstageable Pressure Injury Not POA by Indicator":
      "Encounter with Age 18 and Older" InpatientHospitalization
        where exists ( InpatientHospitalization.diagnosis Stage234UnstageablePressureInjury
            where Stage234UnstageablePressureInjury.condition.getCondition ( ).code in "Pressure Injury Stage 2, 3, 4, or Unstageable Diagnoses"
              and ( Stage234UnstageablePressureInjury.diagnosisPresentOnAdmission in "Not Present On Admission or Documentation Insufficient to Determine" )
        )
    Library Name Name
    HospitalHarmPressureInjuryFHIR Encounter with New Stage 2, 3, 4 or Unstageable Pressure Injury by Skin Exam after First 24 Hours
    define "Encounter with New Stage 2, 3, 4 or Unstageable Pressure Injury by Skin Exam after First 24 Hours":
      "Encounter with Age 18 and Older" InpatientHospitalization
        let hospitalizationPeriod: CQMCommon."HospitalizationWithObservation" ( InpatientHospitalization )
        with ["Observation": "Physical findings of Skin"] SkinExam
          such that QICoreCommon."ToInterval" ( SkinExam.effective ) starts during Interval[start of hospitalizationPeriod + 24 hours, end of hospitalizationPeriod]
            and SkinExam.status in { 'final', 'amended', 'corrected' }
            and ( SkinExam.value as Concept in "Pressure Injury Stage 2, 3, 4 or Unstageable"
                or SkinExam.component.code in "Pressure Injury Stage 2, 3, 4 or Unstageable"
            )
    Library Name Name
    HospitalHarmPressureInjuryFHIR Encounter with New Stage 2, 3, 4 or Unstageable Pressure Injury Not POA
    define "Encounter with New Stage 2, 3, 4 or Unstageable Pressure Injury Not POA":
      "Encounter with New Stage 2, 3, 4 or Unstageable Pressure Injury Not POA by Indicator"
        union "Encounter with New Stage 2, 3, 4 or Unstageable Pressure Injury by Skin Exam after First 24 Hours"
    Library Name Name
    HospitalHarmPressureInjuryFHIR Numerator
    define "Numerator":
      "Encounter with New Deep Tissue Pressure Injury Not POA"
        union "Encounter with New Stage 2, 3, 4 or Unstageable Pressure Injury Not POA"
    Library Name Name
    HospitalHarmPressureInjuryFHIR Initial Population
    define "Initial Population":
      "Encounter with Age 18 and Older"
    Library Name Name
    HospitalHarmPressureInjuryFHIR Denominator
    define "Denominator":
      "Initial Population"
    Library Name Name
    SupplementalDataElements SDE Payer
    define "SDE Payer":
      [Coverage: type in "Payer Type"] Payer
        return {
          code: Payer.type,
          period: Payer.period
        }
    Library Name Name
    HospitalHarmPressureInjuryFHIR SDE Payer
    define "SDE Payer":
      SDE."SDE Payer"
    Library Name Name
    SupplementalDataElements SDE Ethnicity
    define "SDE Ethnicity":
      Patient.ethnicity E
        return Tuple {
          codes: { E.ombCategory } union E.detailed,
          display: E.text
        }
    Library Name Name
    HospitalHarmPressureInjuryFHIR SDE Ethnicity
    define "SDE Ethnicity":
      SDE."SDE Ethnicity"
    Library Name Name
    HospitalHarmPressureInjuryFHIR Encounter with Deep Tissue Pressure Injury POA by Indicator
    define "Encounter with Deep Tissue Pressure Injury POA by Indicator":
      "Encounter with Age 18 and Older" InpatientHospitalization
        where exists ( InpatientHospitalization.diagnosis EncounterDiag
            where EncounterDiag.condition.getCondition ( ).code in "Pressure Injury Deep Tissue Diagnoses"
              and ( EncounterDiag.diagnosisPresentOnAdmission in "Present on Admission or Clinically Undetermined" )
        )
    Library Name Name
    HospitalHarmPressureInjuryFHIR Encounter with Deep Tissue Pressure Injury POA by Skin Exam within First 72 Hours
    define "Encounter with Deep Tissue Pressure Injury POA by Skin Exam within First 72 Hours":
      "Encounter with Age 18 and Older" InpatientHospitalization
        let hospitalizationPeriod: CQMCommon."HospitalizationWithObservation" ( InpatientHospitalization )
        with ["Observation": "Physical findings of Skin"] SkinExam
          such that QICoreCommon."ToInterval" ( SkinExam.effective ) starts during Interval[start of hospitalizationPeriod, start of hospitalizationPeriod + 72 hours]
            and SkinExam.status in { 'final', 'amended', 'corrected' }
            and SkinExam.code in "Pressure Injury Deep Tissue"
    Library Name Name
    HospitalHarmPressureInjuryFHIR Encounter with Deep Tissue Pressure Injury POA
    define "Encounter with Deep Tissue Pressure Injury POA":
      "Encounter with Deep Tissue Pressure Injury POA by Indicator"
        union "Encounter with Deep Tissue Pressure Injury POA by Skin Exam within First 72 Hours"
    Library Name Name
    HospitalHarmPressureInjuryFHIR Encounter with Stage 2, 3, 4, or Unstageable Pressure Injury Present on Admission by POA Indicator
    define "Encounter with Stage 2, 3, 4, or Unstageable Pressure Injury Present on Admission by POA Indicator":
      "Encounter with Age 18 and Older" InpatientHospitalization
        where exists ( InpatientHospitalization.diagnosis Stage234UnstageablePressureInjury
            where Stage234UnstageablePressureInjury.condition.getCondition ( ).code in "Pressure Injury Stage 2, 3, 4, or Unstageable Diagnoses"
              and ( Stage234UnstageablePressureInjury.diagnosisPresentOnAdmission in "Present on Admission or Clinically Undetermined" )
        )
    Library Name Name
    HospitalHarmPressureInjuryFHIR Encounter with Stage 2, 3, 4 or Unstageable Pressure Injury POA by Skin Exam within 24 Hours
    define "Encounter with Stage 2, 3, 4 or Unstageable Pressure Injury POA by Skin Exam within 24 Hours":
      "Encounter with Age 18 and Older" InpatientHospitalization
        let hospitalizationPeriod: CQMCommon."HospitalizationWithObservation" ( InpatientHospitalization )
        with ["Observation": "Physical findings of Skin"] SkinExam
          such that QICoreCommon."ToInterval" ( SkinExam.effective ) starts during Interval[start of hospitalizationPeriod, start of hospitalizationPeriod + 24 hours]
            and SkinExam.status in { 'final', 'amended', 'corrected' }
            and SkinExam.code in "Pressure Injury Stage 2, 3, 4 or Unstageable"
    Library Name Name
    HospitalHarmPressureInjuryFHIR Encounter with Stage 2, 3, 4 or Unstageable Pressure Injury POA
    define "Encounter with Stage 2, 3, 4 or Unstageable Pressure Injury POA":
      "Encounter with Stage 2, 3, 4, or Unstageable Pressure Injury Present on Admission by POA Indicator"
        union "Encounter with Stage 2, 3, 4 or Unstageable Pressure Injury POA by Skin Exam within 24 Hours"
    Library Name Name
    HospitalHarmPressureInjuryFHIR Encounter with Diagnosis of COVID19 Infection
    define "Encounter with Diagnosis of COVID19 Infection":
      "Encounter with Age 18 and Older" InpatientHospitalization
        where exists ( CQMCommon."EncounterDiagnosis" ( InpatientHospitalization ) ) EncounterDiag
          where EncounterDiag.code in "COVID 19"
    Library Name Name
    HospitalHarmPressureInjuryFHIR Denominator Exclusions
    define "Denominator Exclusions":
      "Encounter with Deep Tissue Pressure Injury POA"
        union "Encounter with Stage 2, 3, 4 or Unstageable Pressure Injury POA"
        union "Encounter with Diagnosis of COVID19 Infection"
    Library Name Name
    SupplementalDataElements SDE Race
    define "SDE Race":
      Patient.race R
        return Tuple {
          codes: R.ombCategory union R.detailed,
          display: R.text
        }
    Library Name Name
    HospitalHarmPressureInjuryFHIR SDE Race
    define "SDE Race":
      SDE."SDE Race"
    Library Name Name
    CQMCommon getCondition
    /*
    @description: Returns the Condition resource for the given reference
    */
    define fluent function getCondition(reference Reference):
      singleton from ([Condition] C where C.id = reference.reference.getId())
    Library Name Name
    QICoreCommon getId
    /*
    @description: Returns the tail of the given uri (i.e. everything after the last slash in the URI).
    @comment: This function can be used to determine the logical id of a given resource. It can be used in
    a single-server environment to trace references. However, this function does not attempt to resolve
    or distinguish the base of the given url, and so cannot be used safely in multi-server environments.
    */
    define fluent function getId(uri String):
      Last(Split(uri, '/'))
    Library Name Name
    FHIRHelpers ToString
    define function ToString(value uri): value.value
    Library Name Name
    CQMCommon HospitalizationWithObservation
    /*
    @description: Hospitalization with Observation returns the total interval from the start of any immediately prior emergency department visit through the observation visit to the discharge of the given encounter
    @deprecated: This function is deprecated. Use the fluent function `hospitalizationWithObservation()` instead.
    */
    define function "HospitalizationWithObservation"(TheEncounter Encounter ):
      TheEncounter Visit
      		let ObsVisit: Last([Encounter: "Observation Services"] LastObs
      				where LastObs.status = 'finished'
                and LastObs.period ends 1 hour or less on or before start of Visit.period
      				sort by end of period
      			),
      			VisitStart: Coalesce(start of ObsVisit.period, start of Visit.period),
      			EDVisit: Last([Encounter: "Emergency Department Visit"] LastED
      				where LastED.status = 'finished'
                and LastED.period ends 1 hour or less on or before VisitStart
      				sort by end of period
      			)
      		return Interval[Coalesce(start of EDVisit.period, VisitStart), end of Visit.period]
    Library Name Name
    FHIRHelpers ToCode
    /*
    @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
            }
    Library Name Name
    CQMCommon EncounterDiagnosis
    /*
    @description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter
    @deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead.
    */
    define function "EncounterDiagnosis"(Encounter Encounter ):
      Encounter.diagnosis D
    	return singleton from ([Condition] C where C.id = D.condition.reference.getId())