FHIR © HL7.org  |  Server Home  |  XIG Home  |  XIG Stats  |  Server Source  |  FHIR  

FHIR IG Statistics: Measure/CMS1017FHIRHHFI

Packagegov.healthit.ecqi.ecqms
Resource TypeMeasure
IdCMS1017FHIRHHFI
FHIR VersionR4
Sourcehttp://ecqi.healthit.gov/ecqms/https://build.fhir.org/ig/cqframework/ecqm-content-qicore-2025/Measure-CMS1017FHIRHHFI.html
URLhttps://madie.cms.gov/Measure/CMS1017FHIRHHFI
Version0.2.000
Statusactive
Date2025-07-07T18:39:11+00:00
NameCMS1017FHIRHHFI
TitleHospital Harm – Falls with InjuryFHIR
DescriptionThis ratio measure assesses the number of inpatient hospitalizations where at least one fall with a major or moderate injury occurs among the total qualifying inpatient hospital days for patients aged 18 years and older
CopyrightLimited 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. Mathematica disclaims all liability for use or accuracy of any third-party codes contained in the specifications. LOINC(R) copyright 2004-2024 Regenstrief Institute, Inc. This material contains SNOMED Clinical Terms(R) (SNOMED CT[R]) copyright 2004-2024 International Health Terminology Standards Development Organisation. ICD-10 copyright 2024 World Health Organization. All Rights Reserved.

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

Metadata
Title Hospital Harm – Falls with InjuryFHIR
Version 0.2.000
Short Name CMS1017FHIR
GUID (Version Independent) urn:uuid:6425d5e9-a54b-40e0-a07d-e6e17137871c
GUID (Version Specific) urn:uuid:b73e62a3-0cfc-450e-afff-c06e0e255672
CMS Identifier 1017FHIR
CMS Consensus Based Entity Identifier 4120e
Effective Period 2026-01-01 through 2026-12-31
Steward (Publisher) Centers for Medicare & Medicaid Services (CMS)
Developer Mathematica
Description

This ratio measure assesses the number of inpatient hospitalizations where at least one fall with a major or moderate injury occurs among the total qualifying inpatient hospital days for patients aged 18 years and older

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. Mathematica disclaims all liability for use or accuracy of any third-party codes contained in the specifications.

LOINC(R) copyright 2004-2024 Regenstrief Institute, Inc. This material contains SNOMED Clinical Terms(R) (SNOMED CT[R]) copyright 2004-2024 International Health Terminology Standards Development Organisation. ICD-10 copyright 2024 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].

Rationale

Inpatient falls are among the most common incidents reported in hospitals and can increase length of stay and patient costs. Due to the potential for serious harm associated with patient falls, “patient death or serious injury associated with a fall while being cared for in a health care setting” is considered a Serious Reportable Event by the National Quality Forum (NQF, 2019).

Falls (including unplanned or unintended descents to the floor) can result in patient injury ranging from minor abrasion or bruising to death as a result of injuries sustained from a fall. While major injuries (e.g., fractures, closed head injuries, internal bleeding) (Mintz et al., 2022) have the biggest impact on patient outcomes, 2008-2021 data findings from the 2022 Network of Patient Safety Databases (NPSD) demonstrated that 41.8 % of falls resulted in moderate injuries such as skin tear, avulsion, hematoma, significant bruising, dislocations and lacerations requiring suturing (AHRQ, 2022). Moderate injury is, as defined by the National Database of Nursing Quality Indicators (NDNQI), that resulted in suturing, application of steri-strips or skin glue, splinting, or muscle/joint strain (NDNQI, 2020). NPSD findings also demonstrated that mild to moderate level of harm represent 24.2.%, 0.4% - severe harm, and 0.1% - death (AHRQ, 2022; WHO, 2009).

By focusing on falls with major and moderate injuries, the goal of this hospital harm dQM is to raise awareness of fall rates and, ultimately, to improve patient safety by preventing falls with injury in all hospital patients. The purpose of measuring the rate of falls with major and moderate injury events is to improve hospitals’ practices for monitoring patients at high risk for falls with injury and, in so doing, to reduce the frequency of patient falls with injury.

Clinical Recommendation Statement

Certain protocols and prevention measures to reduce patient falls with injury include using fall risk assessment tools to gauge individual patient risk, implementing fall prevention protocols directed at individual patient risk factors, and implementing environmental rounds to assess and correct environmental fall hazards. Recommended clinical guidelines and practices to reduce falls and injuries from falls in hospitals support many prevention activities including implementing multifactorial interventions and tailoring interventions to individual patient's conditions and needs. The intent and desired outcome for this dQM is to work with existing and recommended falls prevention processes to track falls with injury, and aim to reduce rates of inpatient falls resulting in major injury.

Recommended falls prevention guidelines are:

  • Optimal Perioperative Management of the Geriatric Patient: Best Practices Guideline (ACS NSQIP/AGS, 2016)
  • Falls in older people: assessing risk and prevention (NICE, 2013)
  • Preventing falls and reducing injury from falls (4th edition) (RNAO, 2017)
  • Fall prevention in hospitals and nursing homes: Clinical practice guideline (Schoberer et al., 2022)
  • World guidelines for falls prevention and management for older adults: a global initiative, (Montero-Odasso et al., 2022)
Citation

CITATION - Mintz, J., Duprey, M. S., Zullo, A. R., Lee, Y., Kiel, D. P., Daiello, L. A., Rodriguez, K. E., Venkatesh, A. K., & Berry, S. D. (2022). Identification of Fall-Related Injuries in Nursing Home Residents Using Administrative Claims Data. The journals of gerontology. Series A, Biological sciences and medical sciences, 77(7), 1421–1429. https://doi.org/10.1093/gerona/glab274

Citation

CITATION - Mohanty, S., Rosenthal, R.A., Russell, M.M., Neuman, M.D., Ko, C.Y., & Esnaola, N.F. (2016). Optimal Perioperative Management of the Geriatric Patient: Best Practices Guideline from ACS NSQIP/AGS. Journal of the American College of Surgeons 222(5), 930-947. doi: 10.1016/j.jamcollsurg.2015.12.026

Citation

CITATION - Montero-Odasso, M., van der Velde, N., Martin, F. C., Petrovic, M., Tan, M. P., Ryg, J., Aguilar-Navarro, S., Alexander, N. B., Becker, C., Blain, H., Bourke, R., Cameron, I. D., Camicioli, R., Clemson, L., Close, J., Delbaere, K., Duan, L., Duque, G., Dyer, S. M., … Rixt Zijlstra, G. A. (2022). World guidelines for falls prevention and management for older adults: a global initiative. Age and Ageing, 51(9), 1–36. https://doi.org/10.1093/ageing/afac205

Citation

CITATION - National Quality Forum. Serious Reportable Events. http://www.qualityforum.org/topics/sres/serious_reportable_events.aspx. Accessed July 24, 2019

Citation

CITATION - Network of Patient Safety Databases Chartbook, 2022. Rockville, MD: Agency for Healthcare Research and Quality; September 2022. AHRQ Pub. No. 22-0051

Citation

CITATION - NICE. (2013). Falls in older people: assessing risk and prevention. London, UK

Citation

CITATION - Press Ganey Guidelines for Data Collection and Submission Patient Falls Indicator, January 2020

Citation

CITATION - RNAO. (2017). Preventing falls and reducing injury from falls (4th edition). Toronto, ON

Citation

CITATION - Schoberer, D., Breimaier, H. E., Zuschnegg, J., Findling, T., Schaffer, S., & Archan, T. (2022). Fall prevention in hospitals and nursing homes: Clinical practice guideline. Worldviews on Evidence-Based Nursing, Vol. 19. https://doi.org/10.1111/wvn.12571

Citation

CITATION - WHO. (2009). Conceptual Framework for the International Classification for Patient Safety, Version 1.1. https://apps.who.int/iris/bitstream/handle/10665/70882/WHO_IER_PSP_2010.2_eng.pdf

Guidance (Usage) Hospital days are measured in 24-hour periods starting from the time of arrival at the hospital (including time in the Emergency Department and or Observation). The number of days will be counted as whole numbers; any fractional periods are dropped. For example, an eligible encounter with a length of stay of 75 hours will be measured as 3 days (72 hours). This measure includes two measure observations used to calculate the ratio of the number of encounters with a fall over the total number of eligible hospital days. The ratio is reported as the rate of inpatient hospitalizations with falls with moderate or major injury per 1000 patient days. To express the rate of inpatient hospitalizations with falls with moderate or major injury per 1,000 patient days, the following calculation is applied post-production during implementation: (Total number of encounters with falls with moderate or major injury / Total number of eligible hospital days) x 1000 = rate. Example: 1 eligible encounter with a patient fall with moderate or major injury over 120 eligible days (1/120) x 1000 = 8.33. In ratio measures, both the Denominator and Numerator populations flow separately from the same Initial Population. Therefore, the same exclusion criteria must be applied to both the Denominator and Numerator to prevent excluded cases from being considered. This dQM 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: CMS1017v2. Please refer to the HL7 QI-Core Implementation Guide (https://hl7.org/fhir/us/qicore/STU6/) for more information on QI-Core and mapping recommendations from QDM to QI-Core STU 6 (https://hl7.org/fhir/us/qicore/STU6/qdm-to-qicore.html).
Measure Group (Rate) (ID: Group_1)
Basis Encounter
Scoring Ratio
Type Outcome
Rate Aggregation None
Improvement Notation decrease
Initial Population ID: InitialPopulation_1
Description:

Inpatient hospitalizations for patients aged 18 years and older with a length of stay less than or equal to 120 days that ends during the measurement period

Logic Definition: Initial Population
Denominator ID: Denominator_1
Description:

Equals Initial Population

Logic Definition: Denominator
Denominator Exclusion ID: DenominatorExclusion_1
Description:

Inpatient hospitalizations where the patient has a fall diagnosis present on admission.

Logic Definition: Denominator Exclusions
Numerator ID: Numerator_1
Description:

Inpatient hospitalizations where the patient has a fall that results in a major or moderate injury during the encounter. The diagnosis of a major or moderate injury must not be present on admission.

Logic Definition: Numerator
Numerator Exclusion ID: NumeratorExclusion_1
Description:

Inpatient hospitalizations where the patient has a fall diagnosis present on admission

Logic Definition: Numerator Exclusions
Measure Observation ID: MeasureObservation_1_1
Description:

Denominator Observation, associated with the Denominator: The total number of eligible days across all encounters which match the initial population/denominator criteria.

Logic Definition: Denominator Observation
Measure Observation ID: MeasureObservation_1_2
Description:

Numerator Observation, associated with the Numerator: The total number of inpatient hospitalizations where a fall with major or moderate injury occurred, across all eligible encounters.

Logic Definition: Numerator Observation
Supplemental Data Guidance For every patient evaluated by this measure also identify payer, race, ethnicity and sex
Supplemental Data Guidance Variables being collected for the development of baseline risk adjustment model include encounters with: Medications active on admission such as: - anticoagulants - antidepressants - antihypertensives - central nervous system depressant medications - diuretics - opioids Medications administered during the hospitalization, such as anticoagulants Diagnoses present on admission which may increase the risk for a fall with injury, such as: - abnormal weight loss or malnutrition - coagulation disorders - delirium, dementia, or other psychosis - depression - epilepsy - leukemia or lymphoma - liver disease (moderate to severe) - malignant bone disease - neurologic movement and related disorders - obesity - osteoporosis - peripheral neuropathy - stroke - suicide attempt Physical traits, such as body mass index (BMI) All encounter diagnoses along with their rank (e.g., 1 = principal, 2 = secondary) and present on admission (POA) indicators are being collected for the development of baseline risk adjustment model.
Supplemental Data Elements
Supplemental Data Element ID: sde-ethnicity
Usage Code: Supplemental Data
Description: SDE Ethnicity
Logic Definition: SDE Ethnicity
Supplemental Data Element ID: sde-payer
Usage Code: Supplemental Data
Description: SDE Payer
Logic Definition: SDE Payer
Supplemental Data Element ID: sde-race
Usage Code: Supplemental Data
Description: SDE Race
Logic Definition: SDE Race
Supplemental Data Element ID: sde-sex
Usage Code: Supplemental Data
Description: SDE Sex
Logic Definition: SDE Sex
Supplemental Data Element ID: risk-variable-body-mass-index-(bmi)
Usage Code: Risk Adjustment Factor
Description: Risk Variable Body Mass Index (BMI)
Logic Definition: Risk Variable Body Mass Index (BMI)
Supplemental Data Element ID: risk-variable-all-encounter-diagnoses-with-rank-and-poa-indication
Usage Code: Risk Adjustment Factor
Description: Risk Variable All Encounter Diagnoses with Rank and POA Indication
Logic Definition: Risk Variable All Encounter Diagnoses with Rank and POA Indication
Supplemental Data Element ID: risk-variable-encounter-with-abnormal-weight-loss-or-malnutrition-present-on-admission
Usage Code: Risk Adjustment Factor
Description: Risk Variable Encounter with Abnormal Weight Loss or Malnutrition Present on Admission
Logic Definition: Risk Variable Encounter with Abnormal Weight Loss or Malnutrition Present on Admission
Supplemental Data Element ID: risk-variable-encounter-with-anticoagulant-active-at-admission
Usage Code: Risk Adjustment Factor
Description: Risk Variable Encounter with Anticoagulant Active at Admission
Logic Definition: Risk Variable Encounter with Anticoagulant Active at Admission
Supplemental Data Element ID: risk-variable-encounter-with-anticoagulant-administration-during-encounter
Usage Code: Risk Adjustment Factor
Description: Risk Variable Encounter with Anticoagulant Administration During Encounter
Logic Definition: Risk Variable Encounter with Anticoagulant Administration During Encounter
Supplemental Data Element ID: risk-variable-encounter-with-antidepressant-active-at-admission
Usage Code: Risk Adjustment Factor
Description: Risk Variable Encounter with Antidepressant Active at Admission
Logic Definition: Risk Variable Encounter with Antidepressant Active at Admission
Supplemental Data Element ID: risk-variable-encounter-with-antihypertensive-active-at-admission
Usage Code: Risk Adjustment Factor
Description: Risk Variable Encounter with Antihypertensive Active at Admission
Logic Definition: Risk Variable Encounter with Antihypertensive Active at Admission
Supplemental Data Element ID: risk-variable-encounter-with-cns-depressant-active-at-admission
Usage Code: Risk Adjustment Factor
Description: Risk Variable Encounter with CNS Depressant Active at Admission
Logic Definition: Risk Variable Encounter with CNS Depressant Active at Admission
Supplemental Data Element ID: risk-variable-encounter-with-diuretic-active-at-admission
Usage Code: Risk Adjustment Factor
Description: Risk Variable Encounter with Diuretic Active at Admission
Logic Definition: Risk Variable Encounter with Diuretic Active at Admission
Supplemental Data Element ID: risk-variable-encounter-with-opioid-medication-active-at-admission
Usage Code: Risk Adjustment Factor
Description: Risk Variable Encounter with Opioid Medication Active at Admission
Logic Definition: Risk Variable Encounter with Opioid Medication Active at Admission
Supplemental Data Element ID: risk-variable-encounter-with-coagulation-disorder-present-on-admission
Usage Code: Risk Adjustment Factor
Description: Risk Variable Encounter with Coagulation Disorder Present on Admission
Logic Definition: Risk Variable Encounter with Coagulation Disorder Present on Admission
Supplemental Data Element ID: risk-variable-encounter-with-depression-present-on-admission
Usage Code: Risk Adjustment Factor
Description: Risk Variable Encounter with Depression Present on Admission
Logic Definition: Risk Variable Encounter with Depression Present on Admission
Supplemental Data Element ID: risk-variable-encounter-with-delirium-or-dementia-or-other-psychosis-present-on-admission
Usage Code: Risk Adjustment Factor
Description: Risk Variable Encounter with Delirium or Dementia or Other Psychosis Present on Admission
Logic Definition: Risk Variable Encounter with Delirium or Dementia or Other Psychosis Present on Admission
Supplemental Data Element ID: risk-variable-encounter-with-epilepsy-present-on-admission
Usage Code: Risk Adjustment Factor
Description: Risk Variable Encounter with Epilepsy Present on Admission
Logic Definition: Risk Variable Encounter with Epilepsy Present on Admission
Supplemental Data Element ID: risk-variable-encounter-with-leukemia-or-lymphoma-present-on-admission
Usage Code: Risk Adjustment Factor
Description: Risk Variable Encounter with Leukemia or Lymphoma Present on Admission
Logic Definition: Risk Variable Encounter with Leukemia or Lymphoma Present on Admission
Supplemental Data Element ID: risk-variable-encounter-with-liver-disease-moderate-to-severe-present-on-admission
Usage Code: Risk Adjustment Factor
Description: Risk Variable Encounter with Liver Disease Moderate to Severe Present on Admission
Logic Definition: Risk Variable Encounter with Liver Disease Moderate to Severe Present on Admission
Supplemental Data Element ID: risk-variable-encounter-with-malignant-bone-disease-present-on-admission
Usage Code: Risk Adjustment Factor
Description: Risk Variable Encounter with Malignant Bone Disease Present on Admission
Logic Definition: Risk Variable Encounter with Malignant Bone Disease Present on Admission
Supplemental Data Element ID: risk-variable-encounter-with-neurologic-disorder-present-on-admission
Usage Code: Risk Adjustment Factor
Description: Risk Variable Encounter with Neurologic Disorder Present on Admission
Logic Definition: Risk Variable Encounter with Neurologic Disorder Present on Admission
Supplemental Data Element ID: risk-variable-encounter-with-obesity-present-on-admission
Usage Code: Risk Adjustment Factor
Description: Risk Variable Encounter with Obesity Present on Admission
Logic Definition: Risk Variable Encounter with Obesity Present on Admission
Supplemental Data Element ID: risk-variable-encounter-with-osteoporosis-present-on-admission
Usage Code: Risk Adjustment Factor
Description: Risk Variable Encounter with Osteoporosis Present on Admission
Logic Definition: Risk Variable Encounter with Osteoporosis Present on Admission
Supplemental Data Element ID: risk-variable-encounter-with-peripheral-neuropathy-present-on-admission
Usage Code: Risk Adjustment Factor
Description: Risk Variable Encounter with Peripheral Neuropathy Present on Admission
Logic Definition: Risk Variable Encounter with Peripheral Neuropathy Present on Admission
Supplemental Data Element ID: risk-variable-encounter-with-stroke-present-on-admission
Usage Code: Risk Adjustment Factor
Description: Risk Variable Encounter with Stroke Present on Admission
Logic Definition: Risk Variable Encounter with Stroke Present on Admission
Supplemental Data Element ID: risk-variable-encounter-with-suicide-attempt
Usage Code: Risk Adjustment Factor
Description: Risk Variable Encounter with Suicide Attempt
Logic Definition: Risk Variable Encounter with Suicide Attempt
Measure Logic
Primary Library CMS1017FHIRHHFI
Contents Population Criteria
Logic Definitions
Terminology
Dependencies
Data Requirements
Population Criteria
Measure Group (Rate) (ID: Group_1)
Initial Population
define "Initial Population":
  "Qualifying Encounter"
Denominator
define "Denominator":
  "Initial Population"
Denominator Exclusion
define "Denominator Exclusions":
  "Encounter With A Fall Present On Admission"
Numerator
define "Numerator":
  "Encounter Where A Fall And Major Injury Occurred Not POA"
    union "Encounter Where A Fall And Moderate Injury Occurred Not POA"
Numerator Exclusion
define "Numerator Exclusions":
  "Encounter With A Fall Present On Admission"
Measure Observation
define function "Denominator Observation"(QualifyingEncounter Encounter):
  duration in days of QualifyingEncounter.hospitalizationWithObservation ( )
Measure Observation
define function "Numerator Observation"(QualifyingEncounter Encounter):
  Count("Numerator" FallsEncounter
      where FallsEncounter.period ends during QualifyingEncounter.hospitalizationWithObservation()
  )
Logic Definitions
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 Race":
  Patient.race R
    return Tuple {
      codes: R.ombCategory union R.detailed,
      display: R.text
    }
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 Ethnicity":
  Patient.ethnicity E
    return Tuple {
      codes: { E.ombCategory } union E.detailed,
      display: E.text
    }
Logic Definition Library Name: CumulativeMedicationDuration
define fluent function medicationRequestPeriod(Request "MedicationRequest"):
  Request R
    let
      dosage: singleton from R.dosageInstruction,
      doseAndRate: singleton from dosage.doseAndRate,
      timing: dosage.timing,
      frequency: Coalesce(timing.repeat.frequencyMax, timing.repeat.frequency),
      period: Quantity(timing.repeat.period, timing.repeat.periodUnit),
      doseRange: doseAndRate.dose,
      doseQuantity: doseAndRate.dose,
      dose: Coalesce(end of doseRange, doseQuantity),
      dosesPerDay: Coalesce(ToDaily(frequency, period), Count(timing.repeat.timeOfDay), 1.0),
      boundsPeriod: timing.repeat.bounds as Interval<DateTime>,
      daysSupply: (convert R.dispenseRequest.expectedSupplyDuration to days).value,
      quantity: R.dispenseRequest.quantity,
      refills: Coalesce(R.dispenseRequest.numberOfRepeatsAllowed, 0),
      startDate:
        Coalesce(
          date from start of boundsPeriod,
          date from R.authoredOn,
          date from start of R.dispenseRequest.validityPeriod
        ),
      totalDaysSupplied: Coalesce(daysSupply, quantity.value / (dose.value * dosesPerDay)) * (1 + refills)
    return
      if startDate is not null and totalDaysSupplied is not null then
        Interval[startDate, startDate + Quantity(totalDaysSupplied - 1, 'day') ]
      else if startDate is not null and boundsPeriod."high" is not null then
        Interval[startDate, date from end of boundsPeriod]
      else
        null
Logic Definition Library Name: CumulativeMedicationDuration
/**********************************************************************/
/* Functions in this region are copied from opioid-mme-r4             */
/**********************************************************************/

define function Quantity(value Decimal, unit String):
  if value is not null then
    System.Quantity { value: value, unit: unit }
  else
    null
Logic Definition Library Name: CumulativeMedicationDuration
/*
 Goal is to get to number of days
 Two broad approaches to the calculation:
  1) Based on supply and frequency, calculate the number of expected days the medication will cover/has covered
  2) Based on relevant period, determine a covered interval and calculate the length of that interval in days
This topic covers several use cases and illustrates how to calculate Cumulative
Medication Duration for each type of medication resource using the supply and
frequency approach.
*/

/*
  For the first approach, we need to get from frequency to a frequency/day
  So we define ToDaily
*/

/*
  Calculates daily frequency given frequency within a period
*/
define function ToDaily(frequency System.Integer, period System.Quantity):
  case period.unit
    when 'h' then frequency * (24.0 / period.value)
    when 'min' then frequency * (24.0 / period.value) * 60
    when 's' then frequency * (24.0 / period.value) * 60 * 60
    when 'd' then frequency * (24.0 / period.value) / 24
    when 'wk' then frequency * (24.0 / period.value) / (24 * 7)
    when 'mo' then frequency * (24.0 / period.value) / (24 * 30) /* assuming 30 days in month */
    when 'a' then frequency * (24.0 / period.value) / (24 * 365) /* assuming 365 days in year */
    when 'hour' then frequency * (24.0 / period.value)
    when 'minute' then frequency * (24.0 / period.value) * 60
    when 'second' then frequency * (24.0 / period.value) * 60 * 60
    when 'day' then frequency * (24.0 / period.value) / 24
    when 'week' then frequency * (24.0 / period.value) / (24 * 7)
    when 'month' then frequency * (24.0 / period.value) / (24 * 30) /* assuming 30 days in month */
    when 'year' then frequency * (24.0 / period.value) / (24 * 365) /* assuming 365 days in year */
    when 'hours' then frequency * (24.0 / period.value)
    when 'minutes' then frequency * (24.0 / period.value) * 60
    when 'seconds' then frequency * (24.0 / period.value) * 60 * 60
    when 'days' then frequency * (24.0 / period.value) / 24
    when 'weeks' then frequency * (24.0 / period.value) / (24 * 7)
    when 'months' then frequency * (24.0 / period.value) / (24 * 30) /* assuming 30 days in month */
    when 'years' then frequency * (24.0 / period.value) / (24 * 365) /* assuming 365 days in year */
    else Message(null, true, 'CMDLogic.ToDaily.UnknownUnit', ErrorLevel, 'Unknown unit ' & period.unit)
  end
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 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, '/'))
Logic Definition Library Name: QICoreCommon
/*
@description: Returns true if the given MedicationRequest has a category of Community
*/
define fluent function isCommunity(medicationRequest Choice<MedicationRequest, MedicationNotRequested>):
  exists (medicationRequest.category C
    where C ~ Community
  )
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: 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: FHIRHelpers
define function ToString(value uri): value.value
Logic Definition Library Name: CQMCommon
define "Inpatient Encounter":
  [Encounter: "Encounter Inpatient"] EncounterInpatient
    where EncounterInpatient.status = 'finished'
      and EncounterInpatient.period ends during day of "Measurement Period"
Logic Definition Library Name: CQMCommon
/*
@description: Calculates the difference in calendar days between the start and end of the given interval.
*/
define fluent function lengthInDays(Value Interval<DateTime> ):
  difference in days between start of Value and end of Value
Logic Definition Library Name: CQMCommon
/*
@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
*/
define fluent 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]
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: CMS1017FHIRHHFI
define "Qualifying Encounter":
  CQMCommon."Inpatient Encounter" InpatientEncounter
    where InpatientEncounter.hospitalizationWithObservation ( ).lengthInDays ( ) <= 120
      and AgeInYearsAt(date from start of InpatientEncounter.period) >= 18
Logic Definition Library Name: CMS1017FHIRHHFI
define "Risk Variable Encounter with Osteoporosis Present on Admission":
  "Qualifying Encounter" InpatientEncounter
    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( "Osteoporosis" )
Logic Definition Library Name: CMS1017FHIRHHFI
define "Risk Variable Encounter with Coagulation Disorder Present on Admission":
  "Qualifying Encounter" InpatientEncounter
    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( "Coagulation Disorders" )
Logic Definition Library Name: CMS1017FHIRHHFI
define "Risk Variable Encounter with Antidepressant Active at Admission":
  "Qualifying Encounter" InpatientEncounter
    with ["MedicationRequest": "Antidepressants"] AntidepressantMed
      such that AntidepressantMed.status in { 'active', 'completed' }
        and ( AntidepressantMed.intent = 'order'
            or ( AntidepressantMed.intent = 'plan'
                and AntidepressantMed.subject.reference.getId ( ) = Patient.id
            )
        )
        and AntidepressantMed.isCommunity ( )
        and AntidepressantMed.medicationRequestPeriod ( ) overlaps before InpatientEncounter.period
Logic Definition Library Name: CMS1017FHIRHHFI
define "Risk Variable All Encounter Diagnoses with Rank and POA Indication":
  from
    "Qualifying Encounter" InpatientEncounter
    let claim: ( [Claim] C
        where C.status = 'active'
          and C.use = 'claim'
          and exists ( C.item ClaimItem
              where ClaimItem.encounter.references ( InpatientEncounter )
          )
    ),
    claimItem: ( claim.item ClaimItem
        where ClaimItem.encounter.references ( InpatientEncounter )
    )
    return Tuple {
      encounterId: InpatientEncounter.id,
      diagnosis: claim.diagnosis,
      rank: claim.diagnosis.sequence,
      POA: claim.diagnosis Diag
        where Diag.onAdmission in "Present on Admission or Clinically Undetermined"
          or Diag.onAdmission in "Not Present On Admission or Documentation Insufficient to Determine"
    }
Logic Definition Library Name: CMS1017FHIRHHFI
define "Risk Variable Encounter with Leukemia or Lymphoma Present on Admission":
  "Qualifying Encounter" InpatientEncounter
    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( "Leukemia or Lymphoma" )
Logic Definition Library Name: CMS1017FHIRHHFI
define "Risk Variable Encounter with Obesity Present on Admission":
  "Qualifying Encounter" InpatientEncounter
    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( "Obesity" )
Logic Definition Library Name: CMS1017FHIRHHFI
define "Risk Variable Encounter with Peripheral Neuropathy Present on Admission":
  "Qualifying Encounter" InpatientEncounter
    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( "Peripheral Neuropathy" )
Logic Definition Library Name: CMS1017FHIRHHFI
define "Risk Variable Encounter with Delirium or Dementia or Other Psychosis Present on Admission":
  "Qualifying Encounter" InpatientEncounter
    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( "Delirium, Dementia, and Other Psychoses" )
Logic Definition Library Name: CMS1017FHIRHHFI
define "Risk Variable Encounter with Suicide Attempt":
  "Qualifying Encounter" InpatientEncounter
    where InpatientEncounter.encountersDiagnosis ( ).code in "Suicide Attempt"
Logic Definition Library Name: CMS1017FHIRHHFI
define "SDE Payer":
  SDE."SDE Payer"
Logic Definition Library Name: CMS1017FHIRHHFI
define "Risk Variable Encounter with Liver Disease Moderate to Severe Present on Admission":
  "Qualifying Encounter" InpatientEncounter
    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( "Liver Disease Moderate to Severe" )
Logic Definition Library Name: CMS1017FHIRHHFI
define "Initial Population":
  "Qualifying Encounter"
Logic Definition Library Name: CMS1017FHIRHHFI
define "Risk Variable Encounter with Anticoagulant Administration During Encounter":
  "Qualifying Encounter" InpatientEncounter
    with ["MedicationAdministration": "Anticoagulants for All Indications"] Anticoagulants
      such that Anticoagulants.effective.toInterval ( ) starts during InpatientEncounter.hospitalizationWithObservation ( )
        and Anticoagulants.status in { 'in-progress', 'completed' }
Logic Definition Library Name: CMS1017FHIRHHFI
define "Risk Variable Encounter with Neurologic Disorder Present on Admission":
  "Qualifying Encounter" InpatientEncounter
    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( "Neurologic Movement and Related Disorders" )
Logic Definition Library Name: CMS1017FHIRHHFI
define "Risk Variable Encounter with Abnormal Weight Loss or Malnutrition Present on Admission":
  "Qualifying Encounter" InpatientEncounter
    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( "Abnormal Weight Loss" )
      or InpatientEncounter.hasDiagnosisPresentOnAdmission ( "Malnutrition" )
Logic Definition Library Name: CMS1017FHIRHHFI
define "Risk Variable Encounter with Anticoagulant Active at Admission":
  "Qualifying Encounter" InpatientEncounter
    with ["MedicationRequest": "Anticoagulants for All Indications"] Anticoagulants
      such that Anticoagulants.status in { 'active', 'completed' }
        and ( Anticoagulants.intent = 'order'
            or ( Anticoagulants.intent = 'plan'
                and Anticoagulants.subject.reference.getId ( ) = Patient.id
            )
        )
        and Anticoagulants.isCommunity ( )
        and Anticoagulants.medicationRequestPeriod ( ) overlaps before InpatientEncounter.period
Logic Definition Library Name: CMS1017FHIRHHFI
define "Risk Variable Body Mass Index (BMI)":
  from
    ["USCoreBMIProfile"] BMI
    with "Qualifying Encounter" InpatientEncounter
      such that BMI.effective.toInterval ( ) starts during InpatientEncounter.hospitalizationWithObservation ( )
        and BMI.value is not null
        and BMI.status in { 'final', 'amended', 'corrected' }
    return BMI.value as Quantity
Logic Definition Library Name: CMS1017FHIRHHFI
define "Risk Variable Encounter with Depression Present on Admission":
  "Qualifying Encounter" InpatientEncounter
    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( "Depression" )
Logic Definition Library Name: CMS1017FHIRHHFI
define "Risk Variable Encounter with Epilepsy Present on Admission":
  "Qualifying Encounter" InpatientEncounter
    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( "Epilepsy" )
Logic Definition Library Name: CMS1017FHIRHHFI
define "Risk Variable Encounter with Diuretic Active at Admission":
  "Qualifying Encounter" InpatientEncounter
    with ["MedicationRequest": "Diuretics"] DiureticMed
      such that DiureticMed.status in { 'active', 'completed' }
        and ( DiureticMed.intent = 'order'
            or ( DiureticMed.intent = 'plan'
                and DiureticMed.subject.reference.getId ( ) = Patient.id
            )
        )
        and DiureticMed.isCommunity ( )
        and DiureticMed.medicationRequestPeriod ( ) overlaps before InpatientEncounter.period
Logic Definition Library Name: CMS1017FHIRHHFI
define "Risk Variable Encounter with CNS Depressant Active at Admission":
  "Qualifying Encounter" InpatientEncounter
    with ["MedicationRequest": "Central Nervous System Depressants"] CNSMed
      such that CNSMed.status in { 'active', 'completed' }
        and ( CNSMed.intent = 'order'
            or ( CNSMed.intent = 'plan'
                and CNSMed.subject.reference.getId ( ) = Patient.id
            )
        )
        and CNSMed.isCommunity ( )
        and CNSMed.medicationRequestPeriod ( ) overlaps before InpatientEncounter.period
Logic Definition Library Name: CMS1017FHIRHHFI
define "SDE Race":
  SDE."SDE Race"
Logic Definition Library Name: CMS1017FHIRHHFI
define "Risk Variable Encounter with Malignant Bone Disease Present on Admission":
  "Qualifying Encounter" InpatientEncounter
    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( "Malignant Bone Disease" )
Logic Definition Library Name: CMS1017FHIRHHFI
define "SDE Sex":
  SDE."SDE Sex"
Logic Definition Library Name: CMS1017FHIRHHFI
define "Risk Variable Encounter with Antihypertensive Active at Admission":
  "Qualifying Encounter" InpatientEncounter
    with ["MedicationRequest": "Antihypertensives"] BPMed
      such that BPMed.status in { 'active', 'completed' }
        and ( BPMed.intent = 'order'
            or ( BPMed.intent = 'plan'
                and BPMed.subject.reference.getId ( ) = Patient.id
            )
        )
        and BPMed.isCommunity ( )
        and BPMed.medicationRequestPeriod ( ) overlaps before InpatientEncounter.period
Logic Definition Library Name: CMS1017FHIRHHFI
define "Risk Variable Encounter with Opioid Medication Active at Admission":
  "Qualifying Encounter" InpatientEncounter
    with ["MedicationRequest": "Opioids"] OpioidMed
      such that OpioidMed.status in { 'active', 'completed' }
        and ( OpioidMed.intent = 'order'
            or ( OpioidMed.intent = 'plan'
                and OpioidMed.subject.reference.getId ( ) = Patient.id
            )
        )
        and OpioidMed.isCommunity ( )
        and OpioidMed.medicationRequestPeriod ( ) overlaps before InpatientEncounter.period
Logic Definition Library Name: CMS1017FHIRHHFI
define "Encounter With A Fall Diagnosis":
  "Qualifying Encounter" QualifyingEncounter
    where QualifyingEncounter.reasonCode in "Inpatient Falls"
      or QualifyingEncounter.encountersDiagnosis ( ).code in "Inpatient Falls"
Logic Definition Library Name: CMS1017FHIRHHFI
define "Encounter With A Fall Event":
  "Qualifying Encounter" InpatientEncounter
    with [AdverseEvent: "Inpatient Falls"] FallsDocumentation
      such that Coalesce(FallsDocumentation.date, FallsDocumentation.recordedDate) during InpatientEncounter.hospitalizationWithObservation ( )
Logic Definition Library Name: CMS1017FHIRHHFI
define "Encounter Where A Fall Occurred":
  "Encounter With A Fall Diagnosis"
    union "Encounter With A Fall Event"
Logic Definition Library Name: CMS1017FHIRHHFI
define "Encounter With A Fall Not Present On Admission":
  "Encounter Where A Fall Occurred" InpatientEncounter
    where InpatientEncounter.hasDiagnosisNotPresentOnAdmissionOrNull ( "Inpatient Falls" )
Logic Definition Library Name: CMS1017FHIRHHFI
define "Encounter Where A Fall And Major Injury Occurred Not POA":
  "Encounter With A Fall Not Present On Admission" FallOccurred
    where exists ( ( FallOccurred.claimDiagnosis ( ) ) MajorFallOccurred
        where MajorFallOccurred.onAdmission is null
          or MajorFallOccurred.onAdmission in "Not Present On Admission or Documentation Insufficient to Determine"
            and ( MajorFallOccurred.diagnosis in "Major Injuries"
                or MajorFallOccurred.diagnosis.getCondition ( ).code in "Major Injuries"
            )
    )
Logic Definition Library Name: CMS1017FHIRHHFI
define "Encounter Where A Fall And Moderate Injury Occurred Not POA":
  "Encounter With A Fall Not Present On Admission" FallOccurred
    where exists ( ( FallOccurred.claimDiagnosis ( ) ) ModerateFallOccurred
        where ModerateFallOccurred.onAdmission is null
          or ModerateFallOccurred.onAdmission in "Not Present On Admission or Documentation Insufficient to Determine"
            and ( ModerateFallOccurred.diagnosis in "Moderate Injuries"
                or ModerateFallOccurred.diagnosis.getCondition ( ).code in "Moderate Injuries"
            )
    )
Logic Definition Library Name: CMS1017FHIRHHFI
define "Numerator":
  "Encounter Where A Fall And Major Injury Occurred Not POA"
    union "Encounter Where A Fall And Moderate Injury Occurred Not POA"
Logic Definition Library Name: CMS1017FHIRHHFI
define "Denominator":
  "Initial Population"
Logic Definition Library Name: CMS1017FHIRHHFI
define "Encounter With A Fall Present On Admission":
  "Qualifying Encounter" InpatientEncounter
    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( "Inpatient Falls" )
Logic Definition Library Name: CMS1017FHIRHHFI
define "Numerator Exclusions":
  "Encounter With A Fall Present On Admission"
Logic Definition Library Name: CMS1017FHIRHHFI
define "SDE Ethnicity":
  SDE."SDE Ethnicity"
Logic Definition Library Name: CMS1017FHIRHHFI
define "Denominator Exclusions":
  "Encounter With A Fall Present On Admission"
Logic Definition Library Name: CMS1017FHIRHHFI
define "Risk Variable Encounter with Stroke Present on Admission":
  "Qualifying Encounter" InpatientEncounter
    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( "Stroke" )
Logic Definition Library Name: CMS1017FHIRHHFI
define fluent function hasDiagnosisPresentOnAdmission(encounter Encounter, diagnosisValueSet ValueSet):
  exists ( encounter InptEncounter
      let claim: ( [Claim] Claims
          where Claims.status = 'active'
            and Claims.use = 'claim'
            and exists ( Claims.item ClaimsItem
                where ClaimsItem.encounter.references ( InptEncounter )
            )
      ),
      claimItem: ( claim.item ClaimsItem
          where ClaimsItem.encounter.references ( InptEncounter )
      )
      return claim.diagnosis ClaimsDiag
        where ClaimsDiag.sequence in claimItem.diagnosisSequence
          and ClaimsDiag.onAdmission in "Present on Admission or Clinically Undetermined"
          and ClaimsDiag.diagnosis in diagnosisValueSet
  )
Logic Definition Library Name: CMS1017FHIRHHFI
define fluent function encountersDiagnosis(Encounter Encounter):
  // There is a problem in the CQMCommon fluent function 'encounterDiagnosis' wherein the union operation isn't working as used.
  // This function fixes that usage, but should be considered temporary until the library function works properly   
  
  
  Encounter.reasonReference EncDiag
    return singleton from ( ( [ConditionEncounterDiagnosis] ConditionED
        union [ConditionProblemsHealthConcerns] ConditionPHC ) Cond
        where EncDiag.references ( Cond.id )
    )
Logic Definition Library Name: CMS1017FHIRHHFI
define function "Denominator Observation"(QualifyingEncounter Encounter):
  duration in days of QualifyingEncounter.hospitalizationWithObservation ( )
Logic Definition Library Name: CMS1017FHIRHHFI
define fluent function hasDiagnosisNotPresentOnAdmissionOrNull(encounter Encounter, diagnosisValueSet ValueSet):
  exists ( encounter InptEncounter
      let claim: ( [Claim] Claims
          where Claims.status = 'active'
            and Claims.use = 'claim'
            and exists ( Claims.item ClaimsItem
                where ClaimsItem.encounter.references ( InptEncounter )
            )
      ),
      claimItem: ( claim.item ClaimsItem
          where ClaimsItem.encounter.references ( InptEncounter )
      )
      return claim.diagnosis ClaimsDiag
        where ClaimsDiag.sequence in claimItem.diagnosisSequence
          and ClaimsDiag.onAdmission is null
          or ClaimsDiag.onAdmission in "Not Present On Admission or Documentation Insufficient to Determine"
            and ClaimsDiag.diagnosis in diagnosisValueSet
  )
Logic Definition Library Name: CMS1017FHIRHHFI
define function "Numerator Observation"(QualifyingEncounter Encounter):
  Count("Numerator" FallsEncounter
      where FallsEncounter.period ends during QualifyingEncounter.hospitalizationWithObservation()
  )
Terminology
Code System Description: Code system MedicationRequestCategory
Resource: MedicationRequest Category Codes
Canonical URL: http://terminology.hl7.org/CodeSystem/medicationrequest-category
Code System Description: Code system SNOMEDCT
Resource: SNOMED CT (all versions)
Canonical URL: http://snomed.info/sct
Value Set Description: Value set Encounter Inpatient
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307
Value Set Description: Value set Observation Services
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143
Value Set Description: Value set Emergency Department Visit
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
Value Set Description: Value set Present on Admission or Clinically Undetermined
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.197
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.197
Value Set Description: Value set Osteoporosis
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1200.147
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1200.147
Value Set Description: Value set Coagulation Disorders
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.23
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.23
Value Set Description: Value set Antidepressants
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.163
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.163
Value Set Description: Value set Not Present On Admission or Documentation Insufficient to Determine
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.198
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.198
Value Set Description: Value set Leukemia or Lymphoma
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.136
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.136
Value Set Description: Value set Obesity
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.162
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.162
Value Set Description: Value set Peripheral Neuropathy
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.175
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.175
Value Set Description: Value set Delirium, Dementia, and Other Psychoses
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.168
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.168
Value Set Description: Value set Suicide Attempt
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.130
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.130
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
Value Set Description: Value set Liver Disease Moderate to Severe
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.137
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.137
Value Set Description: Value set Anticoagulants for All Indications
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.22
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.22
Value Set Description: Value set Neurologic Movement and Related Disorders
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.174
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.174
Value Set Description: Value set Abnormal Weight Loss
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1258.2
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1258.2
Value Set Description: Value set Malnutrition
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1272.1
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1272.1
Value Set Description: Value set Depression
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.169
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.169
Value Set Description: Value set Epilepsy
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.171
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.171
Value Set Description: Value set Diuretics
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.170
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.170
Value Set Description: Value set Central Nervous System Depressants
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.134
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.134
Value Set Description: Value set Malignant Bone Disease
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.24
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.24
Value Set Description: Value set Antihypertensives
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.164
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.164
Value Set Description: Value set Opioids
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.120
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.120
Value Set Description: Value set Inpatient Falls
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.171
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.171
Value Set Description: Value set Major Injuries
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.120
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.120
Value Set Description: Value set Moderate Injuries
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.205
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.205
Value Set Description: Value set Stroke
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.176
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.176
Direct Reference Code Display: Community
Code: community
System: http://terminology.hl7.org/CodeSystem/medicationrequest-category
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
Dependencies
Dependency Description: Library CQMCommon
Resource: CQMCommonversion: null4.1.000)
Canonical URL: https://madie.cms.gov/Library/CQMCommon|4.1.000
Dependency Description: Library FHIRHelpers
Resource: FHIRHelpersversion: null4.4.000)
Canonical URL: https://madie.cms.gov/Library/FHIRHelpers|4.4.000
Dependency Description: Library QICoreCommon
Resource: QICoreCommonversion: null4.0.000)
Canonical URL: https://madie.cms.gov/Library/QICoreCommon|4.0.000
Dependency Description: Library CMD
Resource: CumulativeMedicationDurationversion: null6.0.000)
Canonical URL: https://madie.cms.gov/Library/CumulativeMedicationDuration|6.0.000
Dependency Description: Library SDE
Resource: SupplementalDataElementsversion: null5.1.000)
Canonical URL: https://madie.cms.gov/Library/SupplementalDataElements|5.1.000
Data Requirements
Data Requirement Type: Encounter
Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter
Must Support Elements: type, status, status.value, period
Code Filter(s):
Path: type
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143
Data Requirement Type: Encounter
Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter
Must Support Elements: type, status, status.value, period
Code Filter(s):
Path: type
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
Data Requirement Type: Encounter
Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter
Must Support Elements: type, status, status.value, period, id, id.value, reasonCode
Code Filter(s):
Path: type
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307
Data Requirement Type: Patient
Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient
Must Support Elements: id, id.value, url, extension
Data Requirement Type: Resource
Profile(s): 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: MedicationRequest
Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest
Must Support Elements: medication, dosageInstruction, dispenseRequest, dispenseRequest.expectedSupplyDuration, dispenseRequest.quantity, dispenseRequest.numberOfRepeatsAllowed, dispenseRequest.numberOfRepeatsAllowed.value, authoredOn, authoredOn.value, dispenseRequest.validityPeriod, status, status.value, intent, intent.value, subject, subject.reference, subject.reference.value
Code Filter(s):
Path: medication
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.163
Data Requirement Type: MedicationRequest
Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest
Must Support Elements: medication, dosageInstruction, dispenseRequest, dispenseRequest.expectedSupplyDuration, dispenseRequest.quantity, dispenseRequest.numberOfRepeatsAllowed, dispenseRequest.numberOfRepeatsAllowed.value, authoredOn, authoredOn.value, dispenseRequest.validityPeriod, status, status.value, intent, intent.value, subject, subject.reference, subject.reference.value
Code Filter(s):
Path: medication
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.22
Data Requirement Type: MedicationRequest
Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest
Must Support Elements: medication, dosageInstruction, dispenseRequest, dispenseRequest.expectedSupplyDuration, dispenseRequest.quantity, dispenseRequest.numberOfRepeatsAllowed, dispenseRequest.numberOfRepeatsAllowed.value, authoredOn, authoredOn.value, dispenseRequest.validityPeriod, status, status.value, intent, intent.value, subject, subject.reference, subject.reference.value
Code Filter(s):
Path: medication
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.170
Data Requirement Type: MedicationRequest
Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest
Must Support Elements: medication, dosageInstruction, dispenseRequest, dispenseRequest.expectedSupplyDuration, dispenseRequest.quantity, dispenseRequest.numberOfRepeatsAllowed, dispenseRequest.numberOfRepeatsAllowed.value, authoredOn, authoredOn.value, dispenseRequest.validityPeriod, status, status.value, intent, intent.value, subject, subject.reference, subject.reference.value
Code Filter(s):
Path: medication
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.134
Data Requirement Type: MedicationRequest
Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest
Must Support Elements: medication, dosageInstruction, dispenseRequest, dispenseRequest.expectedSupplyDuration, dispenseRequest.quantity, dispenseRequest.numberOfRepeatsAllowed, dispenseRequest.numberOfRepeatsAllowed.value, authoredOn, authoredOn.value, dispenseRequest.validityPeriod, status, status.value, intent, intent.value, subject, subject.reference, subject.reference.value
Code Filter(s):
Path: medication
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.164
Data Requirement Type: MedicationRequest
Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest
Must Support Elements: medication, dosageInstruction, dispenseRequest, dispenseRequest.expectedSupplyDuration, dispenseRequest.quantity, dispenseRequest.numberOfRepeatsAllowed, dispenseRequest.numberOfRepeatsAllowed.value, authoredOn, authoredOn.value, dispenseRequest.validityPeriod, status, status.value, intent, intent.value, subject, subject.reference, subject.reference.value
Code Filter(s):
Path: medication
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.120
Data Requirement Type: MedicationRequest
Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest
Must Support Elements: medication.reference.value, dosageInstruction, dispenseRequest, dispenseRequest.expectedSupplyDuration, dispenseRequest.quantity, dispenseRequest.numberOfRepeatsAllowed, dispenseRequest.numberOfRepeatsAllowed.value, authoredOn, authoredOn.value, dispenseRequest.validityPeriod, status, status.value, intent, intent.value, subject, subject.reference, subject.reference.value
Data Requirement Type: Medication
Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication
Must Support Elements: id.value, code
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: 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
Data Requirement Type: MedicationAdministration
Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationadministration
Must Support Elements: medication, effective, status, status.value
Code Filter(s):
Path: medication
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.22
Data Requirement Type: MedicationAdministration
Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationadministration
Must Support Elements: medication.reference.value, effective, status, status.value
Data Requirement Type: Observation
Profile(s): http://hl7.org/fhir/us/core/StructureDefinition/us-core-bmi
Must Support Elements: effective, value, status, status.value
Data Requirement Type: AdverseEvent
Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-adverseevent
Must Support Elements: event, date, date.value, recordedDate, recordedDate.value
Code Filter(s):
Path: event
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.171
Generated using version 0.4.8 of the sample-content-ig Liquid templates

Source

{
  "resourceType": "Measure",
  "id": "CMS1017FHIRHHFI",
  "meta": {
    "profile": [
      "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablemeasure",
      "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm",
      "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/publishable-measure-cqfm",
      "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/executable-measure-cqfm",
      "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cql-measure-cqfm",
      "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/elm-measure-cqfm",
      "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/ratio-measure-cqfm"
    ]
  },
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "contained": [
    {
      "resourceType": "Library",
      "id": "effective-data-requirements",
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding": {
            "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
            "code": "community",
            "display": "Community"
          }
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding": {
            "system": "http://snomed.info/sct",
            "code": "248153007",
            "display": "Male (finding)"
          }
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding": {
            "system": "http://snomed.info/sct",
            "code": "248152002",
            "display": "Female (finding)"
          }
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CQMCommon"
            },
            {
              "url": "name",
              "valueString": "Inpatient Encounter"
            },
            {
              "url": "statement",
              "valueString": "define \"Inpatient Encounter\":\n  [Encounter: \"Encounter Inpatient\"] EncounterInpatient\n    where EncounterInpatient.status = 'finished'\n      and EncounterInpatient.period ends during day of \"Measurement Period\""
            },
            {
              "url": "displaySequence",
              "valueInteger": 0
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Qualifying Encounter"
            },
            {
              "url": "statement",
              "valueString": "define \"Qualifying Encounter\":\n  CQMCommon.\"Inpatient Encounter\" InpatientEncounter\n    where InpatientEncounter.hospitalizationWithObservation ( ).lengthInDays ( ) <= 120\n      and AgeInYearsAt(date from start of InpatientEncounter.period) >= 18"
            },
            {
              "url": "displaySequence",
              "valueInteger": 1
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Risk Variable Encounter with Osteoporosis Present on Admission"
            },
            {
              "url": "statement",
              "valueString": "define \"Risk Variable Encounter with Osteoporosis Present on Admission\":\n  \"Qualifying Encounter\" InpatientEncounter\n    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( \"Osteoporosis\" )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 2
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Risk Variable Encounter with Coagulation Disorder Present on Admission"
            },
            {
              "url": "statement",
              "valueString": "define \"Risk Variable Encounter with Coagulation Disorder Present on Admission\":\n  \"Qualifying Encounter\" InpatientEncounter\n    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( \"Coagulation Disorders\" )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 3
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Risk Variable Encounter with Antidepressant Active at Admission"
            },
            {
              "url": "statement",
              "valueString": "define \"Risk Variable Encounter with Antidepressant Active at Admission\":\n  \"Qualifying Encounter\" InpatientEncounter\n    with [\"MedicationRequest\": \"Antidepressants\"] AntidepressantMed\n      such that AntidepressantMed.status in { 'active', 'completed' }\n        and ( AntidepressantMed.intent = 'order'\n            or ( AntidepressantMed.intent = 'plan'\n                and AntidepressantMed.subject.reference.getId ( ) = Patient.id\n            )\n        )\n        and AntidepressantMed.isCommunity ( )\n        and AntidepressantMed.medicationRequestPeriod ( ) overlaps before InpatientEncounter.period"
            },
            {
              "url": "displaySequence",
              "valueInteger": 4
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Risk Variable All Encounter Diagnoses with Rank and POA Indication"
            },
            {
              "url": "statement",
              "valueString": "define \"Risk Variable All Encounter Diagnoses with Rank and POA Indication\":\n  from\n    \"Qualifying Encounter\" InpatientEncounter\n    let claim: ( [Claim] C\n        where C.status = 'active'\n          and C.use = 'claim'\n          and exists ( C.item ClaimItem\n              where ClaimItem.encounter.references ( InpatientEncounter )\n          )\n    ),\n    claimItem: ( claim.item ClaimItem\n        where ClaimItem.encounter.references ( InpatientEncounter )\n    )\n    return Tuple {\n      encounterId: InpatientEncounter.id,\n      diagnosis: claim.diagnosis,\n      rank: claim.diagnosis.sequence,\n      POA: claim.diagnosis Diag\n        where Diag.onAdmission in \"Present on Admission or Clinically Undetermined\"\n          or Diag.onAdmission in \"Not Present On Admission or Documentation Insufficient to Determine\"\n    }"
            },
            {
              "url": "displaySequence",
              "valueInteger": 5
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Risk Variable Encounter with Leukemia or Lymphoma Present on Admission"
            },
            {
              "url": "statement",
              "valueString": "define \"Risk Variable Encounter with Leukemia or Lymphoma Present on Admission\":\n  \"Qualifying Encounter\" InpatientEncounter\n    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( \"Leukemia or Lymphoma\" )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 6
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Risk Variable Encounter with Obesity Present on Admission"
            },
            {
              "url": "statement",
              "valueString": "define \"Risk Variable Encounter with Obesity Present on Admission\":\n  \"Qualifying Encounter\" InpatientEncounter\n    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( \"Obesity\" )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 7
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Risk Variable Encounter with Peripheral Neuropathy Present on Admission"
            },
            {
              "url": "statement",
              "valueString": "define \"Risk Variable Encounter with Peripheral Neuropathy Present on Admission\":\n  \"Qualifying Encounter\" InpatientEncounter\n    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( \"Peripheral Neuropathy\" )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 8
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Risk Variable Encounter with Delirium or Dementia or Other Psychosis Present on Admission"
            },
            {
              "url": "statement",
              "valueString": "define \"Risk Variable Encounter with Delirium or Dementia or Other Psychosis Present on Admission\":\n  \"Qualifying Encounter\" InpatientEncounter\n    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( \"Delirium, Dementia, and Other Psychoses\" )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 9
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Risk Variable Encounter with Suicide Attempt"
            },
            {
              "url": "statement",
              "valueString": "define \"Risk Variable Encounter with Suicide Attempt\":\n  \"Qualifying Encounter\" InpatientEncounter\n    where InpatientEncounter.encountersDiagnosis ( ).code in \"Suicide Attempt\""
            },
            {
              "url": "displaySequence",
              "valueInteger": 10
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "SupplementalDataElements"
            },
            {
              "url": "name",
              "valueString": "SDE Payer"
            },
            {
              "url": "statement",
              "valueString": "define \"SDE Payer\":\n  [Coverage: type in \"Payer Type\"] Payer\n    return {\n      code: Payer.type,\n      period: Payer.period\n    }"
            },
            {
              "url": "displaySequence",
              "valueInteger": 11
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "SDE Payer"
            },
            {
              "url": "statement",
              "valueString": "define \"SDE Payer\":\n  SDE.\"SDE Payer\""
            },
            {
              "url": "displaySequence",
              "valueInteger": 12
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Risk Variable Encounter with Liver Disease Moderate to Severe Present on Admission"
            },
            {
              "url": "statement",
              "valueString": "define \"Risk Variable Encounter with Liver Disease Moderate to Severe Present on Admission\":\n  \"Qualifying Encounter\" InpatientEncounter\n    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( \"Liver Disease Moderate to Severe\" )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 13
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Initial Population"
            },
            {
              "url": "statement",
              "valueString": "define \"Initial Population\":\n  \"Qualifying Encounter\""
            },
            {
              "url": "displaySequence",
              "valueInteger": 14
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Risk Variable Encounter with Anticoagulant Administration During Encounter"
            },
            {
              "url": "statement",
              "valueString": "define \"Risk Variable Encounter with Anticoagulant Administration During Encounter\":\n  \"Qualifying Encounter\" InpatientEncounter\n    with [\"MedicationAdministration\": \"Anticoagulants for All Indications\"] Anticoagulants\n      such that Anticoagulants.effective.toInterval ( ) starts during InpatientEncounter.hospitalizationWithObservation ( )\n        and Anticoagulants.status in { 'in-progress', 'completed' }"
            },
            {
              "url": "displaySequence",
              "valueInteger": 15
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Risk Variable Encounter with Neurologic Disorder Present on Admission"
            },
            {
              "url": "statement",
              "valueString": "define \"Risk Variable Encounter with Neurologic Disorder Present on Admission\":\n  \"Qualifying Encounter\" InpatientEncounter\n    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( \"Neurologic Movement and Related Disorders\" )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 16
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Risk Variable Encounter with Abnormal Weight Loss or Malnutrition Present on Admission"
            },
            {
              "url": "statement",
              "valueString": "define \"Risk Variable Encounter with Abnormal Weight Loss or Malnutrition Present on Admission\":\n  \"Qualifying Encounter\" InpatientEncounter\n    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( \"Abnormal Weight Loss\" )\n      or InpatientEncounter.hasDiagnosisPresentOnAdmission ( \"Malnutrition\" )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 17
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Risk Variable Encounter with Anticoagulant Active at Admission"
            },
            {
              "url": "statement",
              "valueString": "define \"Risk Variable Encounter with Anticoagulant Active at Admission\":\n  \"Qualifying Encounter\" InpatientEncounter\n    with [\"MedicationRequest\": \"Anticoagulants for All Indications\"] Anticoagulants\n      such that Anticoagulants.status in { 'active', 'completed' }\n        and ( Anticoagulants.intent = 'order'\n            or ( Anticoagulants.intent = 'plan'\n                and Anticoagulants.subject.reference.getId ( ) = Patient.id\n            )\n        )\n        and Anticoagulants.isCommunity ( )\n        and Anticoagulants.medicationRequestPeriod ( ) overlaps before InpatientEncounter.period"
            },
            {
              "url": "displaySequence",
              "valueInteger": 18
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Risk Variable Body Mass Index (BMI)"
            },
            {
              "url": "statement",
              "valueString": "define \"Risk Variable Body Mass Index (BMI)\":\n  from\n    [\"USCoreBMIProfile\"] BMI\n    with \"Qualifying Encounter\" InpatientEncounter\n      such that BMI.effective.toInterval ( ) starts during InpatientEncounter.hospitalizationWithObservation ( )\n        and BMI.value is not null\n        and BMI.status in { 'final', 'amended', 'corrected' }\n    return BMI.value as Quantity"
            },
            {
              "url": "displaySequence",
              "valueInteger": 19
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Risk Variable Encounter with Depression Present on Admission"
            },
            {
              "url": "statement",
              "valueString": "define \"Risk Variable Encounter with Depression Present on Admission\":\n  \"Qualifying Encounter\" InpatientEncounter\n    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( \"Depression\" )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 20
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Risk Variable Encounter with Epilepsy Present on Admission"
            },
            {
              "url": "statement",
              "valueString": "define \"Risk Variable Encounter with Epilepsy Present on Admission\":\n  \"Qualifying Encounter\" InpatientEncounter\n    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( \"Epilepsy\" )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 21
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Risk Variable Encounter with Diuretic Active at Admission"
            },
            {
              "url": "statement",
              "valueString": "define \"Risk Variable Encounter with Diuretic Active at Admission\":\n  \"Qualifying Encounter\" InpatientEncounter\n    with [\"MedicationRequest\": \"Diuretics\"] DiureticMed\n      such that DiureticMed.status in { 'active', 'completed' }\n        and ( DiureticMed.intent = 'order'\n            or ( DiureticMed.intent = 'plan'\n                and DiureticMed.subject.reference.getId ( ) = Patient.id\n            )\n        )\n        and DiureticMed.isCommunity ( )\n        and DiureticMed.medicationRequestPeriod ( ) overlaps before InpatientEncounter.period"
            },
            {
              "url": "displaySequence",
              "valueInteger": 22
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Risk Variable Encounter with CNS Depressant Active at Admission"
            },
            {
              "url": "statement",
              "valueString": "define \"Risk Variable Encounter with CNS Depressant Active at Admission\":\n  \"Qualifying Encounter\" InpatientEncounter\n    with [\"MedicationRequest\": \"Central Nervous System Depressants\"] CNSMed\n      such that CNSMed.status in { 'active', 'completed' }\n        and ( CNSMed.intent = 'order'\n            or ( CNSMed.intent = 'plan'\n                and CNSMed.subject.reference.getId ( ) = Patient.id\n            )\n        )\n        and CNSMed.isCommunity ( )\n        and CNSMed.medicationRequestPeriod ( ) overlaps before InpatientEncounter.period"
            },
            {
              "url": "displaySequence",
              "valueInteger": 23
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "SupplementalDataElements"
            },
            {
              "url": "name",
              "valueString": "SDE Race"
            },
            {
              "url": "statement",
              "valueString": "define \"SDE Race\":\n  Patient.race R\n    return Tuple {\n      codes: R.ombCategory union R.detailed,\n      display: R.text\n    }"
            },
            {
              "url": "displaySequence",
              "valueInteger": 24
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "SDE Race"
            },
            {
              "url": "statement",
              "valueString": "define \"SDE Race\":\n  SDE.\"SDE Race\""
            },
            {
              "url": "displaySequence",
              "valueInteger": 25
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Risk Variable Encounter with Malignant Bone Disease Present on Admission"
            },
            {
              "url": "statement",
              "valueString": "define \"Risk Variable Encounter with Malignant Bone Disease Present on Admission\":\n  \"Qualifying Encounter\" InpatientEncounter\n    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( \"Malignant Bone Disease\" )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 26
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "SupplementalDataElements"
            },
            {
              "url": "name",
              "valueString": "SDE Sex"
            },
            {
              "url": "statement",
              "valueString": "define \"SDE Sex\":\n  case\n    when Patient.sex = '248153007' then \"Male (finding)\"\n    when Patient.sex = '248152002' then \"Female (finding)\"\n    else null\n  end"
            },
            {
              "url": "displaySequence",
              "valueInteger": 27
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "SDE Sex"
            },
            {
              "url": "statement",
              "valueString": "define \"SDE Sex\":\n  SDE.\"SDE Sex\""
            },
            {
              "url": "displaySequence",
              "valueInteger": 28
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Risk Variable Encounter with Antihypertensive Active at Admission"
            },
            {
              "url": "statement",
              "valueString": "define \"Risk Variable Encounter with Antihypertensive Active at Admission\":\n  \"Qualifying Encounter\" InpatientEncounter\n    with [\"MedicationRequest\": \"Antihypertensives\"] BPMed\n      such that BPMed.status in { 'active', 'completed' }\n        and ( BPMed.intent = 'order'\n            or ( BPMed.intent = 'plan'\n                and BPMed.subject.reference.getId ( ) = Patient.id\n            )\n        )\n        and BPMed.isCommunity ( )\n        and BPMed.medicationRequestPeriod ( ) overlaps before InpatientEncounter.period"
            },
            {
              "url": "displaySequence",
              "valueInteger": 29
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Risk Variable Encounter with Opioid Medication Active at Admission"
            },
            {
              "url": "statement",
              "valueString": "define \"Risk Variable Encounter with Opioid Medication Active at Admission\":\n  \"Qualifying Encounter\" InpatientEncounter\n    with [\"MedicationRequest\": \"Opioids\"] OpioidMed\n      such that OpioidMed.status in { 'active', 'completed' }\n        and ( OpioidMed.intent = 'order'\n            or ( OpioidMed.intent = 'plan'\n                and OpioidMed.subject.reference.getId ( ) = Patient.id\n            )\n        )\n        and OpioidMed.isCommunity ( )\n        and OpioidMed.medicationRequestPeriod ( ) overlaps before InpatientEncounter.period"
            },
            {
              "url": "displaySequence",
              "valueInteger": 30
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Encounter With A Fall Diagnosis"
            },
            {
              "url": "statement",
              "valueString": "define \"Encounter With A Fall Diagnosis\":\n  \"Qualifying Encounter\" QualifyingEncounter\n    where QualifyingEncounter.reasonCode in \"Inpatient Falls\"\n      or QualifyingEncounter.encountersDiagnosis ( ).code in \"Inpatient Falls\""
            },
            {
              "url": "displaySequence",
              "valueInteger": 31
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Encounter With A Fall Event"
            },
            {
              "url": "statement",
              "valueString": "define \"Encounter With A Fall Event\":\n  \"Qualifying Encounter\" InpatientEncounter\n    with [AdverseEvent: \"Inpatient Falls\"] FallsDocumentation\n      such that Coalesce(FallsDocumentation.date, FallsDocumentation.recordedDate) during InpatientEncounter.hospitalizationWithObservation ( )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 32
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Encounter Where A Fall Occurred"
            },
            {
              "url": "statement",
              "valueString": "define \"Encounter Where A Fall Occurred\":\n  \"Encounter With A Fall Diagnosis\"\n    union \"Encounter With A Fall Event\""
            },
            {
              "url": "displaySequence",
              "valueInteger": 33
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Encounter With A Fall Not Present On Admission"
            },
            {
              "url": "statement",
              "valueString": "define \"Encounter With A Fall Not Present On Admission\":\n  \"Encounter Where A Fall Occurred\" InpatientEncounter\n    where InpatientEncounter.hasDiagnosisNotPresentOnAdmissionOrNull ( \"Inpatient Falls\" )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 34
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Encounter Where A Fall And Major Injury Occurred Not POA"
            },
            {
              "url": "statement",
              "valueString": "define \"Encounter Where A Fall And Major Injury Occurred Not POA\":\n  \"Encounter With A Fall Not Present On Admission\" FallOccurred\n    where exists ( ( FallOccurred.claimDiagnosis ( ) ) MajorFallOccurred\n        where MajorFallOccurred.onAdmission is null\n          or MajorFallOccurred.onAdmission in \"Not Present On Admission or Documentation Insufficient to Determine\"\n            and ( MajorFallOccurred.diagnosis in \"Major Injuries\"\n                or MajorFallOccurred.diagnosis.getCondition ( ).code in \"Major Injuries\"\n            )\n    )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 35
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Encounter Where A Fall And Moderate Injury Occurred Not POA"
            },
            {
              "url": "statement",
              "valueString": "define \"Encounter Where A Fall And Moderate Injury Occurred Not POA\":\n  \"Encounter With A Fall Not Present On Admission\" FallOccurred\n    where exists ( ( FallOccurred.claimDiagnosis ( ) ) ModerateFallOccurred\n        where ModerateFallOccurred.onAdmission is null\n          or ModerateFallOccurred.onAdmission in \"Not Present On Admission or Documentation Insufficient to Determine\"\n            and ( ModerateFallOccurred.diagnosis in \"Moderate Injuries\"\n                or ModerateFallOccurred.diagnosis.getCondition ( ).code in \"Moderate Injuries\"\n            )\n    )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 36
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Numerator"
            },
            {
              "url": "statement",
              "valueString": "define \"Numerator\":\n  \"Encounter Where A Fall And Major Injury Occurred Not POA\"\n    union \"Encounter Where A Fall And Moderate Injury Occurred Not POA\""
            },
            {
              "url": "displaySequence",
              "valueInteger": 37
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Denominator"
            },
            {
              "url": "statement",
              "valueString": "define \"Denominator\":\n  \"Initial Population\""
            },
            {
              "url": "displaySequence",
              "valueInteger": 38
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Encounter With A Fall Present On Admission"
            },
            {
              "url": "statement",
              "valueString": "define \"Encounter With A Fall Present On Admission\":\n  \"Qualifying Encounter\" InpatientEncounter\n    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( \"Inpatient Falls\" )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 39
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Numerator Exclusions"
            },
            {
              "url": "statement",
              "valueString": "define \"Numerator Exclusions\":\n  \"Encounter With A Fall Present On Admission\""
            },
            {
              "url": "displaySequence",
              "valueInteger": 40
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "SupplementalDataElements"
            },
            {
              "url": "name",
              "valueString": "SDE Ethnicity"
            },
            {
              "url": "statement",
              "valueString": "define \"SDE Ethnicity\":\n  Patient.ethnicity E\n    return Tuple {\n      codes: { E.ombCategory } union E.detailed,\n      display: E.text\n    }"
            },
            {
              "url": "displaySequence",
              "valueInteger": 41
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "SDE Ethnicity"
            },
            {
              "url": "statement",
              "valueString": "define \"SDE Ethnicity\":\n  SDE.\"SDE Ethnicity\""
            },
            {
              "url": "displaySequence",
              "valueInteger": 42
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Denominator Exclusions"
            },
            {
              "url": "statement",
              "valueString": "define \"Denominator Exclusions\":\n  \"Encounter With A Fall Present On Admission\""
            },
            {
              "url": "displaySequence",
              "valueInteger": 43
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Risk Variable Encounter with Stroke Present on Admission"
            },
            {
              "url": "statement",
              "valueString": "define \"Risk Variable Encounter with Stroke Present on Admission\":\n  \"Qualifying Encounter\" InpatientEncounter\n    where InpatientEncounter.hasDiagnosisPresentOnAdmission ( \"Stroke\" )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 44
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "FHIRHelpers"
            },
            {
              "url": "name",
              "valueString": "ToInterval"
            },
            {
              "url": "statement",
              "valueString": "/*\n@description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)\nvalue to a CQL DateTime Interval\n@comment: If the start value of the given period is unspecified, the starting\nboundary of the resulting interval will be open (meaning the start of the interval\nis unknown, as opposed to interpreted as the beginning of time).\n*/\ndefine function ToInterval(period FHIR.Period):\n    if period is null then\n        null\n    else\n        if period.\"start\" is null then\n            Interval(period.\"start\".value, period.\"end\".value]\n        else\n            Interval[period.\"start\".value, period.\"end\".value]"
            },
            {
              "url": "displaySequence",
              "valueInteger": 45
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CQMCommon"
            },
            {
              "url": "name",
              "valueString": "lengthInDays"
            },
            {
              "url": "statement",
              "valueString": "/*\n@description: Calculates the difference in calendar days between the start and end of the given interval.\n*/\ndefine fluent function lengthInDays(Value Interval<DateTime> ):\n  difference in days between start of Value and end of Value"
            },
            {
              "url": "displaySequence",
              "valueInteger": 46
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CQMCommon"
            },
            {
              "url": "name",
              "valueString": "hospitalizationWithObservation"
            },
            {
              "url": "statement",
              "valueString": "/*\n@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\n*/\ndefine fluent function hospitalizationWithObservation(TheEncounter Encounter ):\n  TheEncounter Visit\n  \t\tlet ObsVisit: Last([Encounter: \"Observation Services\"] LastObs\n  \t\t\t\twhere LastObs.status = 'finished'\n            and LastObs.period ends 1 hour or less on or before start of Visit.period\n  \t\t\t\tsort by end of period\n  \t\t\t),\n  \t\t\tVisitStart: Coalesce(start of ObsVisit.period, start of Visit.period),\n  \t\t\tEDVisit: Last([Encounter: \"Emergency Department Visit\"] LastED\n  \t\t\t\twhere LastED.status = 'finished'\n            and LastED.period ends 1 hour or less on or before VisitStart\n  \t\t\t\tsort by end of period\n  \t\t\t)\n  \t\treturn Interval[Coalesce(start of EDVisit.period, VisitStart), end of Visit.period]"
            },
            {
              "url": "displaySequence",
              "valueInteger": 47
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "hasDiagnosisPresentOnAdmission"
            },
            {
              "url": "statement",
              "valueString": "define fluent function hasDiagnosisPresentOnAdmission(encounter Encounter, diagnosisValueSet ValueSet):\n  exists ( encounter InptEncounter\n      let claim: ( [Claim] Claims\n          where Claims.status = 'active'\n            and Claims.use = 'claim'\n            and exists ( Claims.item ClaimsItem\n                where ClaimsItem.encounter.references ( InptEncounter )\n            )\n      ),\n      claimItem: ( claim.item ClaimsItem\n          where ClaimsItem.encounter.references ( InptEncounter )\n      )\n      return claim.diagnosis ClaimsDiag\n        where ClaimsDiag.sequence in claimItem.diagnosisSequence\n          and ClaimsDiag.onAdmission in \"Present on Admission or Clinically Undetermined\"\n          and ClaimsDiag.diagnosis in diagnosisValueSet\n  )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 48
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "QICoreCommon"
            },
            {
              "url": "name",
              "valueString": "references"
            },
            {
              "url": "statement",
              "valueString": "/*\n@description: Returns true if any of the given references are to the given resource\n@comment: Returns true if the `id` element of the given resource exactly equals the tail of any of the given references.\nNOTE: This function assumes resources from the same source server.\n*/\ndefine fluent function references(references List<Reference>, resource Resource):\n  exists (references R where R.references(resource))"
            },
            {
              "url": "displaySequence",
              "valueInteger": 49
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "QICoreCommon"
            },
            {
              "url": "name",
              "valueString": "references"
            },
            {
              "url": "statement",
              "valueString": "/*\n@description: Returns true if the given reference is to the given resource\n@comment: Returns true if the `id` element of the given resource exactly equals the tail of the given reference.\nNOTE: This function assumes resources from the same source server.\n*/\ndefine fluent function references(reference Reference, resource Resource):\n  resource.id = Last(Split(reference.reference, '/'))"
            },
            {
              "url": "displaySequence",
              "valueInteger": 50
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "QICoreCommon"
            },
            {
              "url": "name",
              "valueString": "getId"
            },
            {
              "url": "statement",
              "valueString": "/*\n@description: Returns the tail of the given uri (i.e. everything after the last slash in the URI).\n@comment: This function can be used to determine the logical id of a given resource. It can be used in\na single-server environment to trace references. However, this function does not attempt to resolve\nor distinguish the base of the given url, and so cannot be used safely in multi-server environments.\n*/\ndefine fluent function getId(uri String):\n  Last(Split(uri, '/'))"
            },
            {
              "url": "displaySequence",
              "valueInteger": 51
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "QICoreCommon"
            },
            {
              "url": "name",
              "valueString": "isCommunity"
            },
            {
              "url": "statement",
              "valueString": "/*\n@description: Returns true if the given MedicationRequest has a category of Community\n*/\ndefine fluent function isCommunity(medicationRequest Choice<MedicationRequest, MedicationNotRequested>):\n  exists (medicationRequest.category C\n    where C ~ Community\n  )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 52
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "FHIRHelpers"
            },
            {
              "url": "name",
              "valueString": "ToConcept"
            },
            {
              "url": "statement",
              "valueString": "/*\n@description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.\n*/\ndefine function ToConcept(concept FHIR.CodeableConcept):\n    if concept is null then\n        null\n    else\n        System.Concept {\n            codes: concept.coding C return ToCode(C),\n            display: concept.text.value\n        }"
            },
            {
              "url": "displaySequence",
              "valueInteger": 53
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "FHIRHelpers"
            },
            {
              "url": "name",
              "valueString": "ToCode"
            },
            {
              "url": "statement",
              "valueString": "/*\n@description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.\n*/\ndefine function ToCode(coding FHIR.Coding):\n    if coding is null then\n        null\n    else\n        System.Code {\n          code: coding.code.value,\n          system: coding.system.value,\n          version: coding.version.value,\n          display: coding.display.value\n        }"
            },
            {
              "url": "displaySequence",
              "valueInteger": 54
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CumulativeMedicationDuration"
            },
            {
              "url": "name",
              "valueString": "medicationRequestPeriod"
            },
            {
              "url": "statement",
              "valueString": "define fluent function medicationRequestPeriod(Request \"MedicationRequest\"):\n  Request R\n    let\n      dosage: singleton from R.dosageInstruction,\n      doseAndRate: singleton from dosage.doseAndRate,\n      timing: dosage.timing,\n      frequency: Coalesce(timing.repeat.frequencyMax, timing.repeat.frequency),\n      period: Quantity(timing.repeat.period, timing.repeat.periodUnit),\n      doseRange: doseAndRate.dose,\n      doseQuantity: doseAndRate.dose,\n      dose: Coalesce(end of doseRange, doseQuantity),\n      dosesPerDay: Coalesce(ToDaily(frequency, period), Count(timing.repeat.timeOfDay), 1.0),\n      boundsPeriod: timing.repeat.bounds as Interval<DateTime>,\n      daysSupply: (convert R.dispenseRequest.expectedSupplyDuration to days).value,\n      quantity: R.dispenseRequest.quantity,\n      refills: Coalesce(R.dispenseRequest.numberOfRepeatsAllowed, 0),\n      startDate:\n        Coalesce(\n          date from start of boundsPeriod,\n          date from R.authoredOn,\n          date from start of R.dispenseRequest.validityPeriod\n        ),\n      totalDaysSupplied: Coalesce(daysSupply, quantity.value / (dose.value * dosesPerDay)) * (1 + refills)\n    return\n      if startDate is not null and totalDaysSupplied is not null then\n        Interval[startDate, startDate + Quantity(totalDaysSupplied - 1, 'day') ]\n      else if startDate is not null and boundsPeriod.\"high\" is not null then\n        Interval[startDate, date from end of boundsPeriod]\n      else\n        null"
            },
            {
              "url": "displaySequence",
              "valueInteger": 55
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CumulativeMedicationDuration"
            },
            {
              "url": "name",
              "valueString": "Quantity"
            },
            {
              "url": "statement",
              "valueString": "/**********************************************************************/\n/* Functions in this region are copied from opioid-mme-r4             */\n/**********************************************************************/\n\ndefine function Quantity(value Decimal, unit String):\n  if value is not null then\n    System.Quantity { value: value, unit: unit }\n  else\n    null"
            },
            {
              "url": "displaySequence",
              "valueInteger": 56
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CumulativeMedicationDuration"
            },
            {
              "url": "name",
              "valueString": "ToDaily"
            },
            {
              "url": "statement",
              "valueString": "/*\n Goal is to get to number of days\n Two broad approaches to the calculation:\n  1) Based on supply and frequency, calculate the number of expected days the medication will cover/has covered\n  2) Based on relevant period, determine a covered interval and calculate the length of that interval in days\nThis topic covers several use cases and illustrates how to calculate Cumulative\nMedication Duration for each type of medication resource using the supply and\nfrequency approach.\n*/\n\n/*\n  For the first approach, we need to get from frequency to a frequency/day\n  So we define ToDaily\n*/\n\n/*\n  Calculates daily frequency given frequency within a period\n*/\ndefine function ToDaily(frequency System.Integer, period System.Quantity):\n  case period.unit\n    when 'h' then frequency * (24.0 / period.value)\n    when 'min' then frequency * (24.0 / period.value) * 60\n    when 's' then frequency * (24.0 / period.value) * 60 * 60\n    when 'd' then frequency * (24.0 / period.value) / 24\n    when 'wk' then frequency * (24.0 / period.value) / (24 * 7)\n    when 'mo' then frequency * (24.0 / period.value) / (24 * 30) /* assuming 30 days in month */\n    when 'a' then frequency * (24.0 / period.value) / (24 * 365) /* assuming 365 days in year */\n    when 'hour' then frequency * (24.0 / period.value)\n    when 'minute' then frequency * (24.0 / period.value) * 60\n    when 'second' then frequency * (24.0 / period.value) * 60 * 60\n    when 'day' then frequency * (24.0 / period.value) / 24\n    when 'week' then frequency * (24.0 / period.value) / (24 * 7)\n    when 'month' then frequency * (24.0 / period.value) / (24 * 30) /* assuming 30 days in month */\n    when 'year' then frequency * (24.0 / period.value) / (24 * 365) /* assuming 365 days in year */\n    when 'hours' then frequency * (24.0 / period.value)\n    when 'minutes' then frequency * (24.0 / period.value) * 60\n    when 'seconds' then frequency * (24.0 / period.value) * 60 * 60\n    when 'days' then frequency * (24.0 / period.value) / 24\n    when 'weeks' then frequency * (24.0 / period.value) / (24 * 7)\n    when 'months' then frequency * (24.0 / period.value) / (24 * 30) /* assuming 30 days in month */\n    when 'years' then frequency * (24.0 / period.value) / (24 * 365) /* assuming 365 days in year */\n    else Message(null, true, 'CMDLogic.ToDaily.UnknownUnit', ErrorLevel, 'Unknown unit ' & period.unit)\n  end"
            },
            {
              "url": "displaySequence",
              "valueInteger": 57
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "encountersDiagnosis"
            },
            {
              "url": "statement",
              "valueString": "define fluent function encountersDiagnosis(Encounter Encounter):\n  // There is a problem in the CQMCommon fluent function 'encounterDiagnosis' wherein the union operation isn't working as used.\n  // This function fixes that usage, but should be considered temporary until the library function works properly   \n  \n  \n  Encounter.reasonReference EncDiag\n    return singleton from ( ( [ConditionEncounterDiagnosis] ConditionED\n        union [ConditionProblemsHealthConcerns] ConditionPHC ) Cond\n        where EncDiag.references ( Cond.id )\n    )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 58
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "QICoreCommon"
            },
            {
              "url": "name",
              "valueString": "references"
            },
            {
              "url": "statement",
              "valueString": "/*\n@description: Returns true if the given reference is to the given resourceId\n@comment: Returns true if the `resourceId` parameter exactly equals the tail of the given reference.\nNOTE: This function assumes resources from the same source server.\n*/\ndefine fluent function references(reference Reference, resourceId String):\n  resourceId = Last(Split(reference.reference, '/'))"
            },
            {
              "url": "displaySequence",
              "valueInteger": 59
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Denominator Observation"
            },
            {
              "url": "statement",
              "valueString": "define function \"Denominator Observation\"(QualifyingEncounter Encounter):\n  duration in days of QualifyingEncounter.hospitalizationWithObservation ( )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 60
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "FHIRHelpers"
            },
            {
              "url": "name",
              "valueString": "ToString"
            },
            {
              "url": "statement",
              "valueString": "define function ToString(value uri): value.value"
            },
            {
              "url": "displaySequence",
              "valueInteger": 61
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "hasDiagnosisNotPresentOnAdmissionOrNull"
            },
            {
              "url": "statement",
              "valueString": "define fluent function hasDiagnosisNotPresentOnAdmissionOrNull(encounter Encounter, diagnosisValueSet ValueSet):\n  exists ( encounter InptEncounter\n      let claim: ( [Claim] Claims\n          where Claims.status = 'active'\n            and Claims.use = 'claim'\n            and exists ( Claims.item ClaimsItem\n                where ClaimsItem.encounter.references ( InptEncounter )\n            )\n      ),\n      claimItem: ( claim.item ClaimsItem\n          where ClaimsItem.encounter.references ( InptEncounter )\n      )\n      return claim.diagnosis ClaimsDiag\n        where ClaimsDiag.sequence in claimItem.diagnosisSequence\n          and ClaimsDiag.onAdmission is null\n          or ClaimsDiag.onAdmission in \"Not Present On Admission or Documentation Insufficient to Determine\"\n            and ClaimsDiag.diagnosis in diagnosisValueSet\n  )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 62
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CQMCommon"
            },
            {
              "url": "name",
              "valueString": "claimDiagnosis"
            },
            {
              "url": "statement",
              "valueString": "/*\n@description: Returns the claim diagnosis elements for the given encounter\n@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\n*/\ndefine fluent function claimDiagnosis(encounter Encounter):\n  encounter E\n    let \n      claim: ([Claim] C where C.status = 'active' and C.use = 'claim' and exists (C.item I where I.encounter.references(E))),\n      claimItem: (claim.item I where I.encounter.references(E))\n    return claim.diagnosis D where D.sequence in claimItem.diagnosisSequence"
            },
            {
              "url": "displaySequence",
              "valueInteger": 63
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CQMCommon"
            },
            {
              "url": "name",
              "valueString": "getCondition"
            },
            {
              "url": "statement",
              "valueString": "/*\n@description: Returns the Condition resource for the given reference\n*/\ndefine fluent function getCondition(reference Reference):\n  singleton from (([ConditionEncounterDiagnosis] union [ConditionProblemsHealthConcerns]) C where reference.references(C.id))"
            },
            {
              "url": "displaySequence",
              "valueInteger": 64
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "CMS1017FHIRHHFI"
            },
            {
              "url": "name",
              "valueString": "Numerator Observation"
            },
            {
              "url": "statement",
              "valueString": "define function \"Numerator Observation\"(QualifyingEncounter Encounter):\n  Count(\"Numerator\" FallsEncounter\n      where FallsEncounter.period ends during QualifyingEncounter.hospitalizationWithObservation()\n  )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 65
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        }
      ],
      "name": "EffectiveDataRequirements",
      "status": "active",
      "type": {
        "coding": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/library-type",
            "code": "module-definition"
          }
        ]
      },
      "relatedArtifact": [
        {
          "type": "depends-on",
          "display": "Library CQMCommon",
          "resource": "https://madie.cms.gov/Library/CQMCommon|4.1.000"
        },
        {
          "type": "depends-on",
          "display": "Library FHIRHelpers",
          "resource": "https://madie.cms.gov/Library/FHIRHelpers|4.4.000"
        },
        {
          "type": "depends-on",
          "display": "Library QICoreCommon",
          "resource": "https://madie.cms.gov/Library/QICoreCommon|4.0.000"
        },
        {
          "type": "depends-on",
          "display": "Library CMD",
          "resource": "https://madie.cms.gov/Library/CumulativeMedicationDuration|6.0.000"
        },
        {
          "type": "depends-on",
          "display": "Library SDE",
          "resource": "https://madie.cms.gov/Library/SupplementalDataElements|5.1.000"
        },
        {
          "type": "depends-on",
          "display": "Code system MedicationRequestCategory",
          "resource": "http://terminology.hl7.org/CodeSystem/medicationrequest-category"
        },
        {
          "type": "depends-on",
          "display": "Code system SNOMEDCT",
          "resource": "http://snomed.info/sct"
        },
        {
          "type": "depends-on",
          "display": "Value set Encounter Inpatient",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"
        },
        {
          "type": "depends-on",
          "display": "Value set Observation Services",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143"
        },
        {
          "type": "depends-on",
          "display": "Value set Emergency Department Visit",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292"
        },
        {
          "type": "depends-on",
          "display": "Value set Present on Admission or Clinically Undetermined",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.197"
        },
        {
          "type": "depends-on",
          "display": "Value set Osteoporosis",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1200.147"
        },
        {
          "type": "depends-on",
          "display": "Value set Coagulation Disorders",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.23"
        },
        {
          "type": "depends-on",
          "display": "Value set Antidepressants",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.163"
        },
        {
          "type": "depends-on",
          "display": "Value set Not Present On Admission or Documentation Insufficient to Determine",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.198"
        },
        {
          "type": "depends-on",
          "display": "Value set Leukemia or Lymphoma",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.136"
        },
        {
          "type": "depends-on",
          "display": "Value set Obesity",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.162"
        },
        {
          "type": "depends-on",
          "display": "Value set Peripheral Neuropathy",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.175"
        },
        {
          "type": "depends-on",
          "display": "Value set Delirium, Dementia, and Other Psychoses",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.168"
        },
        {
          "type": "depends-on",
          "display": "Value set Suicide Attempt",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.130"
        },
        {
          "type": "depends-on",
          "display": "Value set Payer Type",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"
        },
        {
          "type": "depends-on",
          "display": "Value set Liver Disease Moderate to Severe",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.137"
        },
        {
          "type": "depends-on",
          "display": "Value set Anticoagulants for All Indications",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.22"
        },
        {
          "type": "depends-on",
          "display": "Value set Neurologic Movement and Related Disorders",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.174"
        },
        {
          "type": "depends-on",
          "display": "Value set Abnormal Weight Loss",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1258.2"
        },
        {
          "type": "depends-on",
          "display": "Value set Malnutrition",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1272.1"
        },
        {
          "type": "depends-on",
          "display": "Value set Depression",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.169"
        },
        {
          "type": "depends-on",
          "display": "Value set Epilepsy",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.171"
        },
        {
          "type": "depends-on",
          "display": "Value set Diuretics",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.170"
        },
        {
          "type": "depends-on",
          "display": "Value set Central Nervous System Depressants",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.134"
        },
        {
          "type": "depends-on",
          "display": "Value set Malignant Bone Disease",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.24"
        },
        {
          "type": "depends-on",
          "display": "Value set Antihypertensives",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.164"
        },
        {
          "type": "depends-on",
          "display": "Value set Opioids",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.120"
        },
        {
          "type": "depends-on",
          "display": "Value set Inpatient Falls",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.171"
        },
        {
          "type": "depends-on",
          "display": "Value set Major Injuries",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.120"
        },
        {
          "type": "depends-on",
          "display": "Value set Moderate Injuries",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.205"
        },
        {
          "type": "depends-on",
          "display": "Value set Stroke",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.176"
        }
      ],
      "parameter": [
        {
          "name": "Measurement Period",
          "use": "in",
          "min": 0,
          "max": "1",
          "type": "Period"
        },
        {
          "name": "ErrorLevel",
          "use": "in",
          "min": 0,
          "max": "1",
          "type": "string"
        },
        {
          "name": "Initial Population",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "Numerator",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "Denominator",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "Numerator Exclusions",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "Denominator Exclusions",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "SDE Payer",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "SDE Race",
          "use": "out",
          "min": 0,
          "max": "1",
          "type": "Resource"
        },
        {
          "name": "SDE Sex",
          "use": "out",
          "min": 0,
          "max": "1",
          "type": "Coding"
        },
        {
          "name": "SDE Ethnicity",
          "use": "out",
          "min": 0,
          "max": "1",
          "type": "Resource"
        },
        {
          "name": "Risk Variable Encounter with Osteoporosis Present on Admission",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "Risk Variable Encounter with Coagulation Disorder Present on Admission",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "Risk Variable Encounter with Antidepressant Active at Admission",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "Risk Variable All Encounter Diagnoses with Rank and POA Indication",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "Risk Variable Encounter with Leukemia or Lymphoma Present on Admission",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "Risk Variable Encounter with Obesity Present on Admission",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "Risk Variable Encounter with Peripheral Neuropathy Present on Admission",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "Risk Variable Encounter with Delirium or Dementia or Other Psychosis Present on Admission",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "Risk Variable Encounter with Suicide Attempt",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "Risk Variable Encounter with Liver Disease Moderate to Severe Present on Admission",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "Risk Variable Encounter with Anticoagulant Administration During Encounter",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "Risk Variable Encounter with Neurologic Disorder Present on Admission",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "Risk Variable Encounter with Abnormal Weight Loss or Malnutrition Present on Admission",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "Risk Variable Encounter with Anticoagulant Active at Admission",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "Risk Variable Body Mass Index (BMI)",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Quantity"
        },
        {
          "name": "Risk Variable Encounter with Depression Present on Admission",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "Risk Variable Encounter with Epilepsy Present on Admission",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "Risk Variable Encounter with Diuretic Active at Admission",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "Risk Variable Encounter with CNS Depressant Active at Admission",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "Risk Variable Encounter with Malignant Bone Disease Present on Admission",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "Risk Variable Encounter with Antihypertensive Active at Admission",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "Risk Variable Encounter with Opioid Medication Active at Admission",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "Risk Variable Encounter with Stroke Present on Admission",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        }
      ],
      "dataRequirement": [
        {
          "type": "Encounter",
          "profile": [
            "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"
          ],
          "mustSupport": [
            "type",
            "status",
            "status.value",
            "period"
          ],
          "codeFilter": [
            {
              "path": "type",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143"
            }
          ]
        },
        {
          "type": "Encounter",
          "profile": [
            "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"
          ],
          "mustSupport": [
            "type",
            "status",
            "status.value",
            "period"
          ],
          "codeFilter": [
            {
              "path": "type",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292"
            }
          ]
        },
        {
          "type": "Encounter",
          "profile": [
            "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"
          ],
          "mustSupport": [
            "type",
            "status",
            "status.value",
            "period",
            "id",
            "id.value",
            "reasonCode"
          ],
          "codeFilter": [
            {
              "path": "type",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"
            }
          ]
        },
        {
          "type": "Patient",
          "profile": [
            "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"
          ],
          "mustSupport": [
            "id",
            "id.value",
            "url",
            "extension"
          ]
        },
        {
          "type": "Resource",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/Resource"
          ],
          "mustSupport": [
            "id",
            "id.value"
          ]
        },
        {
          "type": "Claim",
          "profile": [
            "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-claim"
          ],
          "mustSupport": [
            "status",
            "status.value",
            "use",
            "use.value",
            "item"
          ]
        },
        {
          "type": "MedicationRequest",
          "profile": [
            "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"
          ],
          "mustSupport": [
            "medication",
            "dosageInstruction",
            "dispenseRequest",
            "dispenseRequest.expectedSupplyDuration",
            "dispenseRequest.quantity",
            "dispenseRequest.numberOfRepeatsAllowed",
            "dispenseRequest.numberOfRepeatsAllowed.value",
            "authoredOn",
            "authoredOn.value",
            "dispenseRequest.validityPeriod",
            "status",
            "status.value",
            "intent",
            "intent.value",
            "subject",
            "subject.reference",
            "subject.reference.value"
          ],
          "codeFilter": [
            {
              "path": "medication",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.163"
            }
          ]
        },
        {
          "type": "MedicationRequest",
          "profile": [
            "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"
          ],
          "mustSupport": [
            "medication",
            "dosageInstruction",
            "dispenseRequest",
            "dispenseRequest.expectedSupplyDuration",
            "dispenseRequest.quantity",
            "dispenseRequest.numberOfRepeatsAllowed",
            "dispenseRequest.numberOfRepeatsAllowed.value",
            "authoredOn",
            "authoredOn.value",
            "dispenseRequest.validityPeriod",
            "status",
            "status.value",
            "intent",
            "intent.value",
            "subject",
            "subject.reference",
            "subject.reference.value"
          ],
          "codeFilter": [
            {
              "path": "medication",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.22"
            }
          ]
        },
        {
          "type": "MedicationRequest",
          "profile": [
            "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"
          ],
          "mustSupport": [
            "medication",
            "dosageInstruction",
            "dispenseRequest",
            "dispenseRequest.expectedSupplyDuration",
            "dispenseRequest.quantity",
            "dispenseRequest.numberOfRepeatsAllowed",
            "dispenseRequest.numberOfRepeatsAllowed.value",
            "authoredOn",
            "authoredOn.value",
            "dispenseRequest.validityPeriod",
            "status",
            "status.value",
            "intent",
            "intent.value",
            "subject",
            "subject.reference",
            "subject.reference.value"
          ],
          "codeFilter": [
            {
              "path": "medication",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.170"
            }
          ]
        },
        {
          "type": "MedicationRequest",
          "profile": [
            "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"
          ],
          "mustSupport": [
            "medication",
            "dosageInstruction",
            "dispenseRequest",
            "dispenseRequest.expectedSupplyDuration",
            "dispenseRequest.quantity",
            "dispenseRequest.numberOfRepeatsAllowed",
            "dispenseRequest.numberOfRepeatsAllowed.value",
            "authoredOn",
            "authoredOn.value",
            "dispenseRequest.validityPeriod",
            "status",
            "status.value",
            "intent",
            "intent.value",
            "subject",
            "subject.reference",
            "subject.reference.value"
          ],
          "codeFilter": [
            {
              "path": "medication",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.134"
            }
          ]
        },
        {
          "type": "MedicationRequest",
          "profile": [
            "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"
          ],
          "mustSupport": [
            "medication",
            "dosageInstruction",
            "dispenseRequest",
            "dispenseRequest.expectedSupplyDuration",
            "dispenseRequest.quantity",
            "dispenseRequest.numberOfRepeatsAllowed",
            "dispenseRequest.numberOfRepeatsAllowed.value",
            "authoredOn",
            "authoredOn.value",
            "dispenseRequest.validityPeriod",
            "status",
            "status.value",
            "intent",
            "intent.value",
            "subject",
            "subject.reference",
            "subject.reference.value"
          ],
          "codeFilter": [
            {
              "path": "medication",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.164"
            }
          ]
        },
        {
          "type": "MedicationRequest",
          "profile": [
            "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"
          ],
          "mustSupport": [
            "medication",
            "dosageInstruction",
            "dispenseRequest",
            "dispenseRequest.expectedSupplyDuration",
            "dispenseRequest.quantity",
            "dispenseRequest.numberOfRepeatsAllowed",
            "dispenseRequest.numberOfRepeatsAllowed.value",
            "authoredOn",
            "authoredOn.value",
            "dispenseRequest.validityPeriod",
            "status",
            "status.value",
            "intent",
            "intent.value",
            "subject",
            "subject.reference",
            "subject.reference.value"
          ],
          "codeFilter": [
            {
              "path": "medication",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.120"
            }
          ]
        },
        {
          "type": "MedicationRequest",
          "profile": [
            "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"
          ],
          "mustSupport": [
            "medication.reference.value",
            "dosageInstruction",
            "dispenseRequest",
            "dispenseRequest.expectedSupplyDuration",
            "dispenseRequest.quantity",
            "dispenseRequest.numberOfRepeatsAllowed",
            "dispenseRequest.numberOfRepeatsAllowed.value",
            "authoredOn",
            "authoredOn.value",
            "dispenseRequest.validityPeriod",
            "status",
            "status.value",
            "intent",
            "intent.value",
            "subject",
            "subject.reference",
            "subject.reference.value"
          ]
        },
        {
          "type": "Medication",
          "profile": [
            "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication"
          ],
          "mustSupport": [
            "id.value",
            "code"
          ]
        },
        {
          "type": "Condition",
          "profile": [
            "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-encounter-diagnosis"
          ]
        },
        {
          "type": "Condition",
          "profile": [
            "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-problems-health-concerns"
          ]
        },
        {
          "type": "Coverage",
          "profile": [
            "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage"
          ],
          "mustSupport": [
            "type",
            "period"
          ],
          "codeFilter": [
            {
              "path": "type",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"
            }
          ]
        },
        {
          "type": "MedicationAdministration",
          "profile": [
            "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationadministration"
          ],
          "mustSupport": [
            "medication",
            "effective",
            "status",
            "status.value"
          ],
          "codeFilter": [
            {
              "path": "medication",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.22"
            }
          ]
        },
        {
          "type": "MedicationAdministration",
          "profile": [
            "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationadministration"
          ],
          "mustSupport": [
            "medication.reference.value",
            "effective",
            "status",
            "status.value"
          ]
        },
        {
          "type": "Observation",
          "profile": [
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-bmi"
          ],
          "mustSupport": [
            "effective",
            "value",
            "status",
            "status.value"
          ]
        },
        {
          "type": "AdverseEvent",
          "profile": [
            "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-adverseevent"
          ],
          "mustSupport": [
            "event",
            "date",
            "date.value",
            "recordedDate",
            "recordedDate.value"
          ],
          "codeFilter": [
            {
              "path": "event",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.171"
            }
          ]
        }
      ]
    }
  ],
  "extension": [
    {
      "id": "supplementalDataGuidance",
      "extension": [
        {
          "url": "guidance",
          "valueString": "For every patient evaluated by this measure also identify payer, race, ethnicity and sex"
        },
        {
          "url": "usage",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
                "code": "supplemental-data",
                "display": "Supplemental Data"
              }
            ],
            "text": "Supplemental Data Guidance"
          }
        }
      ],
      "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-supplementalDataGuidance"
    },
    {
      "id": "riskAdjustmentVariableGuidance",
      "extension": [
        {
          "url": "guidance",
          "valueString": "Variables being collected for the development of baseline risk adjustment model include encounters with: \n\nMedications active on admission such as: \n - anticoagulants\n - antidepressants\n - antihypertensives\n - central nervous system depressant medications\n - diuretics\n - opioids\n\nMedications administered during the hospitalization, such as anticoagulants\n\nDiagnoses present on admission which may increase the risk for a fall with injury, such as:\n - abnormal weight loss or malnutrition\n - coagulation disorders\n - delirium, dementia, or other psychosis\n - depression\n - epilepsy\n - leukemia or lymphoma\n - liver disease (moderate to severe)\n - malignant bone disease\n - neurologic movement and related disorders\n - obesity\n - osteoporosis\n - peripheral neuropathy\n - stroke\n - suicide attempt\n\nPhysical traits, such as body mass index (BMI)\n \nAll encounter diagnoses along with their rank (e.g., 1 = principal, 2 = secondary) and present on admission (POA) indicators are being collected for the development of baseline risk adjustment model."
        },
        {
          "url": "usage",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
                "code": "risk-adjustment-factor",
                "display": "Risk Adjustment Factor"
              }
            ],
            "text": "Risk Adjustment Variable Guidance"
          }
        }
      ],
      "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-supplementalDataGuidance"
    },
    {
      "url": "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements",
      "valueReference": {
        "reference": "#effective-data-requirements"
      }
    }
  ],
  "url": "https://madie.cms.gov/Measure/CMS1017FHIRHHFI",
  "identifier": [
    {
      "use": "usual",
      "type": {
        "coding": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/artifact-identifier-type",
            "code": "short-name",
            "display": "Short Name"
          }
        ]
      },
      "system": "https://madie.cms.gov/measure/shortName",
      "value": "CMS1017FHIR"
    },
    {
      "use": "official",
      "type": {
        "coding": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/artifact-identifier-type",
            "code": "version-independent",
            "display": "Version Independent"
          }
        ]
      },
      "system": "urn:ietf:rfc:3986",
      "value": "urn:uuid:6425d5e9-a54b-40e0-a07d-e6e17137871c"
    },
    {
      "use": "official",
      "type": {
        "coding": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/artifact-identifier-type",
            "code": "version-specific",
            "display": "Version Specific"
          }
        ]
      },
      "system": "urn:ietf:rfc:3986",
      "value": "urn:uuid:b73e62a3-0cfc-450e-afff-c06e0e255672"
    },
    {
      "use": "official",
      "type": {
        "coding": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/artifact-identifier-type",
            "code": "endorser",
            "display": "Endorser"
          }
        ]
      },
      "system": "https://madie.cms.gov/measure/cbeId",
      "value": "4120e",
      "assigner": {
        "display": "CMS Consensus Based Entity"
      }
    },
    {
      "use": "official",
      "type": {
        "coding": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/artifact-identifier-type",
            "code": "publisher",
            "display": "Publisher"
          }
        ]
      },
      "system": "https://madie.cms.gov/measure/cmsId",
      "value": "1017FHIR",
      "assigner": {
        "display": "CMS"
      }
    }
  ],
  "version": "0.2.000",
  "name": "CMS1017FHIRHHFI",
  "title": "Hospital Harm – Falls with InjuryFHIR",
  "status": "active",
  "experimental": false,
  "date": "2025-07-07T18:39:11+00:00",
  "publisher": "Centers for Medicare & Medicaid Services (CMS)",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "https://www.cms.gov/"
        }
      ]
    }
  ],
  "description": "This ratio measure assesses the number of inpatient hospitalizations where at least one fall with a major or moderate injury occurs among the total qualifying inpatient hospital days for patients aged 18 years and older",
  "usage": "Hospital days are measured in 24-hour periods starting from the time of arrival at the hospital (including time in the Emergency Department and or Observation).  The number of days will be counted as whole numbers; any fractional periods are dropped. For example, an eligible encounter with a length of stay of 75 hours will be measured as 3 days (72 hours).\n\nThis measure includes two measure observations used to calculate the ratio of the number of encounters with a fall over the total number of eligible hospital days. The ratio is reported as the rate of inpatient hospitalizations with falls with moderate or major injury per 1000 patient days. \n\nTo express the rate of inpatient hospitalizations with falls with moderate or major injury per 1,000 patient days, the following calculation is applied post-production during implementation: (Total number of encounters with falls with moderate or major injury / Total number of eligible hospital days) x 1000 = rate.\nExample: 1 eligible encounter with a patient fall with moderate or major injury over 120 eligible days (1/120) x 1000 = 8.33.\n\nIn ratio measures, both the Denominator and Numerator populations flow separately from the same Initial Population. Therefore, the same exclusion criteria must be applied to both the Denominator and Numerator to prevent excluded cases from being considered.\n\nThis dQM is an episode-based measure. An episode is defined as each inpatient hospitalization or encounter that ends during the measurement period.\n\nThis FHIR-based measure has been derived from the QDM-based measure: CMS1017v2. Please refer to the HL7 QI-Core Implementation Guide (https://hl7.org/fhir/us/qicore/STU6/) for more information on QI-Core and mapping recommendations from QDM to QI-Core STU 6 (https://hl7.org/fhir/us/qicore/STU6/qdm-to-qicore.html).",
  "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. Mathematica disclaims all liability for use or accuracy of any third-party codes contained in the specifications. \n\nLOINC(R) copyright 2004-2024 Regenstrief Institute, Inc. This material contains SNOMED Clinical Terms(R) (SNOMED CT[R]) copyright 2004-2024 International Health Terminology Standards Development Organisation. ICD-10 copyright 2024 World Health Organization. All Rights Reserved.",
  "effectivePeriod": {
    "start": "2026-01-01",
    "end": "2026-12-31"
  },
  "author": [
    {
      "name": "Mathematica",
      "telecom": [
        {
          "system": "url",
          "value": "https://www.mathematica.org/"
        }
      ]
    }
  ],
  "relatedArtifact": [
    {
      "type": "citation",
      "citation": "CITATION - Mintz, J., Duprey, M. S., Zullo, A. R., Lee, Y., Kiel, D. P., Daiello, L. A., Rodriguez, K. E., Venkatesh, A. K., & Berry, S. D. (2022). Identification of Fall-Related Injuries in Nursing Home Residents Using Administrative Claims Data. The journals of gerontology. Series A, Biological sciences and medical sciences, 77(7), 1421–1429. https://doi.org/10.1093/gerona/glab274\n"
    },
    {
      "type": "citation",
      "citation": "CITATION - Mohanty, S., Rosenthal, R.A., Russell, M.M., Neuman, M.D., Ko, C.Y., & Esnaola, N.F. (2016). Optimal Perioperative Management of the Geriatric Patient: Best Practices Guideline from ACS NSQIP/AGS. Journal of the American College of Surgeons 222(5), 930-947. doi: 10.1016/j.jamcollsurg.2015.12.026\n"
    },
    {
      "type": "citation",
      "citation": "CITATION - Montero-Odasso, M., van der Velde, N., Martin, F. C., Petrovic, M., Tan, M. P., Ryg, J., Aguilar-Navarro, S., Alexander, N. B., Becker, C., Blain, H., Bourke, R., Cameron, I. D., Camicioli, R., Clemson, L., Close, J., Delbaere, K., Duan, L., Duque, G., Dyer, S. M., … Rixt Zijlstra, G. A. (2022). World guidelines for falls prevention and management for older adults: a global initiative. Age and Ageing, 51(9), 1–36. https://doi.org/10.1093/ageing/afac205\n"
    },
    {
      "type": "citation",
      "citation": "CITATION - National Quality Forum. Serious Reportable Events. http://www.qualityforum.org/topics/sres/serious_reportable_events.aspx. Accessed July 24, 2019\n"
    },
    {
      "type": "citation",
      "citation": "CITATION - Network of Patient Safety Databases Chartbook, 2022. Rockville, MD: Agency for Healthcare Research and Quality; September 2022. AHRQ Pub. No. 22-0051\n"
    },
    {
      "type": "citation",
      "citation": "CITATION - NICE. (2013). Falls in older people: assessing risk and prevention. London, UK\n"
    },
    {
      "type": "citation",
      "citation": "CITATION - Press Ganey Guidelines for Data Collection and Submission Patient Falls Indicator, January 2020\n"
    },
    {
      "type": "citation",
      "citation": "CITATION - RNAO. (2017). Preventing falls and reducing injury from falls (4th edition). Toronto, ON\n"
    },
    {
      "type": "citation",
      "citation": "CITATION - Schoberer, D., Breimaier, H. E., Zuschnegg, J., Findling, T., Schaffer, S., & Archan, T. (2022). Fall prevention in hospitals and nursing homes: Clinical practice guideline. Worldviews on Evidence-Based Nursing, Vol. 19. https://doi.org/10.1111/wvn.12571\n"
    },
    {
      "type": "citation",
      "citation": "CITATION - WHO. (2009). Conceptual Framework for the International Classification for Patient Safety, Version 1.1. https://apps.who.int/iris/bitstream/handle/10665/70882/WHO_IER_PSP_2010.2_eng.pdf\n"
    }
  ],
  "library": [
    "https://madie.cms.gov/Library/CMS1017FHIRHHFI"
  ],
  "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. \n\nTHE MEASURES AND SPECIFICATIONS ARE PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND. \n\nDue to technical limitations, registered trademarks are indicated by (R) or [R] and unregistered trademarks are indicated by (TM) or [TM].",
  "rationale": "Inpatient falls are among the most common incidents reported in hospitals and can increase length of stay and patient costs. Due to the potential for serious harm associated with patient falls, “patient death or serious injury associated with a fall while being cared for in a health care setting” is considered a Serious Reportable Event by the National Quality Forum (NQF, 2019).\n\nFalls (including unplanned or unintended descents to the floor) can result in patient injury ranging from minor abrasion or bruising to death as a result of injuries sustained from a fall. While major injuries (e.g., fractures, closed head injuries, internal bleeding) (Mintz et al., 2022) have the biggest impact on patient outcomes, 2008-2021 data findings from the 2022 Network of Patient Safety Databases (NPSD) demonstrated that 41.8 % of falls resulted in moderate injuries such as skin tear, avulsion, hematoma, significant bruising, dislocations and lacerations requiring suturing (AHRQ, 2022). Moderate injury is, as defined by the National Database of Nursing Quality Indicators (NDNQI), that resulted in suturing, application of steri-strips or skin glue, splinting, or muscle/joint strain (NDNQI, 2020). NPSD findings also demonstrated that mild to moderate level of harm represent 24.2.%, 0.4% - severe harm, and 0.1% - death (AHRQ, 2022; WHO, 2009). \n\nBy focusing on falls with major and moderate injuries, the goal of this hospital harm dQM is to raise awareness of fall rates and, ultimately, to improve patient safety by preventing falls with injury in all hospital patients. The purpose of measuring the rate of falls with major and moderate injury events is to improve hospitals’ practices for monitoring patients at high risk for falls with injury and, in so doing, to reduce the frequency of patient falls with injury.",
  "clinicalRecommendationStatement": "Certain protocols and prevention measures to reduce patient falls with injury include using fall risk assessment tools to gauge individual patient risk, implementing fall prevention protocols directed at individual patient risk factors, and implementing environmental rounds to assess and correct environmental fall hazards. Recommended clinical guidelines and practices to reduce falls and injuries from falls in hospitals support many prevention activities including implementing multifactorial interventions and tailoring interventions to individual patient's conditions and needs. The intent and desired outcome for this dQM is to work with existing and recommended falls prevention processes to track falls with injury, and aim to reduce rates of inpatient falls resulting in major injury.\n\nRecommended falls prevention guidelines are:\n\n- Optimal Perioperative Management of the Geriatric Patient: Best Practices Guideline (ACS NSQIP/AGS, 2016)\n- Falls in older people: assessing risk and prevention (NICE, 2013)\n- Preventing falls and reducing injury from falls (4th edition) (RNAO, 2017)\n- Fall prevention in hospitals and nursing homes: Clinical practice guideline (Schoberer et al., 2022)\n- World guidelines for falls prevention and management for older adults: a global initiative, (Montero-Odasso et al., 2022)",
  "group": [
    {
      "id": "Group_1",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/measure-scoring",
                "code": "ratio",
                "display": "Ratio"
              }
            ]
          }
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis",
          "valueCode": "Encounter"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-type",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/measure-type",
                "code": "outcome",
                "display": "Outcome"
              }
            ]
          }
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-rateAggregation",
          "valueCode": "None"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-improvementNotation",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/measure-improvement-notation",
                "code": "decrease",
                "display": "decrease"
              }
            ]
          }
        }
      ],
      "population": [
        {
          "id": "InitialPopulation_1",
          "code": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/measure-population",
                "code": "initial-population",
                "display": "Initial Population"
              }
            ]
          },
          "description": "Inpatient hospitalizations for patients aged 18 years and older with a length of stay less than or equal to 120 days that ends during the measurement period",
          "criteria": {
            "language": "text/cql-identifier",
            "expression": "Initial Population"
          }
        },
        {
          "id": "Denominator_1",
          "code": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/measure-population",
                "code": "denominator",
                "display": "Denominator"
              }
            ]
          },
          "description": "Equals Initial Population",
          "criteria": {
            "language": "text/cql-identifier",
            "expression": "Denominator"
          }
        },
        {
          "id": "DenominatorExclusion_1",
          "code": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/measure-population",
                "code": "denominator-exclusion",
                "display": "Denominator Exclusion"
              }
            ]
          },
          "description": "Inpatient hospitalizations where the patient has a fall diagnosis present on admission.",
          "criteria": {
            "language": "text/cql-identifier",
            "expression": "Denominator Exclusions"
          }
        },
        {
          "id": "Numerator_1",
          "code": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/measure-population",
                "code": "numerator",
                "display": "Numerator"
              }
            ]
          },
          "description": "Inpatient hospitalizations where the patient has a fall that results in a major or moderate injury during the encounter. \n\nThe diagnosis of a major or moderate injury must not be present on admission. ",
          "criteria": {
            "language": "text/cql-identifier",
            "expression": "Numerator"
          }
        },
        {
          "id": "NumeratorExclusion_1",
          "code": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/measure-population",
                "code": "numerator-exclusion",
                "display": "Numerator Exclusion"
              }
            ]
          },
          "description": "Inpatient hospitalizations where the patient has a fall diagnosis present on admission",
          "criteria": {
            "language": "text/cql-identifier",
            "expression": "Numerator Exclusions"
          }
        },
        {
          "id": "MeasureObservation_1_1",
          "extension": [
            {
              "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-aggregateMethod",
              "valueString": "Sum"
            },
            {
              "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-criteriaReference",
              "valueString": "Denominator_1"
            }
          ],
          "code": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/measure-population",
                "code": "measure-observation",
                "display": "Measure Observation"
              }
            ]
          },
          "description": "Denominator Observation, associated with the Denominator: The total number of eligible days across all encounters which match the initial population/denominator criteria. ",
          "criteria": {
            "language": "text/cql-identifier",
            "expression": "Denominator Observation"
          }
        },
        {
          "id": "MeasureObservation_1_2",
          "extension": [
            {
              "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-aggregateMethod",
              "valueString": "Count"
            },
            {
              "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-criteriaReference",
              "valueString": "Numerator_1"
            }
          ],
          "code": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/measure-population",
                "code": "measure-observation",
                "display": "Measure Observation"
              }
            ]
          },
          "description": "Numerator Observation, associated with the Numerator: The total number of inpatient hospitalizations where a fall with major or moderate injury occurred, across all eligible encounters.",
          "criteria": {
            "language": "text/cql-identifier",
            "expression": "Numerator Observation"
          }
        }
      ]
    }
  ],
  "supplementalData": [
    {
      "id": "sde-ethnicity",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "subject-list"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "summary"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "data-collection"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "supplemental-data"
            }
          ]
        }
      ],
      "description": "SDE Ethnicity",
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "SDE Ethnicity"
      }
    },
    {
      "id": "sde-payer",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "subject-list"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "summary"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "data-collection"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "supplemental-data"
            }
          ]
        }
      ],
      "description": "SDE Payer",
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "SDE Payer"
      }
    },
    {
      "id": "sde-race",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "subject-list"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "summary"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "data-collection"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "supplemental-data"
            }
          ]
        }
      ],
      "description": "SDE Race",
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "SDE Race"
      }
    },
    {
      "id": "sde-sex",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "subject-list"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "summary"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "data-collection"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "supplemental-data"
            }
          ]
        }
      ],
      "description": "SDE Sex",
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "SDE Sex"
      }
    },
    {
      "id": "risk-variable-body-mass-index-(bmi)",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "subject-list"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "summary"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "data-collection"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "risk-adjustment-factor"
            }
          ]
        }
      ],
      "description": "Risk Variable Body Mass Index (BMI)",
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Risk Variable Body Mass Index (BMI)"
      }
    },
    {
      "id": "risk-variable-all-encounter-diagnoses-with-rank-and-poa-indication",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "subject-list"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "summary"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "data-collection"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "risk-adjustment-factor"
            }
          ]
        }
      ],
      "description": "Risk Variable All Encounter Diagnoses with Rank and POA Indication",
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Risk Variable All Encounter Diagnoses with Rank and POA Indication"
      }
    },
    {
      "id": "risk-variable-encounter-with-abnormal-weight-loss-or-malnutrition-present-on-admission",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "subject-list"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "summary"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "data-collection"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "risk-adjustment-factor"
            }
          ]
        }
      ],
      "description": "Risk Variable Encounter with Abnormal Weight Loss or Malnutrition Present on Admission",
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Risk Variable Encounter with Abnormal Weight Loss or Malnutrition Present on Admission"
      }
    },
    {
      "id": "risk-variable-encounter-with-anticoagulant-active-at-admission",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "subject-list"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "summary"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "data-collection"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "risk-adjustment-factor"
            }
          ]
        }
      ],
      "description": "Risk Variable Encounter with Anticoagulant Active at Admission",
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Risk Variable Encounter with Anticoagulant Active at Admission"
      }
    },
    {
      "id": "risk-variable-encounter-with-anticoagulant-administration-during-encounter",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "subject-list"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "summary"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "data-collection"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "risk-adjustment-factor"
            }
          ]
        }
      ],
      "description": "Risk Variable Encounter with Anticoagulant Administration During Encounter",
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Risk Variable Encounter with Anticoagulant Administration During Encounter"
      }
    },
    {
      "id": "risk-variable-encounter-with-antidepressant-active-at-admission",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "subject-list"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "summary"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "data-collection"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "risk-adjustment-factor"
            }
          ]
        }
      ],
      "description": "Risk Variable Encounter with Antidepressant Active at Admission",
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Risk Variable Encounter with Antidepressant Active at Admission"
      }
    },
    {
      "id": "risk-variable-encounter-with-antihypertensive-active-at-admission",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "subject-list"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "summary"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "data-collection"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "risk-adjustment-factor"
            }
          ]
        }
      ],
      "description": "Risk Variable Encounter with Antihypertensive Active at Admission",
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Risk Variable Encounter with Antihypertensive Active at Admission"
      }
    },
    {
      "id": "risk-variable-encounter-with-cns-depressant-active-at-admission",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "subject-list"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "summary"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "data-collection"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "risk-adjustment-factor"
            }
          ]
        }
      ],
      "description": "Risk Variable Encounter with CNS Depressant Active at Admission",
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Risk Variable Encounter with CNS Depressant Active at Admission"
      }
    },
    {
      "id": "risk-variable-encounter-with-diuretic-active-at-admission",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "subject-list"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "summary"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "data-collection"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "risk-adjustment-factor"
            }
          ]
        }
      ],
      "description": "Risk Variable Encounter with Diuretic Active at Admission",
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Risk Variable Encounter with Diuretic Active at Admission"
      }
    },
    {
      "id": "risk-variable-encounter-with-opioid-medication-active-at-admission",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "subject-list"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "summary"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "data-collection"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "risk-adjustment-factor"
            }
          ]
        }
      ],
      "description": "Risk Variable Encounter with Opioid Medication Active at Admission",
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Risk Variable Encounter with Opioid Medication Active at Admission"
      }
    },
    {
      "id": "risk-variable-encounter-with-coagulation-disorder-present-on-admission",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "subject-list"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "summary"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "data-collection"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "risk-adjustment-factor"
            }
          ]
        }
      ],
      "description": "Risk Variable Encounter with Coagulation Disorder Present on Admission",
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Risk Variable Encounter with Coagulation Disorder Present on Admission"
      }
    },
    {
      "id": "risk-variable-encounter-with-depression-present-on-admission",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "subject-list"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "summary"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "data-collection"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "risk-adjustment-factor"
            }
          ]
        }
      ],
      "description": "Risk Variable Encounter with Depression Present on Admission",
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Risk Variable Encounter with Depression Present on Admission"
      }
    },
    {
      "id": "risk-variable-encounter-with-delirium-or-dementia-or-other-psychosis-present-on-admission",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "subject-list"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "summary"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "data-collection"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "risk-adjustment-factor"
            }
          ]
        }
      ],
      "description": "Risk Variable Encounter with Delirium or Dementia or Other Psychosis Present on Admission",
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Risk Variable Encounter with Delirium or Dementia or Other Psychosis Present on Admission"
      }
    },
    {
      "id": "risk-variable-encounter-with-epilepsy-present-on-admission",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "subject-list"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "summary"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "data-collection"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "risk-adjustment-factor"
            }
          ]
        }
      ],
      "description": "Risk Variable Encounter with Epilepsy Present on Admission",
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Risk Variable Encounter with Epilepsy Present on Admission"
      }
    },
    {
      "id": "risk-variable-encounter-with-leukemia-or-lymphoma-present-on-admission",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "subject-list"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "summary"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "data-collection"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "risk-adjustment-factor"
            }
          ]
        }
      ],
      "description": "Risk Variable Encounter with Leukemia or Lymphoma Present on Admission",
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Risk Variable Encounter with Leukemia or Lymphoma Present on Admission"
      }
    },
    {
      "id": "risk-variable-encounter-with-liver-disease-moderate-to-severe-present-on-admission",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "subject-list"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "summary"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "data-collection"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "risk-adjustment-factor"
            }
          ]
        }
      ],
      "description": "Risk Variable Encounter with Liver Disease Moderate to Severe Present on Admission",
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Risk Variable Encounter with Liver Disease Moderate to Severe Present on Admission"
      }
    },
    {
      "id": "risk-variable-encounter-with-malignant-bone-disease-present-on-admission",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "subject-list"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "summary"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "data-collection"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "risk-adjustment-factor"
            }
          ]
        }
      ],
      "description": "Risk Variable Encounter with Malignant Bone Disease Present on Admission",
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Risk Variable Encounter with Malignant Bone Disease Present on Admission"
      }
    },
    {
      "id": "risk-variable-encounter-with-neurologic-disorder-present-on-admission",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "subject-list"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "summary"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "data-collection"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "risk-adjustment-factor"
            }
          ]
        }
      ],
      "description": "Risk Variable Encounter with Neurologic Disorder Present on Admission",
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Risk Variable Encounter with Neurologic Disorder Present on Admission"
      }
    },
    {
      "id": "risk-variable-encounter-with-obesity-present-on-admission",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "subject-list"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "summary"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "data-collection"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "risk-adjustment-factor"
            }
          ]
        }
      ],
      "description": "Risk Variable Encounter with Obesity Present on Admission",
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Risk Variable Encounter with Obesity Present on Admission"
      }
    },
    {
      "id": "risk-variable-encounter-with-osteoporosis-present-on-admission",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "subject-list"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "summary"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "data-collection"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "risk-adjustment-factor"
            }
          ]
        }
      ],
      "description": "Risk Variable Encounter with Osteoporosis Present on Admission",
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Risk Variable Encounter with Osteoporosis Present on Admission"
      }
    },
    {
      "id": "risk-variable-encounter-with-peripheral-neuropathy-present-on-admission",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "subject-list"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "summary"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "data-collection"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "risk-adjustment-factor"
            }
          ]
        }
      ],
      "description": "Risk Variable Encounter with Peripheral Neuropathy Present on Admission",
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Risk Variable Encounter with Peripheral Neuropathy Present on Admission"
      }
    },
    {
      "id": "risk-variable-encounter-with-stroke-present-on-admission",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "subject-list"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "summary"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "data-collection"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "risk-adjustment-factor"
            }
          ]
        }
      ],
      "description": "Risk Variable Encounter with Stroke Present on Admission",
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Risk Variable Encounter with Stroke Present on Admission"
      }
    },
    {
      "id": "risk-variable-encounter-with-suicide-attempt",
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "subject-list"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "summary"
        },
        {
          "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
          "valueCode": "data-collection"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "risk-adjustment-factor"
            }
          ]
        }
      ],
      "description": "Risk Variable Encounter with Suicide Attempt",
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Risk Variable Encounter with Suicide Attempt"
      }
    }
  ]
}