eCQM QICore Content Implementation Guide
2023.0.0 - CI Build

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

## : Kidney Health EvaluationFHIR - XML Representation

Draft as of 2023-10-27

Raw xml | Download

    <Measure xmlns="http://hl7.org/fhir">
      <id value="KidneyHealthEvaluationFHIR"/>
      <meta>
        <profile
                 value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm"/>
        <profile
                 value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/publishable-measure-cqfm"/>
        <profile
                 value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/executable-measure-cqfm"/>
      </meta>
      <text>
        <status value="extensions"/>
        <div xmlns="http://www.w3.org/1999/xhtml">
        <table class="grid dict">

                <tr>
                    <th scope="row"><b>Title: </b></th>
                    <td style="padding-left: 4px;">Kidney Health EvaluationFHIR</td>
                </tr>

                <tr>
                    <th scope="row"><b>Id: </b></th>
                    <td style="padding-left: 4px;">KidneyHealthEvaluationFHIR</td>
                </tr>

                    <tr>
                        <th scope="row"><b>Download cql: </b></th>
                        <td style="padding-left: 4px;"><a href="Library-KidneyHealthEvaluationFHIR.cql">KidneyHealthEvaluationFHIR.cql</a></td>
                    </tr>

                <tr>
                    <th scope="row"><b>Version: </b></th>
                    <td style="padding-left: 4px;">0.0.005</td>
                </tr>

                <tr>
                    <th scope="row"><b>Url: </b></th>
                    <td style="padding-left: 4px;"><a href="Measure-KidneyHealthEvaluationFHIR.html">Kidney Health EvaluationFHIR</a></td>
                </tr>

                <tr>
                    <th scope="row">
                        <b>

                                    short-name identifier:

                        </b>
                    </th>

                    <td style="padding-left: 4px;">

                            <p style="margin-bottom: 5px;">
                                <span>CMS951FHIR</span>
                            </p>

                    </td>
                </tr>

                <tr>
                    <th scope="row">
                        <b>

                                    version-independent identifier:

                        </b>
                    </th>

                    <td style="padding-left: 4px;">

                            <p style="margin-bottom: 5px;">
                                <span>urn:uuid:e66e345d-d892-4fe2-84a7-748433b6e0a6</span>
                            </p>

                    </td>
                </tr>

                <tr>
                    <th scope="row">
                        <b>

                                    version-specific identifier:

                        </b>
                    </th>

                    <td style="padding-left: 4px;">

                            <p style="margin-bottom: 5px;">
                                <span>urn:uuid:2c928085806c39a2018085f3251705e4</span>
                            </p>

                    </td>
                </tr>

                <tr>
                    <th scope="row">
                        <b>

                                    publisher (CMS) identifier:

                        </b>
                    </th>

                    <td style="padding-left: 4px;">

                            <p style="margin-bottom: 5px;">
                                <span>951FHIR</span>
                            </p>

                    </td>
                </tr>

                <tr>
                    <th scope="row"><b>Effective Period: </b></th>
                    <td style="padding-left: 4px;">2024-01-01
                        ..2024-12-31</td>
                </tr>

                <tr>
                    <th scope="row"><b>Status: </b></th>
                    <td style="padding-left: 4px;">draft</td>
                </tr>

                <tr>
                    <th scope="row"><b>Date: </b></th>
                    <td style="padding-left: 4px;">2023-10-27 08:12:32+0000</td>
                </tr>

                <tr>
                    <th scope="row"><b>Approval Date: </b></th>
                    <td style="padding-left: 4px;">2023-08-14</td>
                </tr>

                <tr>
                    <th scope="row"><b>Last Review Date: </b></th>
                    <td style="padding-left: 4px;">2023-08-14</td>
                </tr>

                <tr>
                    <th scope="row"><b>Name: </b></th>
                    <td style="padding-left: 4px;">KidneyHealthEvaluationFHIR</td>
                </tr>

                <tr>
                    <th scope="row"><b>Publisher: </b></th>
                    <td style="padding-left: 4px;">National Kidney Foundation</td>
                </tr>

            <tr>
                <th scope="row"><b>Author: </b></th>
                <td style="padding-left: 4px;">National Kidney Foundation: <a href="www.kidney.org">www.kidney.org</a></td>
            </tr>

                <tr>
                    <th scope="row"><b>Description: </b></th>
                    <td style="padding-left: 4px;"><div><p>Percentage of patients aged 18-75 years with a diagnosis of diabetes who received a kidney health evaluation defined by an Estimated Glomerular Filtration Rate (eGFR) AND Urine Albumin-Creatinine Ratio (uACR) within the measurement period</p>
    </div></td>
                </tr>

                <tr>
                    <th scope="row"><b>Purpose: </b></th>
                    <td style="padding-left: 4px;"><div><p>UNKNOWN</p>
    </div></td>
                </tr>

                <tr>
                    <th scope="row"><b>Copyright: </b></th>
                    <td style="padding-left: 4px;"><div><p>Copyright 2022 National Kidney Foundation. All Rights Reserved.</p>
    </div></td>
                </tr>

                <tr>
                    <th scope="row"><b>Disclaimer: </b></th>
                    <td style="padding-left: 4px;"><div><p>Physician Performance Measures (Measures) and related data specifications developed by the National Kidney Foundation (NKF) are intended to facilitate quality improvement activities by health care professionals.</p>
    <p>These Measures are intended to assist health care professionals in enhancing quality of care. These Measures are not clinical guidelines and do not establish a standard of medical care and have not been tested for all potential applications. NKF encourages testing and evaluation of its Measures.</p>
    <p>Measures are subject to review and may be revised or rescinded at any time by NKF. The measures may not be altered without prior written approval from NKF. The measures, while copyrighted, can be reproduced and distributed, without modification, for noncommercial purposes. Commercial use is defined as the sale, license, or distribution of the measures for commercial gain, or incorporation of the measures into a product or service that is sold, licensed, or distributed for commercial gain. Commercial uses of the measures require a license agreement between the user and NKF. Neither NKF nor its members shall be responsible for any use of the measures.</p>
    <p>THESE MEASURES AND SPECIFICATIONS ARE PROVIDED &quot;AS IS&quot; WITHOUT WARRANTY OF ANY KIND.</p>
    <p>Limited proprietary coding is contained in the Measure specifications for convenience. Users of the proprietary code sets should obtain all necessary licenses from the owners of these code sets.</p>
    <p>CPT(R) contained in the Measure specifications is copyright 2004-2021 American Medical Association. LOINC(R) is copyright 2004-2021 Regenstrief Institute, Inc. This material contains SNOMED Clinical Terms(R) (SNOMED CT[R]) copyright 2004-2021 International Health Terminology Standards Development Organisation. ICD-10 is copyright 2021 World Health Organization. All Rights Reserved.</p>
    <p>The PCPI’s and AMA’s significant past efforts and contributions to the development and updating of the measure are acknowledged.</p>
    <p>Due to technical limitations, registered trademarks are indicated by (R) or [R].</p>
    </div></td>
                </tr>

            <tr>
                <th scope="row"><b>Rationale: </b></th>
                <td style="padding-left: 4px;"><div><p>Chronic Kidney Disease (CKD) is a major driver of morbidity, mortality and high healthcare costs in the United States. Currently, 37 million American adults have CKD and millions of others are at increased risk (NKF, 2019), with an estimated population prevalence growing to nearly 17% among Americans aged 30 years and older by the year 2030 (Saran, 2019; Hoerger, 2015). Total Medicare spending in 2016 on both CKD and ESRD was over $114 billion, comprising 23% of total Medicare fee-for-service spending overall with costs increasing exponentially with advancing CKD (Saran, 2019; Nichols, 2020). In the US from 2002-2016, the burden of CKD, defined as years of life lost, years living with disability, disability-adjusted life years, and deaths, outpaced changes in the burden of disease for other conditions (Bowe, 2018). Patients with CKD are readmitted to the hospital more frequently than those without diagnosed CKD (Saran, 2019). CKD is the 9th leading cause of death in the US and is the fastest growing non-communicable disease in terms of in burden largely due to death (Hoerger, 2015; Bowe, 2018). This public health issue is driven largely by the impact of diabetes—the most common comorbid risk factor for CKD (Saran, 2019; Bowe, 2018).</p>
    <p>The intent of this process measure is to improve rates of guideline-concordant kidney health evaluation in patients with diabetes to more consistently identify and potentially treat or delay progression of CKD in this high-risk population. Annual kidney health evaluation in patients with diabetes to determine risk of CKD using estimated glomerular filtration rate (eGFR) and urine albumin creatinine ratio (uACR) is recommended by clinical practice guidelines (ADA, 2022; NKF, 2007; NKF, 2012) and has been a focus of various local and national health care quality improvement initiatives, including Healthy People 2020 (United States Renal Data System, 2018). However, performance of these tests in patients with diabetes remains low, with rates that vary across Medicare (41.8%) and private insurers (49.0%) (Saran, 2019; Alfego, 2021; Stempneiwicz, 2021). Low rates of detection of CKD in a population of patients with diabetes have been demonstrated to be associated with low patient awareness of their own kidney health status (Szczech, 2014). Indeed, 90% of individuals with CKD are unaware of their condition due to under-recognition and under-diagnosis (Saran, 2019; Centers for Disease Control and Prevention, 2019). Currently, an individual’s lifetime probability of developing CKD is relatively high, reaching 54% for someone currently aged 30-49 years (Hoerger, 2015). Regular kidney health evaluations, utilizing both eGFR and uACR, provide an opportunity to improve identification and potential reversal of worsening kidney function, particularly in high risk populations, such as those with diabetes.</p>
    </div></td>
            </tr>

            <tr>
                <th scope="row"><b>Clinical recommendation statement: </b></th>
                <td style="padding-left: 4px;"><div><p>The following evidence statements are quoted verbatim from the referenced clinical guidelines and other sources, where applicable:</p>
    <p>At least once a year, assess urinary albumin (e.g., spot urinary albumin-to-creatinine ratio) and estimated glomerular filtration rate in patients with type 1 diabetes with duration of &gt;= 5 years, in all patients with type 2 diabetes, and in all patients with comorbid hypertension. B (American Diabetes Association Professional Practice Committee, 2019)</p>
    <p>Patients with diabetes should be screened annually for Diabetic Kidney Disease (DKD). Initial screening should commence:</p>
    <ul>
    <li>5 years after the diagnosis of type 1 diabetes; (A) or</li>
    <li>From diagnosis of type 2 diabetes. (B)</li>
    </ul>
    <p>Screening should include:</p>
    <ul>
    <li>Measurements of urinary albumin-creatinine ratio (ACR) in a spot urine sample; (B)</li>
    <li>Measurement of serum creatinine and estimation of GFR. (B)
    (National Kidney Foundation [NKF], 2007; NKF, 2012)</li>
    </ul>
    </div></td>
            </tr>

                <tr>
                    <th scope="row"><b>Guidance (Usage): </b></th>
                    <td style="padding-left: 4px;">This measure assesses performance of a comprehensive kidney evaluation in adults aged 18-75. This measure does not preclude or discourage the use of regular laboratory testing for CKD in patients outside of the age range (patients under 18 years and those over 75 years of age).

    This eCQM is a patient-based measure.

    This FHIR-based measure has been derived from the QDM-based measure: CMS951v1.

    Please refer to the HL7 QI-Core Implementation Guide (http://hl7.org/fhir/us/qicore/index.html) for more information on QI-Core and mapping recommendations from QDM to QI-Core 4.1.1 (http://hl7.org/fhir/us/qicore/qdm-to-qicore.html).</td>
                </tr>

                    <tr>
                        <th scope="row"><b>Population Criteria: </b></th>
                        <td style="padding-left: 4px;">

                                <table class="grid-dict">

                                        <tr>
                                            <th><b>638500824ba3d47c885c02a8</b></th>
                                        </tr>

                                        <tr>
                                            <td>Initial Population:</td>

                                                <td>All patients aged 18-75 years with a diagnosis of diabetes at the start of the measurement period with a visit during the measurement period</td>

                                        </tr>

                                        <tr>
                                            <td>Denominator:</td>

                                                <td>Equals Initial Population</td>

                                        </tr>

                                        <tr>
                                            <td>Denominator Exclusion:</td>

                                                <td>Patients with a diagnosis of End Stage Renal Disease (ESRD); Patients with a diagnosis of Chronic Kidney Disease (CKD) Stage 5; Patients who have an order for or are receiving hospice or palliative care</td>

                                        </tr>

                                        <tr>
                                            <td>Denominator Exception:</td>

                                                <td>None</td>

                                        </tr>

                                        <tr>
                                            <td>Numerator:</td>

                                                <td>Patients who received a kidney health evaluation defined by an Estimated Glomerular Filtration Rate (eGFR) AND Urine Albumin-Creatinine Ratio (uACR) within the measurement period</td>

                                        </tr>

                                        <tr>
                                            <td>Numerator Exclusion:</td>

                                                <td>None</td>

                                        </tr>

                                </table>

                        </td>
                    </tr>

                <tr>
                    <th scope="row"><b>Libraries: </b></th>
                    <td style="padding-left: 4px;">
                        <table class="grid-dict">

                                <tr>
                                    <td><a href="Library-KidneyHealthEvaluationFHIR.html">KidneyHealthEvaluationFHIR</a></td>
                                </tr>

                        </table>
                    </td>
                </tr>

                    <tr>
                        <th scope="row"><b>Related Artifact Dependencies: </b></th>
                        <td style="padding-left: 4px;">

                                <li><a href="Library-QICoreCommon.html">QICoreCommon</a> version: 1.5.000</li>

                                <li><a href="Library-FHIRHelpers.html">FHIRHelpers</a> version: 4.3.000</li>

                                <li><a href="Library-Hospice.html">Hospice</a> version: 6.7.000</li>

                                <li><a href="Library-Status.html">Status</a> version: 1.6.000</li>

                                <li><a href="Library-PalliativeCare.html">PalliativeCare</a> version: 1.7.000</li>

                                <li><a href="http://terminology.hl7.org/7.1.0/CodeSystem-condition-clinical.html">Condition Clinical Status Codes</a></li>

                                <li><a href="http://terminology.hl7.org/7.1.0/CodeSystem-v3-ActCode.html">ActCode</a></li>

                                <li><a href="http://hl7.org/fhir/R4/codesystem-snomedct.html">SNOMED CT (all versions)</a></li>

                                <li><a href="http://terminology.hl7.org/7.1.0/CodeSystem-observation-category.html">Observation Category Codes</a></li>

                                <li><a href="http://tx.fhir.org/r4/ValueSet/x-loinc2.82">LOINC</a></li>

                                <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.6929.3.1000/expansion">Estimated Glomerular Filtration Rate</a></li>

                                <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.6929.3.1007/expansion">Urine Albumin Creatinine Ratio</a></li>

                                <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.103.12.1001/expansion">Diabetes</a></li>

                                <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1240/expansion">Annual Wellness Visit</a></li>

                                <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1016/expansion">Home Healthcare Services</a></li>

                                <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1001/expansion">Office Visit</a></li>

                                <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1008/expansion">Outpatient Consultation</a></li>

                                <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1025/expansion">Preventive Care Services - Established Office Visit, 18 and Up</a></li>

                                <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1023/expansion">Preventive Care Services-Initial Office Visit, 18 and Up</a></li>

                                <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1080/expansion">Telephone Visits</a></li>

                                <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1002/expansion">Chronic Kidney Disease, Stage 5</a></li>

                                <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.353/expansion">End Stage Renal Disease</a></li>

                                <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.666.5.307/expansion">Encounter Inpatient</a></li>

                                <li><a href="https://tx.fhir.org/r4/ValueSet/2.16.840.1.113883.3.464.1003.1003-20210820">Hospice Encounter</a></li>

                                <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1584/expansion">Hospice Care Ambulatory</a></li>

                                <li><a href="https://tx.fhir.org/r4/ValueSet/2.16.840.1.113883.3.464.1003.1165-20220818">Hospice Diagnosis</a></li>

                                <li><a href="https://tx.fhir.org/r4/ValueSet/2.16.840.1.113883.3.464.1003.1167-20220820">Palliative Care Diagnosis</a></li>

                                <li><a href="https://tx.fhir.org/r4/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1090-20210224">Palliative Care Encounter</a></li>

                                <li><a href="https://tx.fhir.org/r4/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1135-20210224">Palliative Care Intervention</a></li>

                        </td>
                    </tr>
                    <tr>
                        <th scope="row"><b>Parameters:</b></th>
                        <td style="padding-left: 4px;">
                            <table class="grid-dict">
                                <tr>
                                    <th><b>name</b></th>
                                    <th><b>use</b></th>
                                    <th><b>min</b></th>
                                    <th><b>max</b></th>
                                    <th><b>type</b></th>
                                </tr>

                                    <tr>
                                        <td>Measurement Period</td>
                                        <td>In</td>
                                        <td>0</td>
                                        <td>1</td>
                                        <td>Period</td>
                                    </tr>

                                    <tr>
                                        <td>Numerator</td>
                                        <td>Out</td>
                                        <td>0</td>
                                        <td>1</td>
                                        <td>boolean</td>
                                    </tr>

                                    <tr>
                                        <td>Denominator</td>
                                        <td>Out</td>
                                        <td>0</td>
                                        <td>1</td>
                                        <td>boolean</td>
                                    </tr>

                                    <tr>
                                        <td>Initial Population</td>
                                        <td>Out</td>
                                        <td>0</td>
                                        <td>1</td>
                                        <td>boolean</td>
                                    </tr>

                                    <tr>
                                        <td>Denominator Exclusions</td>
                                        <td>Out</td>
                                        <td>0</td>
                                        <td>1</td>
                                        <td>boolean</td>
                                    </tr>

                            </table>
                        </td>
                    </tr>

                    <tr>
                        <th scope="row"><b>DataRequirements:</b></th>
                        <td style="padding-left: 4px;">
                            <table class="grid-dict">
                                <tr>
                                    <th><b>Type</b></th>
                                    <th><b>Elements</b></th>
                                    <th><b>Valueset Name</b></th>
                                    <th><b>Valueset</b></th>
                                </tr>

                                    <tr>
                                        <td>Patient(<a href="http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-patient.html">QICorePatient</a>)</td>
                                        <td>

                                        </td>
                                        <td>

                                        </td>
                                        <td/>
                                    </tr>

                                    <tr>
                                        <td>Observation(<a href="http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-observation.html">QICoreObservation</a>)</td>
                                        <td>

                                                code

                                                effective

                                                value

                                                status

                                                status.value

                                                category

                                        </td>
                                        <td>

                                                     Estimated Glomerular Filtration Rate

                                        </td>
                                        <td><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.6929.3.1000/expansion">Estimated Glomerular Filtration Rate</a></td>
                                    </tr>

                                    <tr>
                                        <td>Observation(<a href="http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-observation.html">QICoreObservation</a>)</td>
                                        <td>

                                                code

                                                effective

                                                value

                                                status

                                                status.value

                                                category

                                        </td>
                                        <td>

                                                     Urine Albumin Creatinine Ratio

                                        </td>
                                        <td><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.6929.3.1007/expansion">Urine Albumin Creatinine Ratio</a></td>
                                    </tr>

                                    <tr>
                                        <td>Observation(<a href="http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-observation.html">QICoreObservation</a>)</td>
                                        <td>

                                                code

                                                value

                                                effective

                                                status

                                                status.value

                                                category

                                        </td>
                                        <td>

                                        </td>
                                        <td/>
                                    </tr>

                                    <tr>
                                        <td>Observation(<a href="http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-observation.html">QICoreObservation</a>)</td>
                                        <td>

                                                code

                                                effective

                                                status

                                                status.value

                                                category

                                        </td>
                                        <td>

                                        </td>
                                        <td/>
                                    </tr>

                                    <tr>
                                        <td>Condition(<a href="http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-condition.html">QICoreCondition</a>)</td>
                                        <td>

                                                code

                                                clinicalStatus

                                        </td>
                                        <td>

                                                     Diabetes

                                        </td>
                                        <td><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.103.12.1001/expansion">Diabetes</a></td>
                                    </tr>

                                    <tr>
                                        <td>Condition(<a href="http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-condition.html">QICoreCondition</a>)</td>
                                        <td>

                                                code

                                                clinicalStatus

                                        </td>
                                        <td>

                                                     Chronic Kidney Disease, Stage 5

                                        </td>
                                        <td><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1002/expansion">Chronic Kidney Disease, Stage 5</a></td>
                                    </tr>

                                    <tr>
                                        <td>Condition(<a href="http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-condition.html">QICoreCondition</a>)</td>
                                        <td>

                                                code

                                                clinicalStatus

                                        </td>
                                        <td>

                                                     End Stage Renal Disease

                                        </td>
                                        <td><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.353/expansion">End Stage Renal Disease</a></td>
                                    </tr>

                                    <tr>
                                        <td>Condition(<a href="http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-condition.html">QICoreCondition</a>)</td>
                                        <td>

                                                code

                                                clinicalStatus

                                        </td>
                                        <td>

                                                     Hospice Diagnosis

                                        </td>
                                        <td><a href="https://tx.fhir.org/r4/ValueSet/2.16.840.1.113883.3.464.1003.1165-20220818">Hospice Diagnosis</a></td>
                                    </tr>

                                    <tr>
                                        <td>Condition(<a href="http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-condition.html">QICoreCondition</a>)</td>
                                        <td>

                                                code

                                                clinicalStatus

                                        </td>
                                        <td>

                                                     Palliative Care Diagnosis

                                        </td>
                                        <td><a href="https://tx.fhir.org/r4/ValueSet/2.16.840.1.113883.3.464.1003.1167-20220820">Palliative Care Diagnosis</a></td>
                                    </tr>

                                    <tr>
                                        <td>Encounter(<a href="http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-encounter.html">QICoreEncounter</a>)</td>
                                        <td>

                                                type

                                                period

                                                class

                                                status

                                                status.value

                                        </td>
                                        <td>

                                                     Annual Wellness Visit

                                        </td>
                                        <td><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1240/expansion">Annual Wellness Visit</a></td>
                                    </tr>

                                    <tr>
                                        <td>Encounter(<a href="http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-encounter.html">QICoreEncounter</a>)</td>
                                        <td>

                                                type

                                                period

                                                class

                                                status

                                                status.value

                                        </td>
                                        <td>

                                                     Home Healthcare Services

                                        </td>
                                        <td><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1016/expansion">Home Healthcare Services</a></td>
                                    </tr>

                                    <tr>
                                        <td>Encounter(<a href="http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-encounter.html">QICoreEncounter</a>)</td>
                                        <td>

                                                type

                                                period

                                                class

                                                status

                                                status.value

                                        </td>
                                        <td>

                                                     Office Visit

                                        </td>
                                        <td><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1001/expansion">Office Visit</a></td>
                                    </tr>

                                    <tr>
                                        <td>Encounter(<a href="http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-encounter.html">QICoreEncounter</a>)</td>
                                        <td>

                                                type

                                                period

                                                class

                                                status

                                                status.value

                                        </td>
                                        <td>

                                                     Outpatient Consultation

                                        </td>
                                        <td><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1008/expansion">Outpatient Consultation</a></td>
                                    </tr>

                                    <tr>
                                        <td>Encounter(<a href="http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-encounter.html">QICoreEncounter</a>)</td>
                                        <td>

                                                type

                                                period

                                                class

                                                status

                                                status.value

                                        </td>
                                        <td>

                                                     Preventive Care Services Established Office Visit, 18 and Up

                                        </td>
                                        <td><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1025/expansion">Preventive Care Services - Established Office Visit, 18 and Up</a></td>
                                    </tr>

                                    <tr>
                                        <td>Encounter(<a href="http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-encounter.html">QICoreEncounter</a>)</td>
                                        <td>

                                                type

                                                period

                                                class

                                                status

                                                status.value

                                        </td>
                                        <td>

                                                     Preventive Care Services Initial Office Visit, 18 and Up

                                        </td>
                                        <td><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1023/expansion">Preventive Care Services-Initial Office Visit, 18 and Up</a></td>
                                    </tr>

                                    <tr>
                                        <td>Encounter(<a href="http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-encounter.html">QICoreEncounter</a>)</td>
                                        <td>

                                                type

                                                period

                                                class

                                                status

                                                status.value

                                        </td>
                                        <td>

                                                     Telephone Visits

                                        </td>
                                        <td><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1080/expansion">Telephone Visits</a></td>
                                    </tr>

                                    <tr>
                                        <td>Encounter(<a href="http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-encounter.html">QICoreEncounter</a>)</td>
                                        <td>

                                                type

                                                hospitalization

                                                hospitalization.dischargeDisposition

                                                period

                                                class

                                                status

                                                status.value

                                        </td>
                                        <td>

                                                     Encounter Inpatient

                                        </td>
                                        <td><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.666.5.307/expansion">Encounter Inpatient</a></td>
                                    </tr>

                                    <tr>
                                        <td>Encounter(<a href="http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-encounter.html">QICoreEncounter</a>)</td>
                                        <td>

                                                type

                                                period

                                                class

                                                status

                                                status.value

                                        </td>
                                        <td>

                                                     Hospice Encounter

                                        </td>
                                        <td><a href="https://tx.fhir.org/r4/ValueSet/2.16.840.1.113883.3.464.1003.1003-20210820">Hospice Encounter</a></td>
                                    </tr>

                                    <tr>
                                        <td>Encounter(<a href="http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-encounter.html">QICoreEncounter</a>)</td>
                                        <td>

                                                type

                                                period

                                                class

                                                status

                                                status.value

                                        </td>
                                        <td>

                                                     Palliative Care Encounter

                                        </td>
                                        <td><a href="https://tx.fhir.org/r4/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1090-20210224">Palliative Care Encounter</a></td>
                                    </tr>

                                    <tr>
                                        <td>ServiceRequest(<a href="http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-servicerequest.html">QICoreServiceRequest</a>)</td>
                                        <td>

                                                code

                                                authoredOn

                                                authoredOn.value

                                                status

                                                status.value

                                                intent

                                                intent.value

                                        </td>
                                        <td>

                                                     Hospice Care Ambulatory

                                        </td>
                                        <td><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1584/expansion">Hospice Care Ambulatory</a></td>
                                    </tr>

                                    <tr>
                                        <td>Procedure(<a href="http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-procedure.html">QICoreProcedure</a>)</td>
                                        <td>

                                                code

                                                performed

                                                status

                                                status.value

                                        </td>
                                        <td>

                                                     Hospice Care Ambulatory

                                        </td>
                                        <td><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1584/expansion">Hospice Care Ambulatory</a></td>
                                    </tr>

                                    <tr>
                                        <td>Procedure(<a href="http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-procedure.html">QICoreProcedure</a>)</td>
                                        <td>

                                                code

                                                performed

                                                status

                                                status.value

                                        </td>
                                        <td>

                                                     Palliative Care Intervention

                                        </td>
                                        <td><a href="https://tx.fhir.org/r4/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1135-20210224">Palliative Care Intervention</a></td>
                                    </tr>

                            </table>
                        </td>
                    </tr>

                        <tr>
                            <th scope="row"><b>Direct Reference Codes:</b></th>
                            <td style="padding-left: 4px;">
                                <table class="grid-dict">
                                    <tr>
                                        <th><b>display</b></th>
                                        <th><b>code</b></th>
                                        <th><b>system</b></th>
                                    </tr>

                                        <tr>
                                            <td/>
                                            <td>active</td>
                                            <td><a href="http://terminology.hl7.org/7.1.0/CodeSystem-condition-clinical.html">http://terminology.hl7.org/CodeSystem/condition-clinical</a></td>
                                        </tr>

                                        <tr>
                                            <td>Ambulatory</td>
                                            <td>AMB</td>
                                            <td><a href="http://terminology.hl7.org/7.1.0/CodeSystem-v3-ActCode.html">http://terminology.hl7.org/CodeSystem/v3-ActCode</a></td>
                                        </tr>

                                        <tr>
                                            <td>Discharge to home for hospice care (procedure)</td>
                                            <td>428361000124107</td>
                                            <td><a href="https://browser.ihtsdotools.org/">http://snomed.info/sct</a></td>
                                        </tr>

                                        <tr>
                                            <td>Discharge to healthcare facility for hospice care (procedure)</td>
                                            <td>428371000124100</td>
                                            <td><a href="https://browser.ihtsdotools.org/">http://snomed.info/sct</a></td>
                                        </tr>

                                        <tr>
                                            <td>survey</td>
                                            <td>survey</td>
                                            <td><a href="http://terminology.hl7.org/7.1.0/CodeSystem-observation-category.html">http://terminology.hl7.org/CodeSystem/observation-category</a></td>
                                        </tr>

                                        <tr>
                                            <td>Hospice care [Minimum Data Set]</td>
                                            <td>45755-6</td>
                                            <td><a href="https://loinc.org/">http://loinc.org</a></td>
                                        </tr>

                                        <tr>
                                            <td>Yes (qualifier value)</td>
                                            <td>373066001</td>
                                            <td><a href="https://browser.ihtsdotools.org/">http://snomed.info/sct</a></td>
                                        </tr>

                                        <tr>
                                            <td>Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal)</td>
                                            <td>71007-9</td>
                                            <td><a href="https://loinc.org/">http://loinc.org</a></td>
                                        </tr>

                                </table>
                            </td>
                        </tr>

                    <tr>
                        <th scope="row"><b>Logic Definitions:</b></th>
                        <td style="padding-left: 4px;">

                            <table class="grid-dict">
                                <tr>
                                    <th><b>Group</b></th>
                                    <th><b>Scoring</b></th>
                                    <th><b>Population Criteria</b></th>
                                    <th><b>Expression</b></th>
                                </tr>
                                <tr>

                                    <td> 638500824ba3d47c885c02a8 </td>
                                    <td>

                                            <b>Group scoring:</b>

                                                <span>  proportion </span>

                                    </td>

                                    <tr>
                                        <td/>
                                        <td/>
                                        <td>Initial Population</td>
                                        <td>

                                                <pre><code class="language-cql">define &quot;Initial Population&quot;:
      AgeInYearsAt(date from start of &quot;Measurement Period&quot;) in Interval[18, 75]
        and &quot;Has Active Diabetes Overlaps Measurement Period&quot;
        and &quot;Has Outpatient Visit During Measurement Period&quot;</code></pre>

                                        </td>
                                    </tr>

                                    <tr>
                                        <td/>
                                        <td/>
                                        <td>Denominator</td>
                                        <td>

                                                <pre><code class="language-cql">define &quot;Denominator&quot;:
      &quot;Initial Population&quot;</code></pre>

                                        </td>
                                    </tr>

                                    <tr>
                                        <td/>
                                        <td/>
                                        <td>Denominator Exclusion</td>
                                        <td>

                                                <pre><code class="language-cql">define &quot;Denominator Exclusions&quot;:
      exists &quot;Has CKD Stage 5 or ESRD Diagnosis Overlaps Measurement Period&quot;
        or Hospice.&quot;Has Hospice Services&quot;
        or PalliativeCare.&quot;Has Palliative Care in the Measurement Period&quot;</code></pre>

                                        </td>
                                    </tr>

                                    <tr>
                                        <td/>
                                        <td/>
                                        <td>Denominator Exception</td>
                                        <td>

                                                None

                                        </td>
                                    </tr>

                                    <tr>
                                        <td/>
                                        <td/>
                                        <td>Numerator</td>
                                        <td>

                                                <pre><code class="language-cql">define &quot;Numerator&quot;:
      &quot;Has Kidney Panel Performed During Measurement Period&quot;</code></pre>

                                        </td>
                                    </tr>

                                    <tr>
                                        <td/>
                                        <td/>
                                        <td>Numerator Exclusion</td>
                                        <td>

                                                None

                                        </td>
                                    </tr>

                                </tr>
                            </table>

                    <table class="grid-dict">

                            <tr>
                                <th><b>Library Name</b></th>
                                <th><b>Name</b></th>
                            </tr>
                            <tr>

                                    <td>KidneyHealthEvaluationFHIR</td>

                                    <td>Has Kidney Panel Performed During Measurement Period</td>

                            </tr>
                            <tr>

                                    <td/>
                                    <td>
                                        <pre class="highlight language-cql"><code class="language-cql">define &quot;Has Kidney Panel Performed During Measurement Period&quot;:
      exists ( [&quot;Observation&quot;: &quot;Estimated Glomerular Filtration Rate&quot;] eGFRTest
          where QICoreCommon.&quot;ToInterval&quot; ( eGFRTest.effective ) during &quot;Measurement Period&quot;
            and eGFRTest.value is not null
            and eGFRTest.status in { 'final', 'amended', 'corrected' }
      )
        and exists ( [&quot;Observation&quot;: &quot;Urine Albumin Creatinine Ratio&quot;] uACRTest
            where QICoreCommon.&quot;ToInterval&quot; ( uACRTest.effective ) during &quot;Measurement Period&quot;
              and uACRTest.value is not null
              and uACRTest.status in { 'final', 'amended', 'corrected' }
        )</code></pre>
                                    </td>

                            </tr>

                            <tr>
                                <th><b>Library Name</b></th>
                                <th><b>Name</b></th>
                            </tr>
                            <tr>

                                    <td>KidneyHealthEvaluationFHIR</td>

                                    <td>Numerator</td>

                            </tr>
                            <tr>

                                    <td/>
                                    <td>
                                        <pre class="highlight language-cql"><code class="language-cql">define &quot;Numerator&quot;:
      &quot;Has Kidney Panel Performed During Measurement Period&quot;</code></pre>
                                    </td>

                            </tr>

                            <tr>
                                <th><b>Library Name</b></th>
                                <th><b>Name</b></th>
                            </tr>
                            <tr>

                                    <td>KidneyHealthEvaluationFHIR</td>

                                    <td>Has Active Diabetes Overlaps Measurement Period</td>

                            </tr>
                            <tr>

                                    <td/>
                                    <td>
                                        <pre class="highlight language-cql"><code class="language-cql">define &quot;Has Active Diabetes Overlaps Measurement Period&quot;:
      exists ( [&quot;Condition&quot;: &quot;Diabetes&quot;] Diabetes
          where QICoreCommon.&quot;ToPrevalenceInterval&quot; ( Diabetes ) overlaps &quot;Measurement Period&quot;
            and Diabetes.clinicalStatus ~ &quot;active&quot;
      )</code></pre>
                                    </td>

                            </tr>

                            <tr>
                                <th><b>Library Name</b></th>
                                <th><b>Name</b></th>
                            </tr>
                            <tr>

                                    <td>KidneyHealthEvaluationFHIR</td>

                                    <td>Has Outpatient Visit During Measurement Period</td>

                            </tr>
                            <tr>

                                    <td/>
                                    <td>
                                        <pre class="highlight language-cql"><code class="language-cql">define &quot;Has Outpatient Visit During Measurement Period&quot;:
      exists ( ( [&quot;Encounter&quot;: &quot;Annual Wellness Visit&quot;]
          union [&quot;Encounter&quot;: &quot;Home Healthcare Services&quot;]
          union [&quot;Encounter&quot;: &quot;Office Visit&quot;]
          union [&quot;Encounter&quot;: &quot;Outpatient Consultation&quot;]
          union [&quot;Encounter&quot;: &quot;Preventive Care Services Established Office Visit, 18 and Up&quot;]
          union [&quot;Encounter&quot;: &quot;Preventive Care Services Initial Office Visit, 18 and Up&quot;]
          union [&quot;Encounter&quot;: &quot;Telephone Visits&quot;] ) ValidEncounter
          where ValidEncounter.period during &quot;Measurement Period&quot;
            and ValidEncounter.class ~ &quot;AMB&quot;
            and ValidEncounter.status = 'finished'
      )</code></pre>
                                    </td>

                            </tr>

                            <tr>
                                <th><b>Library Name</b></th>
                                <th><b>Name</b></th>
                            </tr>
                            <tr>

                                    <td>KidneyHealthEvaluationFHIR</td>

                                    <td>Initial Population</td>

                            </tr>
                            <tr>

                                    <td/>
                                    <td>
                                        <pre class="highlight language-cql"><code class="language-cql">define &quot;Initial Population&quot;:
      AgeInYearsAt(date from start of &quot;Measurement Period&quot;) in Interval[18, 75]
        and &quot;Has Active Diabetes Overlaps Measurement Period&quot;
        and &quot;Has Outpatient Visit During Measurement Period&quot;</code></pre>
                                    </td>

                            </tr>

                            <tr>
                                <th><b>Library Name</b></th>
                                <th><b>Name</b></th>
                            </tr>
                            <tr>

                                    <td>KidneyHealthEvaluationFHIR</td>

                                    <td>Denominator</td>

                            </tr>
                            <tr>

                                    <td/>
                                    <td>
                                        <pre class="highlight language-cql"><code class="language-cql">define &quot;Denominator&quot;:
      &quot;Initial Population&quot;</code></pre>
                                    </td>

                            </tr>

                            <tr>
                                <th><b>Library Name</b></th>
                                <th><b>Name</b></th>
                            </tr>
                            <tr>

                                    <td>KidneyHealthEvaluationFHIR</td>

                                    <td>Has CKD Stage 5 or ESRD Diagnosis Overlaps Measurement Period</td>

                            </tr>
                            <tr>

                                    <td/>
                                    <td>
                                        <pre class="highlight language-cql"><code class="language-cql">define &quot;Has CKD Stage 5 or ESRD Diagnosis Overlaps Measurement Period&quot;:
      ( [&quot;Condition&quot;: &quot;Chronic Kidney Disease, Stage 5&quot;]
        union [&quot;Condition&quot;: &quot;End Stage Renal Disease&quot;] ) CKDOrESRD
        where QICoreCommon.&quot;ToPrevalenceInterval&quot; ( CKDOrESRD ) overlaps &quot;Measurement Period&quot;
          and CKDOrESRD.clinicalStatus ~ &quot;active&quot;</code></pre>
                                    </td>

                            </tr>

                            <tr>
                                <th><b>Library Name</b></th>
                                <th><b>Name</b></th>
                            </tr>
                            <tr>

                                    <td>Hospice</td>

                                    <td>Has Hospice Services</td>

                            </tr>
                            <tr>

                                    <td/>
                                    <td>
                                        <pre class="highlight language-cql"><code class="language-cql">define &quot;Has Hospice Services&quot;:
      exists ((([Encounter: &quot;Encounter Inpatient&quot;]).isEncounterPerformed()) InpatientEncounter
          where (InpatientEncounter.hospitalization.dischargeDisposition ~ &quot;Discharge to home for hospice care (procedure)&quot;
              or InpatientEncounter.hospitalization.dischargeDisposition ~ &quot;Discharge to healthcare facility for hospice care (procedure)&quot;
          )
            and InpatientEncounter.period.toInterval() ends during day of &quot;Measurement Period&quot;
      )
        or exists ((([Encounter: &quot;Hospice Encounter&quot;]).isEncounterPerformed()) HospiceEncounter
            where HospiceEncounter.period.toInterval() overlaps day of &quot;Measurement Period&quot;
        )
        or exists ((([Observation: &quot;Hospice care [Minimum Data Set]&quot;]).isAssessmentPerformed()) HospiceAssessment
            where HospiceAssessment.value ~ &quot;Yes (qualifier value)&quot;
              and HospiceAssessment.effective.toInterval() overlaps day of &quot;Measurement Period&quot;
        )
        or exists ((([ServiceRequest: &quot;Hospice Care Ambulatory&quot;]).isInterventionOrder()) HospiceOrder
            where HospiceOrder.authoredOn.toInterval() during day of &quot;Measurement Period&quot;
        )
        or exists ((([Procedure: &quot;Hospice Care Ambulatory&quot;]).isInterventionPerformed()) HospicePerformed
            where HospicePerformed.performed.toInterval() overlaps day of &quot;Measurement Period&quot;
        )
        or exists (([Condition: &quot;Hospice Diagnosis&quot;]) HospiceCareDiagnosis
            where HospiceCareDiagnosis.prevalenceInterval() overlaps day of &quot;Measurement Period&quot;
        )</code></pre>
                                    </td>

                            </tr>

                            <tr>
                                <th><b>Library Name</b></th>
                                <th><b>Name</b></th>
                            </tr>
                            <tr>

                                    <td>PalliativeCare</td>

                                    <td>Has Palliative Care in the Measurement Period</td>

                            </tr>
                            <tr>

                                    <td/>
                                    <td>
                                        <pre class="highlight language-cql"><code class="language-cql">define &quot;Has Palliative Care in the Measurement Period&quot;:
      exists ((([Observation: &quot;Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal)&quot;]).isAssessmentPerformed()) PalliativeAssessment
          where PalliativeAssessment.effective.toInterval() overlaps day of &quot;Measurement Period&quot;
      )
        or exists ([Condition: &quot;Palliative Care Diagnosis&quot;] PalliativeDiagnosis
            where PalliativeDiagnosis.prevalenceInterval() overlaps day of &quot;Measurement Period&quot;
        )
        or exists ((([Encounter: &quot;Palliative Care Encounter&quot;]).isEncounterPerformed()) PalliativeEncounter
            where PalliativeEncounter.period.toInterval() overlaps day of &quot;Measurement Period&quot;
        )
        or exists ((([Procedure: &quot;Palliative Care Intervention&quot;]).isInterventionPerformed()) PalliativeIntervention
            where PalliativeIntervention.performed.toInterval() overlaps day of &quot;Measurement Period&quot;
        )</code></pre>
                                    </td>

                            </tr>

                            <tr>
                                <th><b>Library Name</b></th>
                                <th><b>Name</b></th>
                            </tr>
                            <tr>

                                    <td>KidneyHealthEvaluationFHIR</td>

                                    <td>Denominator Exclusions</td>

                            </tr>
                            <tr>

                                    <td/>
                                    <td>
                                        <pre class="highlight language-cql"><code class="language-cql">define &quot;Denominator Exclusions&quot;:
      exists &quot;Has CKD Stage 5 or ESRD Diagnosis Overlaps Measurement Period&quot;
        or Hospice.&quot;Has Hospice Services&quot;
        or PalliativeCare.&quot;Has Palliative Care in the Measurement Period&quot;</code></pre>
                                    </td>

                            </tr>

                            <tr>
                                <th><b>Library Name</b></th>
                                <th><b>Name</b></th>
                            </tr>
                            <tr>

                                    <td>QICoreCommon</td>

                                    <td>ToInterval</td>

                            </tr>
                            <tr>

                                    <td/>
                                    <td>
                                        <pre class="highlight language-cql"><code class="language-cql">/*
    @description: Normalizes a value that is a choice of timing-valued types to an equivalent interval
    @comment: Normalizes a choice type of DateTime, Quanitty, Interval&lt;DateTime&gt;, or Interval&lt;Quantity&gt; types
    to an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible
    representations for timing-valued elements in QICore, allowing this function to be used across any resource.
    The input can be provided as a DateTime, Quantity, Interval&lt;DateTime&gt; or Interval&lt;Quantity&gt;.
    The intent of this function is to provide a clear and concise mechanism to treat single
    elements that have multiple possible representations as intervals so that logic doesn't have to account
    for the variability. More complex calculations (such as medication request period or dispense period
    calculation) need specific guidance and consideration. That guidance may make use of this function, but
    the focus of this function is on single element calculations where the semantics are unambiguous.
    If the input is a DateTime, the result a DateTime Interval beginning and ending on that DateTime.
    If the input is a Quantity, the quantity is expected to be a calendar-duration interpreted as an Age,
    and the result is a DateTime Interval beginning on the Date the patient turned that age and ending immediately before one year later.
    If the input is a DateTime Interval, the result is the input.
    If the input is a Quantity Interval, the quantities are expected to be calendar-durations interpreted as an Age, and the result
    is a DateTime Interval beginning on the date the patient turned the age given as the start of the quantity interval, and ending
    immediately before one year later than the date the patient turned the age given as the end of the quantity interval.
    Any other input will reslt in a null DateTime Interval
    @deprecated: This function is deprecated. Use the fluent function `toInterval()` instead
    */
    define function ToInterval(choice Choice&lt;DateTime, Quantity, Interval&lt;DateTime&gt;, Interval&lt;Quantity&gt;&gt;):
      case
    	  when choice is DateTime then
        	Interval[choice as DateTime, choice as DateTime]
    		when choice is Interval&lt;DateTime&gt; then
      		choice as Interval&lt;DateTime&gt;
    		when choice is Quantity then
    		  Interval[Patient.birthDate + (choice as Quantity),
    			  Patient.birthDate + (choice as Quantity) + 1 year)
    		when choice is Interval&lt;Quantity&gt; then
    		  Interval[Patient.birthDate + (choice.low as Quantity),
    			  Patient.birthDate + (choice.high as Quantity) + 1 year)
    		when choice is QICore.Timing then
                null as Interval&lt;DateTime&gt;
    		else
    			null as Interval&lt;DateTime&gt;
    	end</code></pre>
                                    </td>

                            </tr>

                            <tr>
                                <th><b>Library Name</b></th>
                                <th><b>Name</b></th>
                            </tr>
                            <tr>

                                    <td>QICoreCommon</td>

                                    <td>ToPrevalenceInterval</td>

                            </tr>
                            <tr>

                                    <td/>
                                    <td>
                                        <pre class="highlight language-cql"><code class="language-cql">/*
    @description: Returns an interval representing the normalized prevalence period of a given Condition.
    @comment: Uses the ToInterval and ToAbatementInterval functions to determine the widest potential interval from
    onset to abatement as specified in the given Condition. If the condition is active, the resulting interval will have
    a closed ending boundary. If the condition is not active, the resulting interval will have an open ending boundary.
    @deprecated: This function is deprecated. Use the `prevalenceInterval()` fluent function instead
    */
    define function ToPrevalenceInterval(condition Condition):
    if condition.clinicalStatus ~ &quot;active&quot;
      or condition.clinicalStatus ~ &quot;recurrence&quot;
      or condition.clinicalStatus ~ &quot;relapse&quot; then
      Interval[start of ToInterval(condition.onset), end of ToAbatementInterval(condition)]
    else
      Interval[start of ToInterval(condition.onset), end of ToAbatementInterval(condition))</code></pre>
                                    </td>

                            </tr>

                            <tr>
                                <th><b>Library Name</b></th>
                                <th><b>Name</b></th>
                            </tr>
                            <tr>

                                    <td>Status</td>

                                    <td>isEncounterPerformed</td>

                            </tr>
                            <tr>

                                    <td/>
                                    <td>
                                        <pre class="highlight language-cql"><code class="language-cql">define fluent function isEncounterPerformed(Enc List&lt;Encounter&gt;):
      Enc E
        where E.status in {'finished', 'arrived', 'triaged', 'in-progress', 'onleave'}</code></pre>
                                    </td>

                            </tr>

                            <tr>
                                <th><b>Library Name</b></th>
                                <th><b>Name</b></th>
                            </tr>
                            <tr>

                                    <td>QICoreCommon</td>

                                    <td>toInterval</td>

                            </tr>
                            <tr>

                                    <td/>
                                    <td>
                                        <pre class="highlight language-cql"><code class="language-cql">/*
    @description: Normalizes a value that is a choice of timing-valued types to an equivalent interval
    @comment: Normalizes a choice type of DateTime, Quanitty, Interval&lt;DateTime&gt;, or Interval&lt;Quantity&gt; types
    to an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible
    representations for timing-valued elements in QICore, allowing this function to be used across any resource.
    The input can be provided as a DateTime, Quantity, Interval&lt;DateTime&gt; or Interval&lt;Quantity&gt;.
    The intent of this function is to provide a clear and concise mechanism to treat single
    elements that have multiple possible representations as intervals so that logic doesn't have to account
    for the variability. More complex calculations (such as medication request period or dispense period
    calculation) need specific guidance and consideration. That guidance may make use of this function, but
    the focus of this function is on single element calculations where the semantics are unambiguous.
    If the input is a DateTime, the result a DateTime Interval beginning and ending on that DateTime.
    If the input is a Quantity, the quantity is expected to be a calendar-duration interpreted as an Age,
    and the result is a DateTime Interval beginning on the Date the patient turned that age and ending immediately before one year later.
    If the input is a DateTime Interval, the result is the input.
    If the input is a Quantity Interval, the quantities are expected to be calendar-durations interpreted as an Age, and the result
    is a DateTime Interval beginning on the date the patient turned the age given as the start of the quantity interval, and ending
    immediately before one year later than the date the patient turned the age given as the end of the quantity interval.
    Any other input will reslt in a null DateTime Interval
    */
    define fluent function toInterval(choice Choice&lt;DateTime, Quantity, Interval&lt;DateTime&gt;, Interval&lt;Quantity&gt;&gt;):
      case
    	  when choice is DateTime then
        	Interval[choice as DateTime, choice as DateTime]
    		when choice is Interval&lt;DateTime&gt; then
      		choice as Interval&lt;DateTime&gt;
    		when choice is Quantity then
    		  Interval[Patient.birthDate + (choice as Quantity),
    			  Patient.birthDate + (choice as Quantity) + 1 year)
    		when choice is Interval&lt;Quantity&gt; then
    		  Interval[Patient.birthDate + (choice.low as Quantity),
    			  Patient.birthDate + (choice.high as Quantity) + 1 year)
    		else
    			null as Interval&lt;DateTime&gt;
    	end</code></pre>
                                    </td>

                            </tr>

                            <tr>
                                <th><b>Library Name</b></th>
                                <th><b>Name</b></th>
                            </tr>
                            <tr>

                                    <td>Status</td>

                                    <td>isAssessmentPerformed</td>

                            </tr>
                            <tr>

                                    <td/>
                                    <td>
                                        <pre class="highlight language-cql"><code class="language-cql">//Similar but different from QICoreCommon.isSurvey, which does not have status constraints
    define fluent function isAssessmentPerformed(Obs List&lt;Observation&gt;):
      Obs O
        where O.status in { 'final', 'amended', 'corrected' }
              and exists ( O.category ObservationCategory
              where ( ObservationCategory ) ~ &quot;survey&quot;
          )</code></pre>
                                    </td>

                            </tr>

                            <tr>
                                <th><b>Library Name</b></th>
                                <th><b>Name</b></th>
                            </tr>
                            <tr>

                                    <td>FHIRHelpers</td>

                                    <td>ToConcept</td>

                            </tr>
                            <tr>

                                    <td/>
                                    <td>
                                        <pre class="highlight language-cql"><code class="language-cql">/*
    @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.
    */
    define function ToConcept(concept FHIR.CodeableConcept):
        if concept is null then
            null
        else
            System.Concept {
                codes: concept.coding C return ToCode(C),
                display: concept.text.value
            }</code></pre>
                                    </td>

                            </tr>

                            <tr>
                                <th><b>Library Name</b></th>
                                <th><b>Name</b></th>
                            </tr>
                            <tr>

                                    <td>Status</td>

                                    <td>isInterventionOrder</td>

                            </tr>
                            <tr>

                                    <td/>
                                    <td>
                                        <pre class="highlight language-cql"><code class="language-cql">define fluent function isInterventionOrder(ServiceRequest List&lt;ServiceRequest&gt;):
      ServiceRequest S
        where S.status in { 'active', 'completed' }
          and S.intent = 'order'</code></pre>
                                    </td>

                            </tr>

                            <tr>
                                <th><b>Library Name</b></th>
                                <th><b>Name</b></th>
                            </tr>
                            <tr>

                                    <td>Status</td>

                                    <td>isInterventionPerformed</td>

                            </tr>
                            <tr>

                                    <td/>
                                    <td>
                                        <pre class="highlight language-cql"><code class="language-cql">define fluent function isInterventionPerformed(Proc List&lt;Procedure&gt;):
      Proc P
        where P.status ~ 'completed'</code></pre>
                                    </td>

                            </tr>

                            <tr>
                                <th><b>Library Name</b></th>
                                <th><b>Name</b></th>
                            </tr>
                            <tr>

                                    <td>QICoreCommon</td>

                                    <td>prevalenceInterval</td>

                            </tr>
                            <tr>

                                    <td/>
                                    <td>
                                        <pre class="highlight language-cql"><code class="language-cql">/*
    @description: Returns an interval representing the normalized prevalence period of a given Condition.
    @comment: Uses the ToInterval and ToAbatementInterval functions to determine the widest potential interval from
    onset to abatement as specified in the given Condition. If the condition is active, the resulting interval will have
    a closed ending boundary. If the condition is not active, the resulting interval will have an open ending boundary.
    */
    define fluent function prevalenceInterval(condition Condition):
    if condition.clinicalStatus ~ &quot;active&quot;
      or condition.clinicalStatus ~ &quot;recurrence&quot;
      or condition.clinicalStatus ~ &quot;relapse&quot; then
      Interval[start of condition.onset.toInterval(), end of condition.abatementInterval()]
    else
      Interval[start of condition.onset.toInterval(), end of condition.abatementInterval())</code></pre>
                                    </td>

                            </tr>

                        </table>
                    </td>
                </tr>

        </table>
    </div>
      </text>
      <contained>
        <Library>
          <id value="effective-data-requirements"/>
          <extension
                     url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
            <valueCoding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/condition-clinical"/>
              <code value="active"/>
            </valueCoding>
          </extension>
          <extension
                     url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
            <valueCoding>
              <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
              <code value="AMB"/>
              <display value="Ambulatory"/>
            </valueCoding>
          </extension>
          <extension
                     url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
            <valueCoding>
              <system value="http://snomed.info/sct"/>
              <code value="428361000124107"/>
              <display value="Discharge to home for hospice care (procedure)"/>
            </valueCoding>
          </extension>
          <extension
                     url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
            <valueCoding>
              <system value="http://snomed.info/sct"/>
              <code value="428371000124100"/>
              <display
                       value="Discharge to healthcare facility for hospice care (procedure)"/>
            </valueCoding>
          </extension>
          <extension
                     url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
            <valueCoding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/observation-category"/>
              <code value="survey"/>
              <display value="survey"/>
            </valueCoding>
          </extension>
          <extension
                     url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
            <valueCoding>
              <system value="http://loinc.org"/>
              <code value="45755-6"/>
              <display value="Hospice care [Minimum Data Set]"/>
            </valueCoding>
          </extension>
          <extension
                     url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
            <valueCoding>
              <system value="http://snomed.info/sct"/>
              <code value="373066001"/>
              <display value="Yes (qualifier value)"/>
            </valueCoding>
          </extension>
          <extension
                     url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
            <valueCoding>
              <system value="http://loinc.org"/>
              <code value="71007-9"/>
              <display
                       value="Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal)"/>
            </valueCoding>
          </extension>
          <extension
                     url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
            <extension url="libraryName">
              <valueString value="KidneyHealthEvaluationFHIR"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Has Kidney Panel Performed During Measurement Period"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Has Kidney Panel Performed During Measurement Period&quot;:
      exists ( [&quot;Observation&quot;: &quot;Estimated Glomerular Filtration Rate&quot;] eGFRTest
          where QICoreCommon.&quot;ToInterval&quot; ( eGFRTest.effective ) during &quot;Measurement Period&quot;
            and eGFRTest.value is not null
            and eGFRTest.status in { 'final', 'amended', 'corrected' }
      )
        and exists ( [&quot;Observation&quot;: &quot;Urine Albumin Creatinine Ratio&quot;] uACRTest
            where QICoreCommon.&quot;ToInterval&quot; ( uACRTest.effective ) during &quot;Measurement Period&quot;
              and uACRTest.value is not null
              and uACRTest.status in { 'final', 'amended', 'corrected' }
        )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="0"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
            <extension url="libraryName">
              <valueString value="KidneyHealthEvaluationFHIR"/>
            </extension>
            <extension url="name">
              <valueString value="Numerator"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Numerator&quot;:
      &quot;Has Kidney Panel Performed During Measurement Period&quot;"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="1"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
            <extension url="libraryName">
              <valueString value="KidneyHealthEvaluationFHIR"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Has Active Diabetes Overlaps Measurement Period"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Has Active Diabetes Overlaps Measurement Period&quot;:
      exists ( [&quot;Condition&quot;: &quot;Diabetes&quot;] Diabetes
          where QICoreCommon.&quot;ToPrevalenceInterval&quot; ( Diabetes ) overlaps &quot;Measurement Period&quot;
            and Diabetes.clinicalStatus ~ &quot;active&quot;
      )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="2"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
            <extension url="libraryName">
              <valueString value="KidneyHealthEvaluationFHIR"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Has Outpatient Visit During Measurement Period"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Has Outpatient Visit During Measurement Period&quot;:
      exists ( ( [&quot;Encounter&quot;: &quot;Annual Wellness Visit&quot;]
          union [&quot;Encounter&quot;: &quot;Home Healthcare Services&quot;]
          union [&quot;Encounter&quot;: &quot;Office Visit&quot;]
          union [&quot;Encounter&quot;: &quot;Outpatient Consultation&quot;]
          union [&quot;Encounter&quot;: &quot;Preventive Care Services Established Office Visit, 18 and Up&quot;]
          union [&quot;Encounter&quot;: &quot;Preventive Care Services Initial Office Visit, 18 and Up&quot;]
          union [&quot;Encounter&quot;: &quot;Telephone Visits&quot;] ) ValidEncounter
          where ValidEncounter.period during &quot;Measurement Period&quot;
            and ValidEncounter.class ~ &quot;AMB&quot;
            and ValidEncounter.status = 'finished'
      )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="3"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
            <extension url="libraryName">
              <valueString value="KidneyHealthEvaluationFHIR"/>
            </extension>
            <extension url="name">
              <valueString value="Initial Population"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Initial Population&quot;:
      AgeInYearsAt(date from start of &quot;Measurement Period&quot;) in Interval[18, 75]
        and &quot;Has Active Diabetes Overlaps Measurement Period&quot;
        and &quot;Has Outpatient Visit During Measurement Period&quot;"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="4"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
            <extension url="libraryName">
              <valueString value="KidneyHealthEvaluationFHIR"/>
            </extension>
            <extension url="name">
              <valueString value="Denominator"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Denominator&quot;:
      &quot;Initial Population&quot;"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="5"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
            <extension url="libraryName">
              <valueString value="KidneyHealthEvaluationFHIR"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Has CKD Stage 5 or ESRD Diagnosis Overlaps Measurement Period"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Has CKD Stage 5 or ESRD Diagnosis Overlaps Measurement Period&quot;:
      ( [&quot;Condition&quot;: &quot;Chronic Kidney Disease, Stage 5&quot;]
        union [&quot;Condition&quot;: &quot;End Stage Renal Disease&quot;] ) CKDOrESRD
        where QICoreCommon.&quot;ToPrevalenceInterval&quot; ( CKDOrESRD ) overlaps &quot;Measurement Period&quot;
          and CKDOrESRD.clinicalStatus ~ &quot;active&quot;"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="6"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
            <extension url="libraryName">
              <valueString value="Hospice"/>
            </extension>
            <extension url="name">
              <valueString value="Has Hospice Services"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Has Hospice Services&quot;:
      exists ((([Encounter: &quot;Encounter Inpatient&quot;]).isEncounterPerformed()) InpatientEncounter
          where (InpatientEncounter.hospitalization.dischargeDisposition ~ &quot;Discharge to home for hospice care (procedure)&quot;
              or InpatientEncounter.hospitalization.dischargeDisposition ~ &quot;Discharge to healthcare facility for hospice care (procedure)&quot;
          )
            and InpatientEncounter.period.toInterval() ends during day of &quot;Measurement Period&quot;
      )
        or exists ((([Encounter: &quot;Hospice Encounter&quot;]).isEncounterPerformed()) HospiceEncounter
            where HospiceEncounter.period.toInterval() overlaps day of &quot;Measurement Period&quot;
        )
        or exists ((([Observation: &quot;Hospice care [Minimum Data Set]&quot;]).isAssessmentPerformed()) HospiceAssessment
            where HospiceAssessment.value ~ &quot;Yes (qualifier value)&quot;
              and HospiceAssessment.effective.toInterval() overlaps day of &quot;Measurement Period&quot;
        )
        or exists ((([ServiceRequest: &quot;Hospice Care Ambulatory&quot;]).isInterventionOrder()) HospiceOrder
            where HospiceOrder.authoredOn.toInterval() during day of &quot;Measurement Period&quot;
        )
        or exists ((([Procedure: &quot;Hospice Care Ambulatory&quot;]).isInterventionPerformed()) HospicePerformed
            where HospicePerformed.performed.toInterval() overlaps day of &quot;Measurement Period&quot;
        )
        or exists (([Condition: &quot;Hospice Diagnosis&quot;]) HospiceCareDiagnosis
            where HospiceCareDiagnosis.prevalenceInterval() overlaps day of &quot;Measurement Period&quot;
        )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="7"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
            <extension url="libraryName">
              <valueString value="PalliativeCare"/>
            </extension>
            <extension url="name">
              <valueString value="Has Palliative Care in the Measurement Period"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Has Palliative Care in the Measurement Period&quot;:
      exists ((([Observation: &quot;Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal)&quot;]).isAssessmentPerformed()) PalliativeAssessment
          where PalliativeAssessment.effective.toInterval() overlaps day of &quot;Measurement Period&quot;
      )
        or exists ([Condition: &quot;Palliative Care Diagnosis&quot;] PalliativeDiagnosis
            where PalliativeDiagnosis.prevalenceInterval() overlaps day of &quot;Measurement Period&quot;
        )
        or exists ((([Encounter: &quot;Palliative Care Encounter&quot;]).isEncounterPerformed()) PalliativeEncounter
            where PalliativeEncounter.period.toInterval() overlaps day of &quot;Measurement Period&quot;
        )
        or exists ((([Procedure: &quot;Palliative Care Intervention&quot;]).isInterventionPerformed()) PalliativeIntervention
            where PalliativeIntervention.performed.toInterval() overlaps day of &quot;Measurement Period&quot;
        )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="8"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
            <extension url="libraryName">
              <valueString value="KidneyHealthEvaluationFHIR"/>
            </extension>
            <extension url="name">
              <valueString value="Denominator Exclusions"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Denominator Exclusions&quot;:
      exists &quot;Has CKD Stage 5 or ESRD Diagnosis Overlaps Measurement Period&quot;
        or Hospice.&quot;Has Hospice Services&quot;
        or PalliativeCare.&quot;Has Palliative Care in the Measurement Period&quot;"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="9"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
            <extension url="libraryName">
              <valueString value="QICoreCommon"/>
            </extension>
            <extension url="name">
              <valueString value="ToInterval"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Normalizes a value that is a choice of timing-valued types to an equivalent interval
    @comment: Normalizes a choice type of DateTime, Quanitty, Interval&lt;DateTime&gt;, or Interval&lt;Quantity&gt; types
    to an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible
    representations for timing-valued elements in QICore, allowing this function to be used across any resource.
    The input can be provided as a DateTime, Quantity, Interval&lt;DateTime&gt; or Interval&lt;Quantity&gt;.
    The intent of this function is to provide a clear and concise mechanism to treat single
    elements that have multiple possible representations as intervals so that logic doesn't have to account
    for the variability. More complex calculations (such as medication request period or dispense period
    calculation) need specific guidance and consideration. That guidance may make use of this function, but
    the focus of this function is on single element calculations where the semantics are unambiguous.
    If the input is a DateTime, the result a DateTime Interval beginning and ending on that DateTime.
    If the input is a Quantity, the quantity is expected to be a calendar-duration interpreted as an Age,
    and the result is a DateTime Interval beginning on the Date the patient turned that age and ending immediately before one year later.
    If the input is a DateTime Interval, the result is the input.
    If the input is a Quantity Interval, the quantities are expected to be calendar-durations interpreted as an Age, and the result
    is a DateTime Interval beginning on the date the patient turned the age given as the start of the quantity interval, and ending
    immediately before one year later than the date the patient turned the age given as the end of the quantity interval.
    Any other input will reslt in a null DateTime Interval
    @deprecated: This function is deprecated. Use the fluent function `toInterval()` instead
    */
    define function ToInterval(choice Choice&lt;DateTime, Quantity, Interval&lt;DateTime&gt;, Interval&lt;Quantity&gt;&gt;):
      case
    	  when choice is DateTime then
        	Interval[choice as DateTime, choice as DateTime]
    		when choice is Interval&lt;DateTime&gt; then
      		choice as Interval&lt;DateTime&gt;
    		when choice is Quantity then
    		  Interval[Patient.birthDate + (choice as Quantity),
    			  Patient.birthDate + (choice as Quantity) + 1 year)
    		when choice is Interval&lt;Quantity&gt; then
    		  Interval[Patient.birthDate + (choice.low as Quantity),
    			  Patient.birthDate + (choice.high as Quantity) + 1 year)
    		when choice is QICore.Timing then
                null as Interval&lt;DateTime&gt;
    		else
    			null as Interval&lt;DateTime&gt;
    	end"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="10"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
            <extension url="libraryName">
              <valueString value="QICoreCommon"/>
            </extension>
            <extension url="name">
              <valueString value="ToPrevalenceInterval"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Returns an interval representing the normalized prevalence period of a given Condition.
    @comment: Uses the ToInterval and ToAbatementInterval functions to determine the widest potential interval from
    onset to abatement as specified in the given Condition. If the condition is active, the resulting interval will have
    a closed ending boundary. If the condition is not active, the resulting interval will have an open ending boundary.
    @deprecated: This function is deprecated. Use the `prevalenceInterval()` fluent function instead
    */
    define function ToPrevalenceInterval(condition Condition):
    if condition.clinicalStatus ~ &quot;active&quot;
      or condition.clinicalStatus ~ &quot;recurrence&quot;
      or condition.clinicalStatus ~ &quot;relapse&quot; then
      Interval[start of ToInterval(condition.onset), end of ToAbatementInterval(condition)]
    else
      Interval[start of ToInterval(condition.onset), end of ToAbatementInterval(condition))"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="11"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
            <extension url="libraryName">
              <valueString value="Status"/>
            </extension>
            <extension url="name">
              <valueString value="isEncounterPerformed"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define fluent function isEncounterPerformed(Enc List&lt;Encounter&gt;):
      Enc E
        where E.status in {'finished', 'arrived', 'triaged', 'in-progress', 'onleave'}"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="12"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
            <extension url="libraryName">
              <valueString value="QICoreCommon"/>
            </extension>
            <extension url="name">
              <valueString value="toInterval"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Normalizes a value that is a choice of timing-valued types to an equivalent interval
    @comment: Normalizes a choice type of DateTime, Quanitty, Interval&lt;DateTime&gt;, or Interval&lt;Quantity&gt; types
    to an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible
    representations for timing-valued elements in QICore, allowing this function to be used across any resource.
    The input can be provided as a DateTime, Quantity, Interval&lt;DateTime&gt; or Interval&lt;Quantity&gt;.
    The intent of this function is to provide a clear and concise mechanism to treat single
    elements that have multiple possible representations as intervals so that logic doesn't have to account
    for the variability. More complex calculations (such as medication request period or dispense period
    calculation) need specific guidance and consideration. That guidance may make use of this function, but
    the focus of this function is on single element calculations where the semantics are unambiguous.
    If the input is a DateTime, the result a DateTime Interval beginning and ending on that DateTime.
    If the input is a Quantity, the quantity is expected to be a calendar-duration interpreted as an Age,
    and the result is a DateTime Interval beginning on the Date the patient turned that age and ending immediately before one year later.
    If the input is a DateTime Interval, the result is the input.
    If the input is a Quantity Interval, the quantities are expected to be calendar-durations interpreted as an Age, and the result
    is a DateTime Interval beginning on the date the patient turned the age given as the start of the quantity interval, and ending
    immediately before one year later than the date the patient turned the age given as the end of the quantity interval.
    Any other input will reslt in a null DateTime Interval
    */
    define fluent function toInterval(choice Choice&lt;DateTime, Quantity, Interval&lt;DateTime&gt;, Interval&lt;Quantity&gt;&gt;):
      case
    	  when choice is DateTime then
        	Interval[choice as DateTime, choice as DateTime]
    		when choice is Interval&lt;DateTime&gt; then
      		choice as Interval&lt;DateTime&gt;
    		when choice is Quantity then
    		  Interval[Patient.birthDate + (choice as Quantity),
    			  Patient.birthDate + (choice as Quantity) + 1 year)
    		when choice is Interval&lt;Quantity&gt; then
    		  Interval[Patient.birthDate + (choice.low as Quantity),
    			  Patient.birthDate + (choice.high as Quantity) + 1 year)
    		else
    			null as Interval&lt;DateTime&gt;
    	end"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="13"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
            <extension url="libraryName">
              <valueString value="Status"/>
            </extension>
            <extension url="name">
              <valueString value="isAssessmentPerformed"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="//Similar but different from QICoreCommon.isSurvey, which does not have status constraints
    define fluent function isAssessmentPerformed(Obs List&lt;Observation&gt;):
      Obs O
        where O.status in { 'final', 'amended', 'corrected' }
              and exists ( O.category ObservationCategory
              where ( ObservationCategory ) ~ &quot;survey&quot;
          )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="14"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToConcept"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.
    */
    define function ToConcept(concept FHIR.CodeableConcept):
        if concept is null then
            null
        else
            System.Concept {
                codes: concept.coding C return ToCode(C),
                display: concept.text.value
            }"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="15"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
            <extension url="libraryName">
              <valueString value="Status"/>
            </extension>
            <extension url="name">
              <valueString value="isInterventionOrder"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define fluent function isInterventionOrder(ServiceRequest List&lt;ServiceRequest&gt;):
      ServiceRequest S
        where S.status in { 'active', 'completed' }
          and S.intent = 'order'"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="16"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
            <extension url="libraryName">
              <valueString value="Status"/>
            </extension>
            <extension url="name">
              <valueString value="isInterventionPerformed"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define fluent function isInterventionPerformed(Proc List&lt;Procedure&gt;):
      Proc P
        where P.status ~ 'completed'"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="17"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
            <extension url="libraryName">
              <valueString value="QICoreCommon"/>
            </extension>
            <extension url="name">
              <valueString value="prevalenceInterval"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Returns an interval representing the normalized prevalence period of a given Condition.
    @comment: Uses the ToInterval and ToAbatementInterval functions to determine the widest potential interval from
    onset to abatement as specified in the given Condition. If the condition is active, the resulting interval will have
    a closed ending boundary. If the condition is not active, the resulting interval will have an open ending boundary.
    */
    define fluent function prevalenceInterval(condition Condition):
    if condition.clinicalStatus ~ &quot;active&quot;
      or condition.clinicalStatus ~ &quot;recurrence&quot;
      or condition.clinicalStatus ~ &quot;relapse&quot; then
      Interval[start of condition.onset.toInterval(), end of condition.abatementInterval()]
    else
      Interval[start of condition.onset.toInterval(), end of condition.abatementInterval())"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="18"/>
            </extension>
          </extension>
          <status value="active"/>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/library-type"/>
              <code value="module-definition"/>
            </coding>
          </type>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Library QICoreCommon"/>
            <resource
                      value="http://ecqi.healthit.gov/ecqms/Library/QICoreCommon|1.5.000"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Library FHIRHelpers"/>
            <resource
                      value="http://ecqi.healthit.gov/ecqms/Library/FHIRHelpers|4.3.000"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Library Hospice"/>
            <resource
                      value="http://ecqi.healthit.gov/ecqms/Library/Hospice|6.7.000"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Library Status"/>
            <resource
                      value="http://ecqi.healthit.gov/ecqms/Library/Status|1.6.000"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Library PalliativeCare"/>
            <resource
                      value="http://ecqi.healthit.gov/ecqms/Library/PalliativeCare|1.7.000"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Code system ConditionClinicalStatusCodes"/>
            <resource
                      value="http://terminology.hl7.org/CodeSystem/condition-clinical"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Code system ActCode"/>
            <resource value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Code system SNOMEDCT"/>
            <resource value="http://snomed.info/sct"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Code system ObservationCategoryCodes"/>
            <resource
                      value="http://terminology.hl7.org/CodeSystem/observation-category"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Code system LOINC"/>
            <resource value="http://loinc.org"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Estimated Glomerular Filtration Rate"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.6929.3.1000"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Urine Albumin Creatinine Ratio"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.6929.3.1007"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Diabetes"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.103.12.1001"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Annual Wellness Visit"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Home Healthcare Services"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Office Visit"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Outpatient Consultation"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1008"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display
                     value="Value set Preventive Care Services Established Office Visit, 18 and Up"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display
                     value="Value set Preventive Care Services Initial Office Visit, 18 and Up"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Telephone Visits"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Chronic Kidney Disease, Stage 5"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1002"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set End Stage Renal Disease"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.353"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Encounter Inpatient"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Hospice Encounter"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1003"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Hospice Care Ambulatory"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1584"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Hospice Diagnosis"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1165"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Palliative Care Diagnosis"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1167"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Palliative Care Encounter"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1090"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Palliative Care Intervention"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1135"/>
          </relatedArtifact>
          <parameter>
            <name value="Measurement Period"/>
            <use value="in"/>
            <min value="0"/>
            <max value="1"/>
            <type value="Period"/>
          </parameter>
          <parameter>
            <name value="Numerator"/>
            <use value="out"/>
            <min value="0"/>
            <max value="1"/>
            <type value="boolean"/>
          </parameter>
          <parameter>
            <name value="Denominator"/>
            <use value="out"/>
            <min value="0"/>
            <max value="1"/>
            <type value="boolean"/>
          </parameter>
          <parameter>
            <name value="Initial Population"/>
            <use value="out"/>
            <min value="0"/>
            <max value="1"/>
            <type value="boolean"/>
          </parameter>
          <parameter>
            <name value="Denominator Exclusions"/>
            <use value="out"/>
            <min value="0"/>
            <max value="1"/>
            <type value="boolean"/>
          </parameter>
          <dataRequirement>
            <type value="Patient"/>
            <profile
                     value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"/>
          </dataRequirement>
          <dataRequirement>
            <type value="Observation"/>
            <profile
                     value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation"/>
            <mustSupport value="code"/>
            <mustSupport value="effective"/>
            <mustSupport value="value"/>
            <mustSupport value="status"/>
            <mustSupport value="status.value"/>
            <mustSupport value="category"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.6929.3.1000"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Observation"/>
            <profile
                     value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation"/>
            <mustSupport value="code"/>
            <mustSupport value="effective"/>
            <mustSupport value="value"/>
            <mustSupport value="status"/>
            <mustSupport value="status.value"/>
            <mustSupport value="category"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.6929.3.1007"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Observation"/>
            <profile
                     value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation"/>
            <mustSupport value="code"/>
            <mustSupport value="value"/>
            <mustSupport value="effective"/>
            <mustSupport value="status"/>
            <mustSupport value="status.value"/>
            <mustSupport value="category"/>
            <codeFilter>
              <path value="code"/>
              <code>
                <system value="http://loinc.org"/>
                <code value="45755-6"/>
                <display value="Hospice care [Minimum Data Set]"/>
              </code>
            </codeFilter>
            <codeFilter>
              <path value="value"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Observation"/>
            <profile
                     value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation"/>
            <mustSupport value="code"/>
            <mustSupport value="effective"/>
            <mustSupport value="status"/>
            <mustSupport value="status.value"/>
            <mustSupport value="category"/>
            <codeFilter>
              <path value="code"/>
              <code>
                <system value="http://loinc.org"/>
                <code value="71007-9"/>
                <display
                         value="Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal)"/>
              </code>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Condition"/>
            <profile
                     value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition"/>
            <mustSupport value="code"/>
            <mustSupport value="clinicalStatus"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.103.12.1001"/>
            </codeFilter>
            <codeFilter>
              <path value="clinicalStatus"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Condition"/>
            <profile
                     value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition"/>
            <mustSupport value="code"/>
            <mustSupport value="clinicalStatus"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1002"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Condition"/>
            <profile
                     value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition"/>
            <mustSupport value="code"/>
            <mustSupport value="clinicalStatus"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.353"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Condition"/>
            <profile
                     value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition"/>
            <mustSupport value="code"/>
            <mustSupport value="clinicalStatus"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1165"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Condition"/>
            <profile
                     value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition"/>
            <mustSupport value="code"/>
            <mustSupport value="clinicalStatus"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1167"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Encounter"/>
            <profile
                     value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"/>
            <mustSupport value="type"/>
            <mustSupport value="period"/>
            <mustSupport value="class"/>
            <mustSupport value="status"/>
            <mustSupport value="status.value"/>
            <codeFilter>
              <path value="type"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Encounter"/>
            <profile
                     value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"/>
            <mustSupport value="type"/>
            <mustSupport value="period"/>
            <mustSupport value="class"/>
            <mustSupport value="status"/>
            <mustSupport value="status.value"/>
            <codeFilter>
              <path value="type"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Encounter"/>
            <profile
                     value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"/>
            <mustSupport value="type"/>
            <mustSupport value="period"/>
            <mustSupport value="class"/>
            <mustSupport value="status"/>
            <mustSupport value="status.value"/>
            <codeFilter>
              <path value="type"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Encounter"/>
            <profile
                     value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"/>
            <mustSupport value="type"/>
            <mustSupport value="period"/>
            <mustSupport value="class"/>
            <mustSupport value="status"/>
            <mustSupport value="status.value"/>
            <codeFilter>
              <path value="type"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1008"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Encounter"/>
            <profile
                     value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"/>
            <mustSupport value="type"/>
            <mustSupport value="period"/>
            <mustSupport value="class"/>
            <mustSupport value="status"/>
            <mustSupport value="status.value"/>
            <codeFilter>
              <path value="type"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Encounter"/>
            <profile
                     value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"/>
            <mustSupport value="type"/>
            <mustSupport value="period"/>
            <mustSupport value="class"/>
            <mustSupport value="status"/>
            <mustSupport value="status.value"/>
            <codeFilter>
              <path value="type"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Encounter"/>
            <profile
                     value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"/>
            <mustSupport value="type"/>
            <mustSupport value="period"/>
            <mustSupport value="class"/>
            <mustSupport value="status"/>
            <mustSupport value="status.value"/>
            <codeFilter>
              <path value="type"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Encounter"/>
            <profile
                     value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"/>
            <mustSupport value="type"/>
            <mustSupport value="hospitalization"/>
            <mustSupport value="hospitalization.dischargeDisposition"/>
            <mustSupport value="period"/>
            <mustSupport value="class"/>
            <mustSupport value="status"/>
            <mustSupport value="status.value"/>
            <codeFilter>
              <path value="type"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Encounter"/>
            <profile
                     value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"/>
            <mustSupport value="type"/>
            <mustSupport value="period"/>
            <mustSupport value="class"/>
            <mustSupport value="status"/>
            <mustSupport value="status.value"/>
            <codeFilter>
              <path value="type"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1003"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Encounter"/>
            <profile
                     value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"/>
            <mustSupport value="type"/>
            <mustSupport value="period"/>
            <mustSupport value="class"/>
            <mustSupport value="status"/>
            <mustSupport value="status.value"/>
            <codeFilter>
              <path value="type"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1090"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="ServiceRequest"/>
            <profile
                     value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest"/>
            <mustSupport value="code"/>
            <mustSupport value="authoredOn"/>
            <mustSupport value="authoredOn.value"/>
            <mustSupport value="status"/>
            <mustSupport value="status.value"/>
            <mustSupport value="intent"/>
            <mustSupport value="intent.value"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1584"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Procedure"/>
            <profile
                     value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"/>
            <mustSupport value="code"/>
            <mustSupport value="performed"/>
            <mustSupport value="status"/>
            <mustSupport value="status.value"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1584"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Procedure"/>
            <profile
                     value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"/>
            <mustSupport value="code"/>
            <mustSupport value="performed"/>
            <mustSupport value="status"/>
            <mustSupport value="status.value"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1135"/>
            </codeFilter>
          </dataRequirement>
        </Library>
      </contained>
      <extension
                 url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem">
        <valueReference>
          <reference value="Device/cqf-tooling"/>
        </valueReference>
      </extension>
      <extension
                 url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-effectiveDataRequirements" id="effective-data-requirements">
        <valueReference>
          <reference value="#effective-data-requirements"/>
        </valueReference>
      </extension>
      <url
           value="http://ecqi.healthit.gov/ecqms/Measure/KidneyHealthEvaluationFHIR"/>
      <identifier>
        <use value="usual"/>
        <type>
          <coding>
            <system
                    value="http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type"/>
            <code value="short-name"/>
          </coding>
        </type>
        <system value="https://madie.cms.gov/measure/shortName"/>
        <value value="CMS951FHIR"/>
      </identifier>
      <identifier>
        <use value="official"/>
        <type>
          <coding>
            <system
                    value="http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type"/>
            <code value="version-independent"/>
          </coding>
        </type>
        <system value="urn:ietf:rfc:3986"/>
        <value value="urn:uuid:e66e345d-d892-4fe2-84a7-748433b6e0a6"/>
      </identifier>
      <identifier>
        <use value="official"/>
        <type>
          <coding>
            <system
                    value="http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type"/>
            <code value="version-specific"/>
          </coding>
        </type>
        <system value="urn:ietf:rfc:3986"/>
        <value value="urn:uuid:2c928085806c39a2018085f3251705e4"/>
      </identifier>
      <identifier>
        <use value="official"/>
        <type>
          <coding>
            <system
                    value="http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type"/>
            <code value="publisher"/>
          </coding>
        </type>
        <system value="https://madie.cms.gov/measure/cmsId"/>
        <value value="951FHIR"/>
        <assigner>
          <display value="CMS"/>
        </assigner>
      </identifier>
      <version value="0.0.005"/>
      <name value="KidneyHealthEvaluationFHIR"/>
      <title value="Kidney Health EvaluationFHIR"/>
      <status value="draft"/>
      <experimental value="false"/>
      <date value="2023-10-27T08:12:32+00:00"/>
      <publisher value="National Kidney Foundation"/>
      <contact>
        <telecom>
          <system value="url"/>
          <value value="www.kidney.org"/>
        </telecom>
      </contact>
      <description
                   value="Percentage of patients aged 18-75 years with a diagnosis of diabetes who received a kidney health evaluation defined by an Estimated Glomerular Filtration Rate (eGFR) AND Urine Albumin-Creatinine Ratio (uACR) within the measurement period"/>
      <purpose value="UNKNOWN"/>
      <usage
             value="This measure assesses performance of a comprehensive kidney evaluation in adults aged 18-75. This measure does not preclude or discourage the use of regular laboratory testing for CKD in patients outside of the age range (patients under 18 years and those over 75 years of age).

    This eCQM is a patient-based measure.

    This FHIR-based measure has been derived from the QDM-based measure: CMS951v1.

    Please refer to the HL7 QI-Core Implementation Guide (http://hl7.org/fhir/us/qicore/index.html) for more information on QI-Core and mapping recommendations from QDM to QI-Core 4.1.1 (http://hl7.org/fhir/us/qicore/qdm-to-qicore.html)."/>
      <copyright
                 value="Copyright 2022 National Kidney Foundation. All Rights Reserved."/>
      <approvalDate value="2023-08-14"/>
      <lastReviewDate value="2023-08-14"/>
      <effectivePeriod>
        <start value="2024-01-01"/>
        <end value="2024-12-31"/>
      </effectivePeriod>
      <author>
        <name value="National Kidney Foundation"/>
        <telecom>
          <system value="url"/>
          <value value="www.kidney.org"/>
        </telecom>
      </author>
      <library
               value="http://ecqi.healthit.gov/ecqms/Library/KidneyHealthEvaluationFHIR"/>
      <disclaimer
                  value="Physician Performance Measures (Measures) and related data specifications developed by the National Kidney Foundation (NKF) are intended to facilitate quality improvement activities by health care professionals.

    These Measures are intended to assist health care professionals in enhancing quality of care. These Measures are not clinical guidelines and do not establish a standard of medical care and have not been tested for all potential applications. NKF encourages testing and evaluation of its Measures.

    Measures are subject to review and may be revised or rescinded at any time by NKF. The measures may not be altered without prior written approval from NKF. The measures, while copyrighted, can be reproduced and distributed, without modification, for noncommercial purposes. Commercial use is defined as the sale, license, or distribution of the measures for commercial gain, or incorporation of the measures into a product or service that is sold, licensed, or distributed for commercial gain. Commercial uses of the measures require a license agreement between the user and NKF. Neither NKF nor its members shall be responsible for any use of the measures.

    THESE MEASURES AND SPECIFICATIONS ARE PROVIDED &quot;AS IS&quot; WITHOUT WARRANTY OF ANY KIND.

    Limited proprietary coding is contained in the Measure specifications for convenience. Users of the proprietary code sets should obtain all necessary licenses from the owners of these code sets.

    CPT(R) contained in the Measure specifications is copyright 2004-2021 American Medical Association. LOINC(R) is copyright 2004-2021 Regenstrief Institute, Inc. This material contains SNOMED Clinical Terms(R) (SNOMED CT[R]) copyright 2004-2021 International Health Terminology Standards Development Organisation. ICD-10 is copyright 2021 World Health Organization. All Rights Reserved.

    The PCPI’s and AMA’s significant past efforts and contributions to the development and updating of the measure are acknowledged.

    Due to technical limitations, registered trademarks are indicated by (R) or [R]."/>
      <rationale
                 value="Chronic Kidney Disease (CKD) is a major driver of morbidity, mortality and high healthcare costs in the United States. Currently, 37 million American adults have CKD and millions of others are at increased risk (NKF, 2019), with an estimated population prevalence growing to nearly 17% among Americans aged 30 years and older by the year 2030 (Saran, 2019; Hoerger, 2015). Total Medicare spending in 2016 on both CKD and ESRD was over $114 billion, comprising 23% of total Medicare fee-for-service spending overall with costs increasing exponentially with advancing CKD (Saran, 2019; Nichols, 2020). In the US from 2002-2016, the burden of CKD, defined as years of life lost, years living with disability, disability-adjusted life years, and deaths, outpaced changes in the burden of disease for other conditions (Bowe, 2018). Patients with CKD are readmitted to the hospital more frequently than those without diagnosed CKD (Saran, 2019). CKD is the 9th leading cause of death in the US and is the fastest growing non-communicable disease in terms of in burden largely due to death (Hoerger, 2015; Bowe, 2018). This public health issue is driven largely by the impact of diabetes—the most common comorbid risk factor for CKD (Saran, 2019; Bowe, 2018).

    The intent of this process measure is to improve rates of guideline-concordant kidney health evaluation in patients with diabetes to more consistently identify and potentially treat or delay progression of CKD in this high-risk population. Annual kidney health evaluation in patients with diabetes to determine risk of CKD using estimated glomerular filtration rate (eGFR) and urine albumin creatinine ratio (uACR) is recommended by clinical practice guidelines (ADA, 2022; NKF, 2007; NKF, 2012) and has been a focus of various local and national health care quality improvement initiatives, including Healthy People 2020 (United States Renal Data System, 2018). However, performance of these tests in patients with diabetes remains low, with rates that vary across Medicare (41.8%) and private insurers (49.0%) (Saran, 2019; Alfego, 2021; Stempneiwicz, 2021). Low rates of detection of CKD in a population of patients with diabetes have been demonstrated to be associated with low patient awareness of their own kidney health status (Szczech, 2014). Indeed, 90% of individuals with CKD are unaware of their condition due to under-recognition and under-diagnosis (Saran, 2019; Centers for Disease Control and Prevention, 2019). Currently, an individual’s lifetime probability of developing CKD is relatively high, reaching 54% for someone currently aged 30-49 years (Hoerger, 2015). Regular kidney health evaluations, utilizing both eGFR and uACR, provide an opportunity to improve identification and potential reversal of worsening kidney function, particularly in high risk populations, such as those with diabetes."/>
      <clinicalRecommendationStatement
                                       value="The following evidence statements are quoted verbatim from the referenced clinical guidelines and other sources, where applicable:

    At least once a year, assess urinary albumin (e.g., spot urinary albumin-to-creatinine ratio) and estimated glomerular filtration rate in patients with type 1 diabetes with duration of &gt;= 5 years, in all patients with type 2 diabetes, and in all patients with comorbid hypertension. B (American Diabetes Association Professional Practice Committee, 2019)

    Patients with diabetes should be screened annually for Diabetic Kidney Disease (DKD). Initial screening should commence:
      - 5 years after the diagnosis of type 1 diabetes; (A) or
      - From diagnosis of type 2 diabetes. (B)

    Screening should include:
      - Measurements of urinary albumin-creatinine ratio (ACR) in a spot urine sample; (B)
      - Measurement of serum creatinine and estimation of GFR. (B)
    (National Kidney Foundation [NKF], 2007; NKF, 2012)"/>
      <group id="638500824ba3d47c885c02a8">
        <extension
                   url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring">
          <valueCodeableConcept>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-scoring"/>
              <code value="proportion"/>
              <display value="Proportion"/>
            </coding>
          </valueCodeableConcept>
        </extension>
        <extension
                   url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis">
          <valueCode value="boolean"/>
        </extension>
        <extension
                   url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-type">
          <valueCodeableConcept>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/measure-type"/>
              <code value="process"/>
              <display value="Process"/>
            </coding>
          </valueCodeableConcept>
        </extension>
        <population id="FE55F147-F09C-404F-9E91-478BFE225678">
          <code>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-population"/>
              <code value="initial-population"/>
              <display value="Initial Population"/>
            </coding>
          </code>
          <description
                       value="All patients aged 18-75 years with a diagnosis of diabetes at the start of the measurement period with a visit during the measurement period"/>
          <criteria>
            <language value="text/cql-identifier"/>
            <expression value="Initial Population"/>
          </criteria>
        </population>
        <population id="3793D224-111F-473C-BDD9-16F2A0DC2285">
          <code>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-population"/>
              <code value="denominator"/>
              <display value="Denominator"/>
            </coding>
          </code>
          <description value="Equals Initial Population"/>
          <criteria>
            <language value="text/cql-identifier"/>
            <expression value="Denominator"/>
          </criteria>
        </population>
        <population id="D491DA23-7FBF-49FC-BFBE-DCC3D0D887C8">
          <code>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-population"/>
              <code value="denominator-exclusion"/>
              <display value="Denominator Exclusion"/>
            </coding>
          </code>
          <description
                       value="Patients with a diagnosis of End Stage Renal Disease (ESRD); Patients with a diagnosis of Chronic Kidney Disease (CKD) Stage 5; Patients who have an order for or are receiving hospice or palliative care"/>
          <criteria>
            <language value="text/cql-identifier"/>
            <expression value="Denominator Exclusions"/>
          </criteria>
        </population>
        <population id="3ebee955-614f-40c1-8164-476f97ca55ec">
          <code>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-population"/>
              <code value="denominator-exception"/>
              <display value="Denominator Exception"/>
            </coding>
          </code>
          <criteria>
            <language value="text/cql-identifier"/>
          </criteria>
        </population>
        <population id="7D03E452-3D92-4738-A8CA-92C253985F15">
          <code>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-population"/>
              <code value="numerator"/>
              <display value="Numerator"/>
            </coding>
          </code>
          <description
                       value="Patients who received a kidney health evaluation defined by an Estimated Glomerular Filtration Rate (eGFR) AND Urine Albumin-Creatinine Ratio (uACR) within the measurement period"/>
          <criteria>
            <language value="text/cql-identifier"/>
            <expression value="Numerator"/>
          </criteria>
        </population>
        <population id="8d0cecc5-456b-47f1-a801-aa62647d433d">
          <code>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-population"/>
              <code value="numerator-exclusion"/>
              <display value="Numerator Exclusion"/>
            </coding>
          </code>
          <criteria>
            <language value="text/cql-identifier"/>
          </criteria>
        </population>
      </group>
    </Measure>