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

## : KidneyHealthEvaluationFHIR - XML Representation

Active as of 2023-08-14

Raw xml | Download

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

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

                <tr>
                    <th scope="row"><b>Url: </b></th>
                    <td style="padding-left: 4px;">http://ecqi.healthit.gov/ecqms/Library/KidneyHealthEvaluationFHIR</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>Identifier: </b></th>
                    <td style="padding-left: 4px;">

                            <p style="margin-bottom: 5px;">
                                <b>value: </b> <span>KidneyHealthEvaluationFHIR</span>
                            </p>

                    </td>
                </tr>

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

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

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

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

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

                                    <p style="margin-bottom: 5px;">
                                        <b>system: </b> <span>http://terminology.hl7.org/CodeSystem/library-type</span>
                                    </p>

                                    <p style="margin-bottom: 5px;">
                                        <b>code: </b> <span>logic-library</span>
                                    </p>

                    </td>
                </tr>

                <tr>
                    <th scope="row"><b>Date: </b></th>
                    <td style="padding-left: 4px;">2023-08-14T15:19:24+00:00</td>
                </tr>

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

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

                            <p><b>Dependencies</b></p>
                            <ul>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                            </ul>

                    </td>
                </tr>

                <tr>
                    <th scope="row"><b>Data Requirements:</b></th>
                    <td style="padding-left: 4px;">
                        <table class="grid-dict">
                            <tr><th><b>Type</b></th><th><b>Profile</b></th><th><b>MS</b></th><th><b>Code Filter</b></th></tr>

                                <tr>
                                    <th>Patient</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient</th>
                                    <th/>
                                    <th>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Patient</th>
                                    <th>http://hl7.org/fhir/Patient</th>
                                    <th>;;</th>
                                    <th>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Observation</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation</th>
                                    <th>;;;;;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.6929.3.1000</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Observation</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation</th>
                                    <th>;;;;;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.6929.3.1007</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Patient</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient</th>
                                    <th/>
                                    <th>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Condition</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition</th>
                                    <th>;;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.103.12.1001</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Encounter</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter</th>
                                    <th>;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>type</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Encounter</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter</th>
                                    <th>;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>type</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Encounter</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter</th>
                                    <th>;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>type</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Encounter</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter</th>
                                    <th>;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>type</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1008</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Encounter</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter</th>
                                    <th>;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>type</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Encounter</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter</th>
                                    <th>;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>type</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Encounter</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter</th>
                                    <th>;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>type</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Condition</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition</th>
                                    <th>;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1002</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Condition</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition</th>
                                    <th>;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.353</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Encounter</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter</th>
                                    <th>;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>type</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Encounter</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter</th>
                                    <th>;;;;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>type</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Encounter</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter</th>
                                    <th>;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>type</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1003</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Encounter</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter</th>
                                    <th>;;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>type</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1003</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Observation</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation</th>
                                    <th>;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                                                    <br/>

                                                    <p style="margin-bottom: 5px;">
                                                        <b>system: </b> <span>http://loinc.org</span>
                                                    </p>

                                                    <p style="margin-bottom: 5px;">
                                                        <b>code: </b> <span>45755-6</span>
                                                    </p>

                                                    <p style="margin-bottom: 5px;">
                                                        <b>display: </b> <span>Hospice care [Minimum Data Set]</span>
                                                    </p>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Observation</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation</th>
                                    <th>;;;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                                                    <br/>

                                                    <p style="margin-bottom: 5px;">
                                                        <b>system: </b> <span>http://loinc.org</span>
                                                    </p>

                                                    <p style="margin-bottom: 5px;">
                                                        <b>code: </b> <span>45755-6</span>
                                                    </p>

                                                    <p style="margin-bottom: 5px;">
                                                        <b>display: </b> <span>Hospice care [Minimum Data Set]</span>
                                                    </p>

                                    </th>
                                </tr>

                                <tr>
                                    <th>ServiceRequest</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest</th>
                                    <th>;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1584</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>ServiceRequest</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest</th>
                                    <th>;;;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1584</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Procedure</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure</th>
                                    <th>;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1584</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Procedure</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure</th>
                                    <th>;;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1584</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Condition</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition</th>
                                    <th>;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1165</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Observation</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation</th>
                                    <th>;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                                                    <br/>

                                                    <p style="margin-bottom: 5px;">
                                                        <b>system: </b> <span>http://loinc.org</span>
                                                    </p>

                                                    <p style="margin-bottom: 5px;">
                                                        <b>code: </b> <span>71007-9</span>
                                                    </p>

                                                    <p style="margin-bottom: 5px;">
                                                        <b>display: </b> <span>Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal)</span>
                                                    </p>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Observation</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation</th>
                                    <th>;;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                                                    <br/>

                                                    <p style="margin-bottom: 5px;">
                                                        <b>system: </b> <span>http://loinc.org</span>
                                                    </p>

                                                    <p style="margin-bottom: 5px;">
                                                        <b>code: </b> <span>71007-9</span>
                                                    </p>

                                                    <p style="margin-bottom: 5px;">
                                                        <b>display: </b> <span>Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal)</span>
                                                    </p>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Condition</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition</th>
                                    <th>;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1167</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Encounter</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter</th>
                                    <th>;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>type</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1090</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Encounter</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter</th>
                                    <th>;;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>type</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1090</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Procedure</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure</th>
                                    <th>;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1135</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Procedure</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure</th>
                                    <th>;;</th>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1135</span>
                          </span>

                                    </th>
                                </tr>

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

                    <tr>
                        <td colspan="2">
                            <table>
                                <tr><th><a id="cql-content"><b>Content: </b></a> text/cql</th></tr>
                                <tr><td><pre><code class="language-cql">library KidneyHealthEvaluationFHIR version '0.0.005'

    using QICore version '4.1.1'

    /*This spec aligns with AU2023/PY2024 QDM version*/

    include FHIRHelpers version '4.3.000' called FHIRHelpers
    include SupplementalDataElements version '3.4.000' called SDE
    include CQMCommon version '1.4.000' called CQMCommon
    include Hospice version '6.7.000' called Hospice
    include PalliativeCare version '1.7.000' called PalliativeCare
    include QICoreCommon version '1.5.000' called QICoreCommon

    codesystem &quot;SNOMEDCT&quot;: 'http://snomed.info/sct'
    codesystem &quot;ActCode&quot;: 'http://terminology.hl7.org/CodeSystem/v3-ActCode'
    codesystem &quot;ConditionClinicalStatusCodes&quot;: 'http://terminology.hl7.org/CodeSystem/condition-clinical'

    valueset &quot;Acute Inpatient&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1083'
    valueset &quot;Annual Wellness Visit&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240'
    valueset &quot;Chronic Kidney Disease, Stage 5&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1002'
    valueset &quot;Diabetes&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.103.12.1001'
    valueset &quot;Encounter Inpatient&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307'
    valueset &quot;End Stage Renal Disease&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.353'
    valueset &quot;Estimated Glomerular Filtration Rate&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.6929.3.1000'
    valueset &quot;Home Healthcare Services&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016'
    valueset &quot;Hospice Care Ambulatory&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1584'
    valueset &quot;Office Visit&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001'
    valueset &quot;Outpatient Consultation&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1008'
    valueset &quot;Palliative or Hospice Care&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1579'
    valueset &quot;Preventive Care Services Established Office Visit, 18 and Up&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025'
    valueset &quot;Preventive Care Services Initial Office Visit, 18 and Up&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023'
    valueset &quot;Telephone Visits&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080'
    valueset &quot;Urine Albumin Creatinine Ratio&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.6929.3.1007'

    code &quot;Discharge to healthcare facility for hospice care (procedure)&quot;: '428371000124100' from &quot;SNOMEDCT&quot; display 'Discharge to healthcare facility for hospice care (procedure)'
    code &quot;Discharge to home for hospice care (procedure)&quot;: '428361000124107' from &quot;SNOMEDCT&quot; display 'Discharge to home for hospice care (procedure)'
    code &quot;AMB&quot;: 'AMB' from &quot;ActCode&quot; display 'Ambulatory'
    code &quot;active&quot;: 'active' from &quot;ConditionClinicalStatusCodes&quot;

    parameter &quot;Measurement Period&quot; Interval&lt;DateTime&gt;

    context Patient

    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;

    define &quot;Denominator&quot;:
      &quot;Initial Population&quot;

    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;

    define &quot;Numerator&quot;:
      &quot;Has Kidney Panel Performed During Measurement Period&quot;

    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' }
        )

    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'
      )

    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;
      )

    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;

    define &quot;SDE Ethnicity&quot;:
      SDE.&quot;SDE Ethnicity&quot;

    define &quot;SDE Payer&quot;:
      SDE.&quot;SDE Payer&quot;

    define &quot;SDE Race&quot;:
      SDE.&quot;SDE Race&quot;

    define &quot;SDE Sex&quot;:
      SDE.&quot;SDE Sex&quot;</code></pre></td></tr>
                            </table>
                        </td>
                    </tr>

                    <tr>
                        <td colspan="2">
                            <table>
                                <tr><th><b>Content: </b> application/elm+xml</th></tr>
                                <tr><td><pre><code>Encoded data (143484 characters)</code></pre></td></tr>
                            </table>
                        </td>
                    </tr>

                    <tr>
                        <td colspan="2">
                            <table>
                                <tr><th><b>Content: </b> application/elm+json</th></tr>
                                <tr><td><pre><code>Encoded data (205916 characters)</code></pre></td></tr>
                            </table>
                        </td>
                    </tr>

        </table>
    </div>
      </text>
      <extension
                 url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem">
        <valueReference>
          <reference value="Device/cqf-tooling"/>
        </valueReference>
      </extension>
      <url
           value="http://ecqi.healthit.gov/ecqms/Library/KidneyHealthEvaluationFHIR"/>
      <identifier>
        <use value="official"/>
        <system value="https://madie.cms.gov/login"/>
        <value value="KidneyHealthEvaluationFHIR"/>
      </identifier>
      <version value="0.0.005"/>
      <name value="KidneyHealthEvaluationFHIR"/>
      <title value="KidneyHealthEvaluationFHIR"/>
      <status value="active"/>
      <experimental value="false"/>
      <type>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/library-type"/>
          <code value="logic-library"/>
        </coding>
      </type>
      <date value="2023-08-14T15:19:24+00:00"/>
      <description value="KidneyHealthEvaluationFHIR"/>
      <relatedArtifact id="428371000124100">
        <display
                 value="Discharge to healthcare facility for hospice care (procedure)"/>
        <url value="http://snomed.info/sct"/>
        <document>
          <url value="http://snomed.info/sct"/>
        </document>
      </relatedArtifact>
      <relatedArtifact id="428361000124107">
        <display value="Discharge to home for hospice care (procedure)"/>
        <url value="http://snomed.info/sct"/>
        <document>
          <url value="http://snomed.info/sct"/>
        </document>
      </relatedArtifact>
      <relatedArtifact id="active">
        <display value="active"/>
        <url value="http://terminology.hl7.org/CodeSystem/condition-clinical"/>
        <document>
          <url value="http://terminology.hl7.org/CodeSystem/condition-clinical"/>
        </document>
      </relatedArtifact>
      <relatedArtifact id="AMB">
        <display value="AMB"/>
        <url value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
        <document>
          <url value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
        </document>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="QICore model information"/>
        <resource value="http://hl7.org/fhir/Library/QICore-ModelInfo"/>
      </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 SDE"/>
        <resource
                  value="http://ecqi.healthit.gov/ecqms/Library/SupplementalDataElements|3.4.000"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Library CQMCommon"/>
        <resource
                  value="http://ecqi.healthit.gov/ecqms/Library/CQMCommon|1.4.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 PalliativeCare"/>
        <resource
                  value="http://ecqi.healthit.gov/ecqms/Library/PalliativeCare|1.7.000"/>
      </relatedArtifact>
      <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 Status"/>
        <resource value="http://ecqi.healthit.gov/ecqms/Library/Status|1.6.000"/>
      </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 ActCode"/>
        <resource value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
      </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 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="Code system AdministrativeGender"/>
        <resource value="http://hl7.org/fhir/v3/AdministrativeGender"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Acute Inpatient"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1083"/>
      </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 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 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 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 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 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 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 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 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 Palliative or Hospice Care"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1579"/>
      </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 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 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 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>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Payer Type"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"/>
      </relatedArtifact>
      <parameter>
        <name value="Measurement Period"/>
        <use value="in"/>
        <min value="0"/>
        <max value="1"/>
        <type value="Period"/>
      </parameter>
      <parameter>
        <name value="Patient"/>
        <use value="out"/>
        <min value="0"/>
        <max value="1"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Has Active Diabetes Overlaps Measurement Period"/>
        <use value="out"/>
        <min value="0"/>
        <max value="1"/>
        <type value="boolean"/>
      </parameter>
      <parameter>
        <name value="Has Outpatient Visit During Measurement Period"/>
        <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"/>
        <use value="out"/>
        <min value="0"/>
        <max value="1"/>
        <type value="boolean"/>
      </parameter>
      <parameter>
        <name
              value="Has CKD Stage 5 or ESRD Diagnosis Overlaps Measurement Period"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Denominator Exclusions"/>
        <use value="out"/>
        <min value="0"/>
        <max value="1"/>
        <type value="boolean"/>
      </parameter>
      <parameter>
        <name value="Has Kidney Panel Performed During Measurement Period"/>
        <use value="out"/>
        <min value="0"/>
        <max value="1"/>
        <type value="boolean"/>
      </parameter>
      <parameter>
        <name value="Numerator"/>
        <use value="out"/>
        <min value="0"/>
        <max value="1"/>
        <type value="boolean"/>
      </parameter>
      <parameter>
        <name value="SDE Ethnicity"/>
        <use value="out"/>
        <min value="0"/>
        <max value="1"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="SDE Payer"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="SDE Race"/>
        <use value="out"/>
        <min value="0"/>
        <max value="1"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="SDE Sex"/>
        <use value="out"/>
        <min value="0"/>
        <max value="1"/>
        <type value="Coding"/>
      </parameter>
      <dataRequirement>
        <type value="Patient"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"/>
        <mustSupport value="ethnicity"/>
        <mustSupport value="race"/>
      </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="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="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="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>
      <dataRequirement>
        <type value="Coverage"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage"/>
        <mustSupport value="type"/>
        <mustSupport value="period"/>
        <codeFilter>
          <path value="type"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"/>
        </codeFilter>
      </dataRequirement>
      <content>
        <contentType value="text/cql"/>
        <data
              value=" "/>
      </content>
      <content>
        <contentType value="application/elm+xml"/>
        <data
              value=" "/>
      </content>
    </Library>