dQM QICore Content Implementation Guide
2025.0.0 - CI Build
dQM QICore Content Implementation Guide, published by cqframework. This guide is not an authorized publication; it is the continuous build for version 2025.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/dqm-content-qicore-2025/ and changes regularly. See the Directory of published versions
Active as of 2025-08-25 |
{
"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" : "<div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"col-12\">\n <table class=\"narrative-table\">\n <tbody>\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Metadata</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Title</th>\n\n\n<td class=\"content-container\">Hospital Harm - Falls with InjuryFHIR</td>\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Version</th>\n\n\n<td class=\"content-container\">1.0.000</td>\n</tr>\n\n\n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Short Name</th>\n\n\n<td class=\"content-container\">CMS1017FHIR</td>\n</tr>\n\n\n\n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">GUID (Version Independent)</th>\n\n\n<td class=\"content-container\">urn:uuid:6425d5e9-a54b-40e0-a07d-e6e17137871c</td>\n</tr>\n\n\n\n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">GUID (Version Specific)</th>\n\n\n<td class=\"content-container\">urn:uuid:fd45e28d-9c60-47b3-93df-1a9e96c17795</td>\n</tr>\n\n\n\n \n \n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">CMS Identifier</th>\n\n\n<td class=\"content-container\">1017FHIR</td>\n</tr>\n\n \n\n\n \n \n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">CMS Consensus Based Entity Identifier</th>\n\n\n<td class=\"content-container\">4120e</td>\n</tr>\n\n \n\n\n\n \n \n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Effective Period</th>\n\n\n<td class=\"content-container\">2026-01-01 through 2026-12-31</td>\n</tr>\n\n \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Steward (Publisher)</th>\n\n\n<td class=\"content-container\">Centers for Medicare & Medicaid Services (CMS)</td>\n</tr>\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Developer</th>\n\n\n<td class=\"content-container\">Mathematica</td>\n</tr>\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n<td class=\"content-container\"><p>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</p></td>\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Copyright</th>\n\n\n<td class=\"content-container\"><p>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.</p>\n<p>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.</p></td>\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Disclaimer</th>\n\n\n<td class=\"content-container\"><p>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.</p>\n<p>THE MEASURES AND SPECIFICATIONS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.</p>\n<p>Due to technical limitations, registered trademarks are indicated by (R) or [R] and unregistered trademarks are indicated by (TM) or [TM].</p></td>\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Rationale</th>\n\n\n<td class=\"content-container\"><p>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).</p>\n<p/>\n<p>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).</p>\n<p/>\n<p>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.</p></td>\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Clinical Recommendation Statement</th>\n\n\n<td class=\"content-container\"><p>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.</p>\n<p/>\n<p>Recommended falls prevention guidelines are:</p>\n<p/>\n<ul>\n <li><p>Optimal Perioperative Management of the Geriatric Patient: Best Practices Guideline (ACS NSQIP/AGS, 2016)</p></li>\n <li><p>Falls in older people: assessing risk and prevention (NICE, 2013)</p></li>\n <li><p>Preventing falls and reducing injury from falls (4th edition) (RNAO, 2017)</p></li>\n <li><p>Fall prevention in hospitals and nursing homes: Clinical practice guideline (Schoberer et al., 2022)</p></li>\n <li><p>World guidelines for falls prevention and management for older adults: a global initiative, (Montero-Odasso et al., 2022)</p></li>\n</ul></td>\n</tr>\n\n\n\n\n<tr>\n \n \n \n \n\n<th scope=\"row\" class=\"row-header\">Citation</th>\n\n\n \n \n <td class=\"content-container\">\n \n \n \n <p>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</p>\n \n \n \n \n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n\n<th scope=\"row\" class=\"row-header\">Citation</th>\n\n\n \n \n <td class=\"content-container\">\n \n \n \n <p>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</p>\n \n \n \n \n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n\n<th scope=\"row\" class=\"row-header\">Citation</th>\n\n\n \n \n <td class=\"content-container\">\n \n \n \n <p>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</p>\n \n \n \n \n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n\n<th scope=\"row\" class=\"row-header\">Citation</th>\n\n\n \n \n <td class=\"content-container\">\n \n \n \n <p>National Quality Forum. Serious Reportable Events. http://www.qualityforum.org/topics/sres/serious_reportable_events.aspx. Accessed July 24, 2019</p>\n \n \n \n \n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n\n<th scope=\"row\" class=\"row-header\">Citation</th>\n\n\n \n \n <td class=\"content-container\">\n \n \n \n <p>Network of Patient Safety Databases Chartbook, 2022. Rockville, MD: Agency for Healthcare Research and Quality; September 2022. AHRQ Pub. No. 22-0051</p>\n \n \n \n \n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n\n<th scope=\"row\" class=\"row-header\">Citation</th>\n\n\n \n \n <td class=\"content-container\">\n \n \n \n <p>NICE. (2013). Falls in older people: assessing risk and prevention. London, UK</p>\n \n \n \n \n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n\n<th scope=\"row\" class=\"row-header\">Citation</th>\n\n\n \n \n <td class=\"content-container\">\n \n \n \n <p>Press Ganey Guidelines for Data Collection and Submission Patient Falls Indicator, January 2020</p>\n \n \n \n \n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n\n<th scope=\"row\" class=\"row-header\">Citation</th>\n\n\n \n \n <td class=\"content-container\">\n \n \n \n <p>RNAO. (2017). Preventing falls and reducing injury from falls (4th edition). Toronto, ON</p>\n \n \n \n \n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n\n<th scope=\"row\" class=\"row-header\">Citation</th>\n\n\n \n \n <td class=\"content-container\">\n \n \n \n <p>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</p>\n \n \n \n \n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n\n<th scope=\"row\" class=\"row-header\">Citation</th>\n\n\n \n \n <td class=\"content-container\">\n \n \n \n <p>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</p>\n \n \n \n \n \n </td>\n</tr>\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Guidance (Usage)</th>\n\n\n<td class=\"content-container\"><p>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).</p>\n<p/>\n<p>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.</p>\n<p/>\n<p>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.</p>\n<p/>\n<p>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.</p>\n<p/>\n<p>This dQM is an episode-based measure. An episode is defined as each inpatient hospitalization or encounter that ends during the measurement period.</p>\n<p/>\n<p>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).</p></td>\n</tr>\n\n\n\n \n \n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Group (Rate) (ID: Group_1)</th>\n\n\n</tr>\n \n \n \n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Basis</th>\n\n\n<td class=\"content-container\">Encounter</td>\n</tr>\n\n\n\n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Scoring</th>\n\n\n<td class=\"content-container\">[http://terminology.hl7.org/CodeSystem/measure-scoring#ratio: 'Ratio']</td>\n</tr>\n\n\n\n\n\n\n\n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Type</th>\n\n\n<td class=\"content-container\">[http://terminology.hl7.org/CodeSystem/measure-type#outcome: 'Outcome']</td>\n</tr>\n\n\n\n\n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Rate Aggregation</th>\n\n\n<td class=\"content-container\"><p>None</p></td>\n</tr>\n\n\n\n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Improvement Notation</th>\n\n\n<td class=\"content-container\">[http://terminology.hl7.org/CodeSystem/measure-improvement-notation#decrease: 'Decreased score indicates improvement']</td>\n</tr>\n\n\n \n \n <tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Initial Population</th>\n\n\n \n <td class=\"content-container\">\n \n <em>ID</em>: InitialPopulation_1\n <br/>\n \n \n <em>Description</em>:\n <p style=\"white-space: pre-line\" class=\"tab-one\"><p>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</p></p>\n \n \n \n \n <em>Logic Definition</em>: <a href=\"#primary-cms1017fhirhhfi-initial-population\">Initial Population</a> \n \n \n </td>\n </tr>\n \n\n \n <tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Denominator</th>\n\n\n \n <td class=\"content-container\">\n \n <em>ID</em>: Denominator_1\n <br/>\n \n \n <em>Description</em>:\n <p style=\"white-space: pre-line\" class=\"tab-one\"><p>Equals Initial Population</p></p>\n \n \n \n \n <em>Logic Definition</em>: <a href=\"#primary-cms1017fhirhhfi-denominator\">Denominator</a> \n \n \n </td>\n </tr>\n \n\n \n <tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Denominator Exclusion</th>\n\n\n \n <td class=\"content-container\">\n \n <em>ID</em>: DenominatorExclusion_1\n <br/>\n \n \n <em>Description</em>:\n <p style=\"white-space: pre-line\" class=\"tab-one\"><p>Inpatient hospitalizations where the patient has a fall diagnosis present on admission.</p></p>\n \n \n \n \n <em>Logic Definition</em>: <a href=\"#primary-cms1017fhirhhfi-denominator-exclusions\">Denominator Exclusions</a> \n \n \n </td>\n </tr>\n \n\n \n <tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Numerator</th>\n\n\n \n <td class=\"content-container\">\n \n <em>ID</em>: Numerator_1\n <br/>\n \n \n <em>Description</em>:\n <p style=\"white-space: pre-line\" class=\"tab-one\"><p>Inpatient hospitalizations where the patient has a fall that results in a major or moderate injury during the encounter.</p>\n<p>The diagnosis of a major or moderate injury must not be present on admission.</p></p>\n \n \n \n \n <em>Logic Definition</em>: <a href=\"#primary-cms1017fhirhhfi-numerator\">Numerator</a> \n \n \n </td>\n </tr>\n \n\n \n <tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Numerator Exclusion</th>\n\n\n \n <td class=\"content-container\">\n \n <em>ID</em>: NumeratorExclusion_1\n <br/>\n \n \n <em>Description</em>:\n <p style=\"white-space: pre-line\" class=\"tab-one\"><p>Inpatient hospitalizations where the patient has a fall diagnosis present on admission</p></p>\n \n \n \n \n <em>Logic Definition</em>: <a href=\"#primary-cms1017fhirhhfi-numerator-exclusions\">Numerator Exclusions</a> \n \n \n </td>\n </tr>\n \n\n \n <tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Measure Observation</th>\n\n\n \n <td class=\"content-container\">\n \n <em>ID</em>: MeasureObservation_1_1\n <br/>\n \n \n <em>Description</em>:\n <p style=\"white-space: pre-line\" class=\"tab-one\">Denominator Observation, associated with the Denominator: The total number of eligible days across all encounters which match the initial population/denominator criteria.</p>\n \n \n \n \n <em>Logic Definition</em>: <a href=\"#primary-cms1017fhirhhfi-denominator-observation\">Denominator Observation</a> \n \n \n </td>\n </tr>\n \n\n \n <tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Measure Observation</th>\n\n\n \n <td class=\"content-container\">\n \n <em>ID</em>: MeasureObservation_1_2\n <br/>\n \n \n <em>Description</em>:\n <p style=\"white-space: pre-line\" class=\"tab-one\">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.</p>\n \n \n \n \n <em>Logic Definition</em>: <a href=\"#primary-cms1017fhirhhfi-numerator-observation\">Numerator Observation</a> \n \n \n </td>\n </tr>\n \n\n \n\n\n \n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Guidance</th>\n\n\n<td class=\"content-container\"><p>For every patient evaluated by this measure also identify payer, race, ethnicity and sex</p></td>\n</tr>\n\n \n\n \n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Guidance</th>\n\n\n<td class=\"content-container\"><p>Variables being collected for the development of baseline risk adjustment model include encounters with:</p>\n<p>Medications active on admission such as:</p>\n<ul>\n <li>anticoagulants</li>\n <li>antidepressants</li>\n <li>antihypertensives</li>\n <li>central nervous system depressant medications</li>\n <li>diuretics</li>\n <li>opioids</li>\n</ul>\n<p>Medications administered during the hospitalization, such as anticoagulants</p>\n<p>Diagnoses present on admission which may increase the risk for a fall with injury, such as:</p>\n<ul>\n <li>abnormal weight loss or malnutrition</li>\n <li>coagulation disorders</li>\n <li>delirium, dementia, or other psychosis</li>\n <li>depression</li>\n <li>epilepsy</li>\n <li>leukemia or lymphoma</li>\n <li>liver disease (moderate to severe)</li>\n <li>malignant bone disease</li>\n <li>neurologic movement and related disorders</li>\n <li>obesity</li>\n <li>osteoporosis</li>\n <li>peripheral neuropathy</li>\n <li>stroke</li>\n <li>suicide attempt</li>\n</ul>\n<p>Physical traits, such as body mass index (BMI)</p>\n<p>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.</p></td>\n</tr>\n\n \n\n\n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Supplemental Data Elements</th>\n\n\n</tr>\n\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-ethnicity\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data]\n \n <br/>\n \n \n \n <em>Description</em>: SDE Ethnicity\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms1017fhirhhfi-sde-ethnicity\">SDE Ethnicity</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-payer\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data]\n \n <br/>\n \n \n \n <em>Description</em>: SDE Payer\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms1017fhirhhfi-sde-payer\">SDE Payer</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-race\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data]\n \n <br/>\n \n \n \n <em>Description</em>: SDE Race\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms1017fhirhhfi-sde-race\">SDE Race</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-sex\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data]\n \n <br/>\n \n \n \n <em>Description</em>: SDE Sex\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms1017fhirhhfi-sde-sex\">SDE Sex</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: risk-variable-body-mass-index-(bmi)\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]\n \n <br/>\n \n \n \n <em>Description</em>: Risk Variable Body Mass Index (BMI)\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms1017fhirhhfi-risk-variable-body-mass-index-(bmi)\">Risk Variable Body Mass Index (BMI)</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: risk-variable-all-encounter-diagnoses-with-rank-and-poa-indication\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]\n \n <br/>\n \n \n \n <em>Description</em>: Risk Variable All Encounter Diagnoses with Rank and POA Indication\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms1017fhirhhfi-risk-variable-all-encounter-diagnoses-with-rank-and-poa-indication\">Risk Variable All Encounter Diagnoses with Rank and POA Indication</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: risk-variable-encounter-with-abnormal-weight-loss-or-malnutrition-present-on-admission\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]\n \n <br/>\n \n \n \n <em>Description</em>: Risk Variable Encounter with Abnormal Weight Loss or Malnutrition Present on Admission\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms1017fhirhhfi-risk-variable-encounter-with-abnormal-weight-loss-or-malnutrition-present-on-admission\">Risk Variable Encounter with Abnormal Weight Loss or Malnutrition Present on Admission</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: risk-variable-encounter-with-anticoagulant-active-at-admission\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]\n \n <br/>\n \n \n \n <em>Description</em>: Risk Variable Encounter with Anticoagulant Active at Admission\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms1017fhirhhfi-risk-variable-encounter-with-anticoagulant-active-at-admission\">Risk Variable Encounter with Anticoagulant Active at Admission</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: risk-variable-encounter-with-anticoagulant-administration-during-encounter\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]\n \n <br/>\n \n \n \n <em>Description</em>: Risk Variable Encounter with Anticoagulant Administration During Encounter\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms1017fhirhhfi-risk-variable-encounter-with-anticoagulant-administration-during-encounter\">Risk Variable Encounter with Anticoagulant Administration During Encounter</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: risk-variable-encounter-with-antidepressant-active-at-admission\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]\n \n <br/>\n \n \n \n <em>Description</em>: Risk Variable Encounter with Antidepressant Active at Admission\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms1017fhirhhfi-risk-variable-encounter-with-antidepressant-active-at-admission\">Risk Variable Encounter with Antidepressant Active at Admission</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: risk-variable-encounter-with-antihypertensive-active-at-admission\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]\n \n <br/>\n \n \n \n <em>Description</em>: Risk Variable Encounter with Antihypertensive Active at Admission\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms1017fhirhhfi-risk-variable-encounter-with-antihypertensive-active-at-admission\">Risk Variable Encounter with Antihypertensive Active at Admission</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: risk-variable-encounter-with-cns-depressant-active-at-admission\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]\n \n <br/>\n \n \n \n <em>Description</em>: Risk Variable Encounter with CNS Depressant Active at Admission\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms1017fhirhhfi-risk-variable-encounter-with-cns-depressant-active-at-admission\">Risk Variable Encounter with CNS Depressant Active at Admission</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: risk-variable-encounter-with-diuretic-active-at-admission\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]\n \n <br/>\n \n \n \n <em>Description</em>: Risk Variable Encounter with Diuretic Active at Admission\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms1017fhirhhfi-risk-variable-encounter-with-diuretic-active-at-admission\">Risk Variable Encounter with Diuretic Active at Admission</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: risk-variable-encounter-with-opioid-medication-active-at-admission\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]\n \n <br/>\n \n \n \n <em>Description</em>: Risk Variable Encounter with Opioid Medication Active at Admission\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms1017fhirhhfi-risk-variable-encounter-with-opioid-medication-active-at-admission\">Risk Variable Encounter with Opioid Medication Active at Admission</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: risk-variable-encounter-with-coagulation-disorder-present-on-admission\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]\n \n <br/>\n \n \n \n <em>Description</em>: Risk Variable Encounter with Coagulation Disorder Present on Admission\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms1017fhirhhfi-risk-variable-encounter-with-coagulation-disorder-present-on-admission\">Risk Variable Encounter with Coagulation Disorder Present on Admission</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: risk-variable-encounter-with-depression-present-on-admission\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]\n \n <br/>\n \n \n \n <em>Description</em>: Risk Variable Encounter with Depression Present on Admission\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms1017fhirhhfi-risk-variable-encounter-with-depression-present-on-admission\">Risk Variable Encounter with Depression Present on Admission</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: risk-variable-encounter-with-delirium-or-dementia-or-other-psychosis-present-on-admission\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]\n \n <br/>\n \n \n \n <em>Description</em>: Risk Variable Encounter with Delirium or Dementia or Other Psychosis Present on Admission\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms1017fhirhhfi-risk-variable-encounter-with-delirium-or-dementia-or-other-psychosis-present-on-admission\">Risk Variable Encounter with Delirium or Dementia or Other Psychosis Present on Admission</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: risk-variable-encounter-with-epilepsy-present-on-admission\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]\n \n <br/>\n \n \n \n <em>Description</em>: Risk Variable Encounter with Epilepsy Present on Admission\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms1017fhirhhfi-risk-variable-encounter-with-epilepsy-present-on-admission\">Risk Variable Encounter with Epilepsy Present on Admission</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: risk-variable-encounter-with-leukemia-or-lymphoma-present-on-admission\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]\n \n <br/>\n \n \n \n <em>Description</em>: Risk Variable Encounter with Leukemia or Lymphoma Present on Admission\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms1017fhirhhfi-risk-variable-encounter-with-leukemia-or-lymphoma-present-on-admission\">Risk Variable Encounter with Leukemia or Lymphoma Present on Admission</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: risk-variable-encounter-with-liver-disease-moderate-to-severe-present-on-admission\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]\n \n <br/>\n \n \n \n <em>Description</em>: Risk Variable Encounter with Liver Disease Moderate to Severe Present on Admission\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms1017fhirhhfi-risk-variable-encounter-with-liver-disease-moderate-to-severe-present-on-admission\">Risk Variable Encounter with Liver Disease Moderate to Severe Present on Admission</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: risk-variable-encounter-with-malignant-bone-disease-present-on-admission\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]\n \n <br/>\n \n \n \n <em>Description</em>: Risk Variable Encounter with Malignant Bone Disease Present on Admission\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms1017fhirhhfi-risk-variable-encounter-with-malignant-bone-disease-present-on-admission\">Risk Variable Encounter with Malignant Bone Disease Present on Admission</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: risk-variable-encounter-with-neurologic-disorder-present-on-admission\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]\n \n <br/>\n \n \n \n <em>Description</em>: Risk Variable Encounter with Neurologic Disorder Present on Admission\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms1017fhirhhfi-risk-variable-encounter-with-neurologic-disorder-present-on-admission\">Risk Variable Encounter with Neurologic Disorder Present on Admission</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: risk-variable-encounter-with-obesity-present-on-admission\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]\n \n <br/>\n \n \n \n <em>Description</em>: Risk Variable Encounter with Obesity Present on Admission\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms1017fhirhhfi-risk-variable-encounter-with-obesity-present-on-admission\">Risk Variable Encounter with Obesity Present on Admission</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: risk-variable-encounter-with-osteoporosis-present-on-admission\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]\n \n <br/>\n \n \n \n <em>Description</em>: Risk Variable Encounter with Osteoporosis Present on Admission\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms1017fhirhhfi-risk-variable-encounter-with-osteoporosis-present-on-admission\">Risk Variable Encounter with Osteoporosis Present on Admission</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: risk-variable-encounter-with-peripheral-neuropathy-present-on-admission\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]\n \n <br/>\n \n \n \n <em>Description</em>: Risk Variable Encounter with Peripheral Neuropathy Present on Admission\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms1017fhirhhfi-risk-variable-encounter-with-peripheral-neuropathy-present-on-admission\">Risk Variable Encounter with Peripheral Neuropathy Present on Admission</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: risk-variable-encounter-with-stroke-present-on-admission\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]\n \n <br/>\n \n \n \n <em>Description</em>: Risk Variable Encounter with Stroke Present on Admission\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms1017fhirhhfi-risk-variable-encounter-with-stroke-present-on-admission\">Risk Variable Encounter with Stroke Present on Admission</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: risk-variable-encounter-with-suicide-attempt\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]\n \n <br/>\n \n \n \n <em>Description</em>: Risk Variable Encounter with Suicide Attempt\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms1017fhirhhfi-risk-variable-encounter-with-suicide-attempt\">Risk Variable Encounter with Suicide Attempt</a> \n \n \n </td>\n</tr>\n\n\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Logic</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Primary Library</th>\n\n\n<td class=\"content-container\">https://madie.cms.gov/Library/CMS1017FHIRHHFI</td>\n</tr>\n\n\n\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Contents</th>\n <td class=\"content-container\">\n <em><a href=\"#population-criteria\">Population Criteria</a></em>\n <br/>\n <em><a href=\"#definitions\">Logic Definitions</a></em>\n <br/>\n <em><a href=\"#terminology\">Terminology</a></em>\n <br/>\n <em><a href=\"#dependencies\">Dependencies</a></em>\n <br/>\n <em><a href=\"#data-requirements\">Data Requirements</a></em>\n <br/>\n </td>\n</tr>\n\n\n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"population-criteria\"> </a>Population Criteria</th>\n\n\n</tr>\n \n \n \n \n \n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Group (Rate) (ID: Group_1)</th>\n\n\n</tr>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n <tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"primary-cms1017fhirhhfi-initial-population\"> </a>\n \n \n Initial Population\n \n </th>\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Initial Population":\n "Qualifying Encounter"</code></pre>\n </td>\n\n</tr>\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n <tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"primary-cms1017fhirhhfi-denominator\"> </a>\n \n \n Denominator\n \n </th>\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Denominator":\n "Initial Population"</code></pre>\n </td>\n\n</tr>\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n <tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"primary-cms1017fhirhhfi-denominator-exclusions\"> </a>\n \n \n Denominator Exclusion\n \n </th>\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Denominator Exclusions":\n "Encounter With A Fall Present On Admission"</code></pre>\n </td>\n\n</tr>\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n <tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"primary-cms1017fhirhhfi-numerator\"> </a>\n \n \n Numerator\n \n </th>\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">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"</code></pre>\n </td>\n\n</tr>\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n <tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"primary-cms1017fhirhhfi-numerator-exclusions\"> </a>\n \n \n Numerator Exclusion\n \n </th>\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Numerator Exclusions":\n "Encounter With A Fall Present On Admission"</code></pre>\n </td>\n\n</tr>\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n <tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"primary-cms1017fhirhhfi-denominator-observation\"> </a>\n \n \n Measure Observation\n \n </th>\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function "Denominator Observation"(QualifyingEncounter Encounter):\n duration in days of QualifyingEncounter.hospitalizationWithObservation ( )</code></pre>\n </td>\n\n</tr>\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n <tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"primary-cms1017fhirhhfi-numerator-observation\"> </a>\n \n \n Measure Observation\n \n </th>\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function "Numerator Observation"(QualifyingEncounter Encounter):\n Count("Numerator" FallsEncounter\n where FallsEncounter.period ends during QualifyingEncounter.hospitalizationWithObservation()\n )</code></pre>\n </td>\n\n</tr>\n\n \n \n \n \n \n\n \n \n\n \n \n\n\n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"definitions\"> </a>Logic Definitions</th>\n\n\n</tr>\n \n \n \n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"supplementaldataelements-sde-payer\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> SupplementalDataElements</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "SDE Payer":\n [Coverage: type in "Payer Type"] Payer\n return {\n code: Payer.type,\n period: Payer.period\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"supplementaldataelements-sde-race\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> SupplementalDataElements</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "SDE Race":\n Patient.race R\n return Tuple {\n codes: R.ombCategory union R.detailed,\n display: R.text\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"supplementaldataelements-sde-sex\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> SupplementalDataElements</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">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</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"supplementaldataelements-sde-ethnicity\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> SupplementalDataElements</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "SDE Ethnicity":\n Patient.ethnicity E\n return Tuple {\n codes: { E.ombCategory } union E.detailed,\n display: E.text\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n\n \n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cqmcommon-inpatient-encounter\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CQMCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Inpatient Encounter":\n [Encounter: "Encounter Inpatient"] EncounterInpatient\n where EncounterInpatient.status = 'finished'\n and EncounterInpatient.period ends during day of "Measurement Period"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cqmcommon-lengthindays\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CQMCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\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</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cqmcommon-hospitalizationwithobservation\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CQMCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\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]</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cqmcommon-isdiagnosispresentonadmission\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CQMCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n @description: Returns true if the given diagnosis is present on admission, based on the given poaValueSet\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 */\n define fluent function isDiagnosisPresentOnAdmission(encounter Encounter, diagnosisValueSet ValueSet, poaValueSet ValueSet):\n exists (\n (encounter.claimDiagnosis()) CD\n where CD.onAdmission in poaValueSet\n and (\n CD.diagnosis in diagnosisValueSet\n or CD.diagnosis.getCondition().code in diagnosisValueSet\n )\n )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cqmcommon-claimdiagnosis\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CQMCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\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</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cqmcommon-getcondition\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CQMCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\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))</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n\n \n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"qicorecommon-references\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> QICoreCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\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))</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"qicorecommon-references\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> QICoreCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\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, '/'))</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"qicorecommon-references\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> QICoreCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\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, '/'))</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"qicorecommon-getid\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> QICoreCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\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, '/'))</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"qicorecommon-iscommunity\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> QICoreCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\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 )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n\n \n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cumulativemedicationduration-medicationrequestperiod\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CumulativeMedicationDuration</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">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</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cumulativemedicationduration-quantity\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CumulativeMedicationDuration</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/**********************************************************************/\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</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cumulativemedicationduration-todaily\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CumulativeMedicationDuration</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\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</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n\n \n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-tointerval\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\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]</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-toconcept\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\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 }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-tocode\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\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 }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value uri): value.value</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n\n \n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-qualifying-encounter\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Qualifying Encounter":\n CQMCommon."Inpatient Encounter" InpatientEncounter\n where InpatientEncounter.hospitalizationWithObservation ( ).lengthInDays ( ) <= 120\n and AgeInYearsAt(date from start of InpatientEncounter.period) >= 18</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-risk-variable-encounter-with-osteoporosis-present-on-admission\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Risk Variable Encounter with Osteoporosis Present on Admission":\n "Qualifying Encounter" InpatientEncounter\n where InpatientEncounter.isDiagnosisPresentOnAdmission ( "Osteoporosis", "Present on Admission or Clinically Undetermined" )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-risk-variable-encounter-with-coagulation-disorder-present-on-admission\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Risk Variable Encounter with Coagulation Disorder Present on Admission":\n "Qualifying Encounter" InpatientEncounter\n where InpatientEncounter.isDiagnosisPresentOnAdmission ( "Coagulation Disorders", "Present on Admission or Clinically Undetermined" )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-risk-variable-encounter-with-antidepressant-active-at-admission\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">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 day of InpatientEncounter.period</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-risk-variable-all-encounter-diagnoses-with-rank-and-poa-indication\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">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 }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-risk-variable-encounter-with-leukemia-or-lymphoma-present-on-admission\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Risk Variable Encounter with Leukemia or Lymphoma Present on Admission":\n "Qualifying Encounter" InpatientEncounter\n where InpatientEncounter.isDiagnosisPresentOnAdmission ( "Leukemia or Lymphoma", "Present on Admission or Clinically Undetermined" )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-risk-variable-encounter-with-obesity-present-on-admission\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Risk Variable Encounter with Obesity Present on Admission":\n "Qualifying Encounter" InpatientEncounter\n where InpatientEncounter.isDiagnosisPresentOnAdmission ( "Obesity", "Present on Admission or Clinically Undetermined" )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-risk-variable-encounter-with-peripheral-neuropathy-present-on-admission\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Risk Variable Encounter with Peripheral Neuropathy Present on Admission":\n "Qualifying Encounter" InpatientEncounter\n where InpatientEncounter.isDiagnosisPresentOnAdmission ( "Peripheral Neuropathy", "Present on Admission or Clinically Undetermined" )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-risk-variable-encounter-with-delirium-or-dementia-or-other-psychosis-present-on-admission\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Risk Variable Encounter with Delirium or Dementia or Other Psychosis Present on Admission":\n "Qualifying Encounter" InpatientEncounter\n where InpatientEncounter.isDiagnosisPresentOnAdmission ( "Delirium, Dementia, and Other Psychoses", "Present on Admission or Clinically Undetermined" )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-risk-variable-encounter-with-suicide-attempt\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Risk Variable Encounter with Suicide Attempt":\n "Qualifying Encounter" InpatientEncounter\n where InpatientEncounter.encountersDiagnosis ( ).code in "Suicide Attempt"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-sde-payer\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "SDE Payer":\n SDE."SDE Payer"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-risk-variable-encounter-with-liver-disease-moderate-to-severe-present-on-admission\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Risk Variable Encounter with Liver Disease Moderate to Severe Present on Admission":\n "Qualifying Encounter" InpatientEncounter\n where InpatientEncounter.isDiagnosisPresentOnAdmission ( "Liver Disease Moderate to Severe", "Present on Admission or Clinically Undetermined" )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-initial-population\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Initial Population":\n "Qualifying Encounter"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-risk-variable-encounter-with-anticoagulant-administration-during-encounter\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">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' }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-risk-variable-encounter-with-neurologic-disorder-present-on-admission\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Risk Variable Encounter with Neurologic Disorder Present on Admission":\n "Qualifying Encounter" InpatientEncounter\n where InpatientEncounter.isDiagnosisPresentOnAdmission ( "Neurologic Movement and Related Disorders", "Present on Admission or Clinically Undetermined" )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-risk-variable-encounter-with-abnormal-weight-loss-or-malnutrition-present-on-admission\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Risk Variable Encounter with Abnormal Weight Loss or Malnutrition Present on Admission":\n "Qualifying Encounter" InpatientEncounter\n where InpatientEncounter.isDiagnosisPresentOnAdmission ( "Abnormal Weight Loss", "Present on Admission or Clinically Undetermined" )\n or InpatientEncounter.isDiagnosisPresentOnAdmission ( "Malnutrition", "Present on Admission or Clinically Undetermined" )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-risk-variable-encounter-with-anticoagulant-active-at-admission\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">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 day of InpatientEncounter.period</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-risk-variable-body-mass-index-(bmi)\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">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</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-risk-variable-encounter-with-depression-present-on-admission\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Risk Variable Encounter with Depression Present on Admission":\n "Qualifying Encounter" InpatientEncounter\n where InpatientEncounter.isDiagnosisPresentOnAdmission ( "Depression", "Present on Admission or Clinically Undetermined" )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-risk-variable-encounter-with-epilepsy-present-on-admission\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Risk Variable Encounter with Epilepsy Present on Admission":\n "Qualifying Encounter" InpatientEncounter\n where InpatientEncounter.isDiagnosisPresentOnAdmission ( "Epilepsy", "Present on Admission or Clinically Undetermined" )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-risk-variable-encounter-with-diuretic-active-at-admission\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">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 day of InpatientEncounter.period</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-risk-variable-encounter-with-cns-depressant-active-at-admission\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">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 day of InpatientEncounter.period</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-sde-race\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "SDE Race":\n SDE."SDE Race"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-risk-variable-encounter-with-malignant-bone-disease-present-on-admission\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Risk Variable Encounter with Malignant Bone Disease Present on Admission":\n "Qualifying Encounter" InpatientEncounter\n where InpatientEncounter.isDiagnosisPresentOnAdmission ( "Malignant Bone Disease", "Present on Admission or Clinically Undetermined" )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-sde-sex\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "SDE Sex":\n SDE."SDE Sex"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-risk-variable-encounter-with-antihypertensive-active-at-admission\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">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 day of InpatientEncounter.period</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-risk-variable-encounter-with-opioid-medication-active-at-admission\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">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 day of InpatientEncounter.period</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-encounter-with-a-fall-diagnosis\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Encounter With A Fall Diagnosis":\n "Qualifying Encounter" QualifyingFall\n where QualifyingFall.reasonCode in "Inpatient Falls"\n or QualifyingFall.encountersDiagnosis ( ).code in "Inpatient Falls"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-encounter-with-a-fall-event\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">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 ( )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-encounter-where-a-fall-occurred\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Encounter Where A Fall Occurred":\n "Encounter With A Fall Diagnosis" EncounterFallDiagnosis\n union "Encounter With A Fall Event" EncounterFallEvent</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-encounter-with-a-fall-not-present-on-admission\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Encounter With A Fall Not Present On Admission":\n "Encounter Where A Fall Occurred" EncounterFallDiagnosis\n where EncounterFallDiagnosis.hasDiagnosisNotPresentOnAdmissionOrNull ( "Inpatient Falls" )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-encounter-where-a-fall-and-major-injury-occurred-not-poa\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">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 )\n and ( MajorFallOccurred.diagnosis in "Major Injuries"\n or MajorFallOccurred.diagnosis.getCondition ( ).code in "Major Injuries"\n )\n )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-encounter-where-a-fall-and-moderate-injury-occurred-not-poa\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">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 )\n and ( ModerateFallOccurred.diagnosis in "Moderate Injuries"\n or ModerateFallOccurred.diagnosis.getCondition ( ).code in "Moderate Injuries"\n )\n )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-numerator\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">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"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-denominator\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Denominator":\n "Initial Population"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-encounter-with-a-fall-present-on-admission\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Encounter With A Fall Present On Admission":\n "Qualifying Encounter" InpatientEncounter\n where InpatientEncounter.isDiagnosisPresentOnAdmission ( "Inpatient Falls", "Present on Admission or Clinically Undetermined" )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-numerator-exclusions\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Numerator Exclusions":\n "Encounter With A Fall Present On Admission"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-sde-ethnicity\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "SDE Ethnicity":\n SDE."SDE Ethnicity"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-denominator-exclusions\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Denominator Exclusions":\n "Encounter With A Fall Present On Admission"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-risk-variable-encounter-with-stroke-present-on-admission\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Risk Variable Encounter with Stroke Present on Admission":\n "Qualifying Encounter" InpatientEncounter\n where InpatientEncounter.isDiagnosisPresentOnAdmission ( "Stroke", "Present on Admission or Clinically Undetermined" )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-encountersdiagnosis\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define fluent function encountersDiagnosis(Encounter Encounter):\n Encounter.reasonReference EncDiag\n return singleton from ( ( [ConditionEncounterDiagnosis] ConditionED\n union [ConditionProblemsHealthConcerns] ConditionPHC ) Cond\n where EncDiag.references ( Cond.id )\n )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-denominator-observation\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function "Denominator Observation"(QualifyingEncounter Encounter):\n duration in days of QualifyingEncounter.hospitalizationWithObservation ( )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-hasdiagnosisnotpresentonadmissionornull\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define fluent function hasDiagnosisNotPresentOnAdmissionOrNull(encounter Encounter, diagnosisValueSet ValueSet):\n exists ( [Claim] C\n where C.status = 'active'\n and C.use = 'claim'\n and exists ( C.item I\n where I.encounter.references ( encounter )\n )\n return C.diagnosis D\n where exists ( C.item I\n where I.encounter.references ( encounter )\n and D.sequence in I.diagnosisSequence\n )\n and ( D.onAdmission is null\n or D.onAdmission in "Not Present On Admission or Documentation Insufficient to Determine"\n )\n and D.diagnosis in diagnosisValueSet\n )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms1017fhirhhfi-numerator-observation\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS1017FHIRHHFI</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function "Numerator Observation"(QualifyingEncounter Encounter):\n Count("Numerator" FallsEncounter\n where FallsEncounter.period ends during QualifyingEncounter.hospitalizationWithObservation()\n )</code></pre>\n </td>\n\n</tr>\n\n\n\n\n\n \n \n\n\n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"terminology\"> </a>Terminology</th>\n\n\n</tr>\n \n \n \n\n \n\n \n\n \n\n \n\n \n\n \n\n\n<tr>\n \n \n \n\n<th scope=\"row\" class=\"row-header\">Code System</th>\n\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Code system MedicationRequestCategory\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://terminology.hl7.org/CodeSystem/medicationrequest-category\n <br/>\n <em>Canonical URL</em>: <tt>http://terminology.hl7.org/CodeSystem/medicationrequest-category</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n \n\n<th scope=\"row\" class=\"row-header\">Code System</th>\n\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Code system SNOMEDCT\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://snomed.info/sct\n <br/>\n <em>Canonical URL</em>: <tt>http://snomed.info/sct</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Encounter Inpatient\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Observation Services\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Emergency Department Visit\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Osteoporosis\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1200.147\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1200.147</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Present on Admission or Clinically Undetermined\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.197\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.197</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Coagulation Disorders\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.23\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.23</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Antidepressants\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.163\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.163</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Not Present On Admission or Documentation Insufficient to Determine\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.198\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.198</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Leukemia or Lymphoma\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.136\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.136</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Obesity\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.162\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.162</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Peripheral Neuropathy\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.175\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.175</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Delirium, Dementia, and Other Psychoses\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.168\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.168</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Suicide Attempt\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.130\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.130</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Payer Type\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Liver Disease Moderate to Severe\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.137\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.137</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Anticoagulants for All Indications\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.22\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.22</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Neurologic Movement and Related Disorders\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.174\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.174</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Abnormal Weight Loss\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1258.2\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1258.2</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Malnutrition\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1272.1\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1272.1</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Depression\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.169\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.169</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Epilepsy\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.171\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.171</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Diuretics\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.170\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.170</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Central Nervous System Depressants\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.134\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.134</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Malignant Bone Disease\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.24\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.24</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Antihypertensives\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.164\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.164</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Opioids\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.120\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.120</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Inpatient Falls\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.171\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.171</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Major Injuries\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.120\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.120</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Moderate Injuries\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.205\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.205</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Stroke\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.176\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.176</tt>\n \n </td>\n</tr>\n \n\n\n \n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Display</em>: Community\n <br/>\n \n <em>Code</em>: community\n <br/>\n <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/medicationrequest-category</tt>\n </td>\n </tr>\n\n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Display</em>: Male (finding)\n <br/>\n \n <em>Code</em>: 248153007\n <br/>\n <em>System</em>: <tt>http://snomed.info/sct</tt>\n </td>\n </tr>\n\n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Display</em>: Female (finding)\n <br/>\n \n <em>Code</em>: 248152002\n <br/>\n <em>System</em>: <tt>http://snomed.info/sct</tt>\n </td>\n </tr>\n\n \n \n\n\n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"dependencies\"> </a>Dependencies</th>\n\n\n</tr>\n \n \n \n\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n <td class=\"content-container\">\n \n <em>Description</em>: QICore model information\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: http://hl7.org/fhir/Library/QICore-ModelInfo\n <br/>\n <em>Canonical URL</em>: <tt>http://hl7.org/fhir/Library/QICore-ModelInfo</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n <td class=\"content-container\">\n \n <em>Description</em>: Library CQMCommon\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: https://madie.cms.gov/Library/CQMCommon|4.1.000\n <br/>\n <em>Canonical URL</em>: <tt>https://madie.cms.gov/Library/CQMCommon|4.1.000</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n <td class=\"content-container\">\n \n <em>Description</em>: Library FHIRHelpers\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: https://madie.cms.gov/Library/FHIRHelpers|4.4.000\n <br/>\n <em>Canonical URL</em>: <tt>https://madie.cms.gov/Library/FHIRHelpers|4.4.000</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n <td class=\"content-container\">\n \n <em>Description</em>: Library QICoreCommon\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: https://madie.cms.gov/Library/QICoreCommon|4.0.000\n <br/>\n <em>Canonical URL</em>: <tt>https://madie.cms.gov/Library/QICoreCommon|4.0.000</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n <td class=\"content-container\">\n \n <em>Description</em>: Library CMD\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: https://madie.cms.gov/Library/CumulativeMedicationDuration|6.0.000\n <br/>\n <em>Canonical URL</em>: <tt>https://madie.cms.gov/Library/CumulativeMedicationDuration|6.0.000</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n <td class=\"content-container\">\n \n <em>Description</em>: Library SDE\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: https://madie.cms.gov/Library/SupplementalDataElements|5.1.000\n <br/>\n <em>Canonical URL</em>: <tt>https://madie.cms.gov/Library/SupplementalDataElements|5.1.000</tt>\n \n </td>\n</tr>\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n\n \n \n\n\n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"data-requirements\"> </a>Data Requirements</th>\n\n\n</tr>\n \n \n \n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, status, status.value, period, onAdmission, diagnosis, diagnosis.code\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, status, status.value, period, onAdmission, diagnosis, diagnosis.code\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, status, status.value, period, onAdmission, diagnosis, diagnosis.code, id, id.value, reasonCode\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Patient\n <br/>\n \n <em>Profile(s)</em>: \n \n http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient\n <br/> \n \n \n \n <em>Must Support Elements</em>: id, id.value, url, extension\n <br/>\n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Resource\n <br/>\n \n <em>Profile(s)</em>: \n \n http://hl7.org/fhir/StructureDefinition/Resource\n <br/> \n \n \n \n <em>Must Support Elements</em>: id, id.value\n <br/>\n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Claim\n <br/>\n \n <em>Profile(s)</em>: \n \n http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-claim\n <br/> \n \n \n \n <em>Must Support Elements</em>: status, status.value, use, use.value, item, diagnosis\n <br/>\n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Condition\n <br/>\n \n <em>Profile(s)</em>: \n \n http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-encounter-diagnosis\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Condition\n <br/>\n \n <em>Profile(s)</em>: \n \n http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-problems-health-concerns\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: MedicationRequest\n <br/>\n \n <em>Profile(s)</em>: \n \n http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest\n <br/> \n \n \n \n <em>Must Support Elements</em>: 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\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: medication</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.163\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: MedicationRequest\n <br/>\n \n <em>Profile(s)</em>: \n \n http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest\n <br/> \n \n \n \n <em>Must Support Elements</em>: 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\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: medication</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.22\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: MedicationRequest\n <br/>\n \n <em>Profile(s)</em>: \n \n http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest\n <br/> \n \n \n \n <em>Must Support Elements</em>: 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\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: medication</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.170\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: MedicationRequest\n <br/>\n \n <em>Profile(s)</em>: \n \n http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest\n <br/> \n \n \n \n <em>Must Support Elements</em>: 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\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: medication</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.134\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: MedicationRequest\n <br/>\n \n <em>Profile(s)</em>: \n \n http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest\n <br/> \n \n \n \n <em>Must Support Elements</em>: 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\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: medication</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.164\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: MedicationRequest\n <br/>\n \n <em>Profile(s)</em>: \n \n http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest\n <br/> \n \n \n \n <em>Must Support Elements</em>: 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\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: medication</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.120\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: MedicationRequest\n <br/>\n \n <em>Profile(s)</em>: \n \n http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest\n <br/> \n \n \n \n <em>Must Support Elements</em>: 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\n <br/>\n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Medication\n <br/>\n \n <em>Profile(s)</em>: \n \n http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication\n <br/> \n \n \n \n <em>Must Support Elements</em>: id.value, code\n <br/>\n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Coverage\n <br/>\n \n <em>Profile(s)</em>: \n \n http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: MedicationAdministration\n <br/>\n \n <em>Profile(s)</em>: \n \n http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationadministration\n <br/> \n \n \n \n <em>Must Support Elements</em>: medication, effective, status, status.value\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: medication</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.22\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: MedicationAdministration\n <br/>\n \n <em>Profile(s)</em>: \n \n http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationadministration\n <br/> \n \n \n \n <em>Must Support Elements</em>: medication.reference.value, effective, status, status.value\n <br/>\n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Observation\n <br/>\n \n <em>Profile(s)</em>: \n \n http://hl7.org/fhir/us/core/StructureDefinition/us-core-bmi\n <br/> \n \n \n \n <em>Must Support Elements</em>: effective, value, status, status.value\n <br/>\n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: AdverseEvent\n <br/>\n \n <em>Profile(s)</em>: \n \n http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-adverseevent\n <br/> \n \n \n \n <em>Must Support Elements</em>: event, date, date.value, recordedDate, recordedDate.value\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: event</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.171\n <br/> \n \n \n \n \n </td>\n</tr>\n\n \n \n\n<tr>\n <th colspan=\"2\" scope=\"row\" class=\"row-header\">Generated using version 0.4.8 of the sample-content-ig Liquid templates</th>\n</tr>\n\n </tbody>\n </table>\n</div>"
},
"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.isDiagnosisPresentOnAdmission ( \"Osteoporosis\", \"Present on Admission or Clinically Undetermined\" )"
},
{
"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.isDiagnosisPresentOnAdmission ( \"Coagulation Disorders\", \"Present on Admission or Clinically Undetermined\" )"
},
{
"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 day of 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.isDiagnosisPresentOnAdmission ( \"Leukemia or Lymphoma\", \"Present on Admission or Clinically Undetermined\" )"
},
{
"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.isDiagnosisPresentOnAdmission ( \"Obesity\", \"Present on Admission or Clinically Undetermined\" )"
},
{
"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.isDiagnosisPresentOnAdmission ( \"Peripheral Neuropathy\", \"Present on Admission or Clinically Undetermined\" )"
},
{
"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.isDiagnosisPresentOnAdmission ( \"Delirium, Dementia, and Other Psychoses\", \"Present on Admission or Clinically Undetermined\" )"
},
{
"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.isDiagnosisPresentOnAdmission ( \"Liver Disease Moderate to Severe\", \"Present on Admission or Clinically Undetermined\" )"
},
{
"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.isDiagnosisPresentOnAdmission ( \"Neurologic Movement and Related Disorders\", \"Present on Admission or Clinically Undetermined\" )"
},
{
"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.isDiagnosisPresentOnAdmission ( \"Abnormal Weight Loss\", \"Present on Admission or Clinically Undetermined\" )\n or InpatientEncounter.isDiagnosisPresentOnAdmission ( \"Malnutrition\", \"Present on Admission or Clinically Undetermined\" )"
},
{
"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 day of 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.isDiagnosisPresentOnAdmission ( \"Depression\", \"Present on Admission or Clinically Undetermined\" )"
},
{
"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.isDiagnosisPresentOnAdmission ( \"Epilepsy\", \"Present on Admission or Clinically Undetermined\" )"
},
{
"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 day of 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 day of 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.isDiagnosisPresentOnAdmission ( \"Malignant Bone Disease\", \"Present on Admission or Clinically Undetermined\" )"
},
{
"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 day of 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 day of 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\" QualifyingFall\n where QualifyingFall.reasonCode in \"Inpatient Falls\"\n or QualifyingFall.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\" EncounterFallDiagnosis\n union \"Encounter With A Fall Event\" EncounterFallEvent"
},
{
"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\" EncounterFallDiagnosis\n where EncounterFallDiagnosis.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 )\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 )\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.isDiagnosisPresentOnAdmission ( \"Inpatient Falls\", \"Present on Admission or Clinically Undetermined\" )"
},
{
"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.isDiagnosisPresentOnAdmission ( \"Stroke\", \"Present on Admission or Clinically Undetermined\" )"
},
{
"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" : "CQMCommon"
},
{
"url" : "name",
"valueString" : "isDiagnosisPresentOnAdmission"
},
{
"url" : "statement",
"valueString" : "/*\n @description: Returns true if the given diagnosis is present on admission, based on the given poaValueSet\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 */\n define fluent function isDiagnosisPresentOnAdmission(encounter Encounter, diagnosisValueSet ValueSet, poaValueSet ValueSet):\n exists (\n (encounter.claimDiagnosis()) CD\n where CD.onAdmission in poaValueSet\n and (\n CD.diagnosis in diagnosisValueSet\n or CD.diagnosis.getCondition().code in diagnosisValueSet\n )\n )"
},
{
"url" : "displaySequence",
"valueInteger" : 48
}
],
"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" : 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 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" : 50
}
],
"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" : 51
}
],
"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" : 52
}
],
"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" : 53
}
],
"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" : 54
}
],
"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" : 55
}
],
"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" : 56
}
],
"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" : 57
}
],
"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" : 58
}
],
"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" : 59
}
],
"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" : 60
}
],
"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 Encounter.reasonReference EncDiag\n return singleton from ( ( [ConditionEncounterDiagnosis] ConditionED\n union [ConditionProblemsHealthConcerns] ConditionPHC ) Cond\n where EncDiag.references ( Cond.id )\n )"
},
{
"url" : "displaySequence",
"valueInteger" : 61
}
],
"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" : 62
}
],
"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" : 63
}
],
"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 ( [Claim] C\n where C.status = 'active'\n and C.use = 'claim'\n and exists ( C.item I\n where I.encounter.references ( encounter )\n )\n return C.diagnosis D\n where exists ( C.item I\n where I.encounter.references ( encounter )\n and D.sequence in I.diagnosisSequence\n )\n and ( D.onAdmission is null\n or D.onAdmission in \"Not Present On Admission or Documentation Insufficient to Determine\"\n )\n and D.diagnosis in diagnosisValueSet\n )"
},
{
"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" : "QICore model information",
"resource" : "http://hl7.org/fhir/Library/QICore-ModelInfo"
},
{
"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 Osteoporosis",
"resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1200.147"
},
{
"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 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",
"onAdmission",
"diagnosis",
"diagnosis.code"
],
"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",
"onAdmission",
"diagnosis",
"diagnosis.code"
],
"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",
"onAdmission",
"diagnosis",
"diagnosis.code",
"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",
"diagnosis"
]
},
{
"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" : "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" : "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" : "<p>For every patient evaluated by this measure also identify payer, race, ethnicity and sex</p>"
},
{
"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" : "<p>Variables being collected for the development of baseline risk adjustment model include encounters with:</p>\n<p>Medications active on admission such as:</p>\n<ul>\n <li>anticoagulants</li>\n <li>antidepressants</li>\n <li>antihypertensives</li>\n <li>central nervous system depressant medications</li>\n <li>diuretics</li>\n <li>opioids</li>\n</ul>\n<p>Medications administered during the hospitalization, such as anticoagulants</p>\n<p>Diagnoses present on admission which may increase the risk for a fall with injury, such as:</p>\n<ul>\n <li>abnormal weight loss or malnutrition</li>\n <li>coagulation disorders</li>\n <li>delirium, dementia, or other psychosis</li>\n <li>depression</li>\n <li>epilepsy</li>\n <li>leukemia or lymphoma</li>\n <li>liver disease (moderate to severe)</li>\n <li>malignant bone disease</li>\n <li>neurologic movement and related disorders</li>\n <li>obesity</li>\n <li>osteoporosis</li>\n <li>peripheral neuropathy</li>\n <li>stroke</li>\n <li>suicide attempt</li>\n</ul>\n<p>Physical traits, such as body mass index (BMI)</p>\n<p>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.</p>"
},
{
"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:fd45e28d-9c60-47b3-93df-1a9e96c17795"
},
{
"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" : "1.0.000",
"name" : "CMS1017FHIRHHFI",
"title" : "Hospital Harm - Falls with InjuryFHIR\n",
"status" : "active",
"experimental" : false,
"date" : "2025-08-25T23:49:34+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\n",
"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\n<br />\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\n<br />\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. Example: 1 eligible encounter with a patient fall with moderate or major injury over 120 eligible days (1/120) x 1000 = 8.33.\n\n<br />\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\n<br />\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\n<br />\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).\n",
"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.\n",
"effectivePeriod" : {
"start" : "2026-01-01",
"end" : "2026-12-31"
},
"author" : [
{
"name" : "Mathematica",
"telecom" : [
{
"system" : "url",
"value" : "https://www.mathematica.org/"
}
]
}
],
"relatedArtifact" : [
{
"type" : "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" : "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" : "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" : "National Quality Forum. Serious Reportable Events. http://www.qualityforum.org/topics/sres/serious_reportable_events.aspx. Accessed July 24, 2019\n"
},
{
"type" : "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" : "NICE. (2013). Falls in older people: assessing risk and prevention. London, UK\n"
},
{
"type" : "citation",
"citation" : "Press Ganey Guidelines for Data Collection and Submission Patient Falls Indicator, January 2020\n"
},
{
"type" : "citation",
"citation" : "RNAO. (2017). Preventing falls and reducing injury from falls (4th edition). Toronto, ON\n"
},
{
"type" : "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" : "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\\].\n",
"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\n<br />\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\n<br />\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.\n",
"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\n<br />\n\nRecommended falls prevention guidelines are:\n\n<br />\n\n* Optimal Perioperative Management of the Geriatric Patient: Best Practices Guideline (ACS NSQIP/AGS, 2016)\n\n* Falls in older people: assessing risk and prevention (NICE, 2013)\n\n* Preventing falls and reducing injury from falls (4th edition) (RNAO, 2017)\n\n* Fall prevention in hospitals and nursing homes: Clinical practice guideline (Schoberer et al., 2022)\n\n* World guidelines for falls prevention and management for older adults: a global initiative, (Montero-Odasso et al., 2022)\n\n",
"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",
"valueString" : "None\n"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-improvementNotation",
"valueCodeableConcept" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-improvement-notation",
"code" : "decrease",
"display" : "Decreased score indicates improvement"
}
]
}
}
],
"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\n",
"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\n",
"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.\n",
"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.\n",
"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\n",
"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.\n",
"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.\n",
"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\n",
"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\n",
"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\n",
"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\n",
"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)\n",
"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\n",
"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\n",
"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\n",
"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\n",
"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\n",
"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\n",
"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\n",
"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\n",
"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\n",
"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\n",
"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\n",
"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\n",
"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\n",
"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\n",
"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\n",
"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\n",
"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\n",
"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\n",
"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\n",
"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\n",
"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\n",
"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\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "Risk Variable Encounter with Suicide Attempt"
}
}
]
}