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

## : PCSBMIScreenAndFollowUpFHIR - XML Representation

Active as of 2023-08-28

Raw xml | Download

    <Library xmlns="http://hl7.org/fhir">
      <id value="PCSBMIScreenAndFollowUpFHIR"/>
      <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;">PCSBMIScreenAndFollowUpFHIR</td>
                </tr>

                <tr>
                    <th scope="row"><b>Url: </b></th>
                    <td style="padding-left: 4px;">http://ecqi.healthit.gov/ecqms/Library/PCSBMIScreenAndFollowUpFHIR</td>
                </tr>

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

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

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

                    </td>
                </tr>

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

                <tr>
                    <th scope="row"><b>Title: </b></th>
                    <td style="padding-left: 4px;">PCSBMIScreenAndFollowUpFHIR</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-28T20:56:47+00:00</td>
                </tr>

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

                <tr>
                    <th scope="row"><b>Use Context: </b></th>
                    <td style="padding-left: 4px;">
                        <table class="grid-dict">
                            <tr><th><b>code</b></th><th><b>value</b></th><th><b>display</b></th></tr>

                                <tr>
                                    <td>program</td>
                                    <td>ep-ec</td>
                                    <td>EP/EC</td>
                                </tr>

                        </table>
                    </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/>

                            </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/StructureDefinition/bmi</th>
                                    <th>;;;;</th>
                                    <th>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Observation</th>
                                    <th>http://hl7.org/fhir/StructureDefinition/bmi</th>
                                    <th>;;;;</th>
                                    <th>

                                    </th>
                                </tr>

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

                                    </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.600.1.1525</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.600.1.1527</span>
                          </span>

                                    </th>
                                </tr>

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

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>medication</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.1561</span>
                          </span>

                                    </th>
                                </tr>

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

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>medication</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.1561</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.113762.1.4.1047.502</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.600.1.1525</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.113762.1.4.1047.502</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>Observation</th>
                                    <th>http://hl7.org/fhir/StructureDefinition/bmi</th>
                                    <th>;;;;</th>
                                    <th>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Observation</th>
                                    <th>http://hl7.org/fhir/StructureDefinition/bmi</th>
                                    <th>;;;;</th>
                                    <th>

                                    </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.600.1.1528</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.600.1.1527</span>
                          </span>

                                    </th>
                                </tr>

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

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>medication</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.1562</span>
                          </span>

                                    </th>
                                </tr>

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

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>medication</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.1562</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.1563</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.600.1.1528</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.1563</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Observation</th>
                                    <th>http://hl7.org/fhir/StructureDefinition/bmi</th>
                                    <th>;;;;</th>
                                    <th>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Observation</th>
                                    <th>http://hl7.org/fhir/StructureDefinition/bmi</th>
                                    <th>;;;;</th>
                                    <th>

                                    </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.600.1.1751</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>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.600.1.1751</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Coverage</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage</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.114222.4.11.3591</span>
                          </span>

                                    </th>
                                </tr>

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

                                    </th>
                                </tr>

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

                                    </th>
                                </tr>

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

                                    </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>

                                <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.600.1.1623</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.600.1.1751</span>
                          </span>

                                    </th>
                                </tr>

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

                                    </th>
                                </tr>

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

                                    </th>
                                </tr>

                                <tr>
                                    <th>ServiceRequest</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested</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.600.1.1527</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>ServiceRequest</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested</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.600.1.1527</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>ServiceRequest</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested</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.600.1.1525</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>ServiceRequest</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested</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.600.1.1525</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>ServiceRequest</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested</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.600.1.1528</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>ServiceRequest</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested</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.600.1.1528</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.600.1.1751</span>
                          </span>

                                    </th>
                                </tr>

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

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>medication</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.1561</span>
                          </span>

                                    </th>
                                </tr>

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

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>medication</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.1561</span>
                          </span>

                                    </th>
                                </tr>

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

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>medication</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.1562</span>
                          </span>

                                    </th>
                                </tr>

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

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>medication</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.1562</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.600.1.1751</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Observation</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observationnotdone</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>39156-5</span>
                                                    </p>

                                                    <p style="margin-bottom: 5px;">
                                                        <b>display: </b> <span>Body mass index (BMI) [Ratio]</span>
                                                    </p>

                                    </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.600.1.1751</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.600.1.1751</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Coverage</th>
                                    <th>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage</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.114222.4.11.3591</span>
                          </span>

                                    </th>
                                </tr>

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

                                    </th>
                                </tr>

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

                                    </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 PCSBMIScreenAndFollowUpFHIR version '0.1.000'

    using QICore version '4.1.1'

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

    codesystem &quot;ActCode&quot;: 'http://terminology.hl7.org/CodeSystem/v3-ActCode'
    codesystem &quot;ICD10CM&quot;: 'http://hl7.org/fhir/sid/icd-10-cm'
    codesystem &quot;LOINC&quot;: 'http://loinc.org'
    codesystem &quot;ObservationCategoryCodes&quot;: 'http://terminology.hl7.org/CodeSystem/observation-category'

    valueset &quot;Encounter to Evaluate BMI&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1751'
    valueset &quot;Follow Up for Above Normal BMI&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1525'
    valueset &quot;Follow Up for Below Normal BMI&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1528'
    valueset &quot;Medical Reason&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1007'
    valueset &quot;Medications for Above Normal BMI&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1561'
    valueset &quot;Medications for Below Normal BMI&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1562'
    valueset &quot;Overweight or Obese&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1047.502'
    valueset &quot;Patient Declined&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1582'
    valueset &quot;Pregnancy or Other Related Diagnoses&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1623'
    valueset &quot;Referrals Where Weight Assessment May Occur&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1527'
    valueset &quot;Underweight&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1563'

    code &quot;Body mass index (BMI) [Ratio]&quot;: '39156-5' from &quot;LOINC&quot; display 'Body mass index (BMI) [Ratio]'
    code &quot;Encounter for palliative care&quot;: 'Z51.5' from &quot;ICD10CM&quot; display 'Encounter for palliative care'
    code &quot;Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal)&quot;: '71007-9' from &quot;LOINC&quot; display 'Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal)'
    code &quot;virtual&quot;: 'VR' from &quot;ActCode&quot; display 'virtual'

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

    context Patient

    define &quot;Initial Population&quot;:
      exists &quot;Qualifying Encounter during Day of Measurement Period&quot; QualifyingEncounter
        where &quot;AgeInYearsAt&quot;(date from start of QualifyingEncounter.period) &gt;= 18

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

    define &quot;Denominator Exclusions&quot;:
      Hospice.&quot;Has Hospice Services&quot;
        or PalliativeCare.&quot;Has Palliative Care in the Measurement Period&quot;
        or exists &quot;Pregnancy&quot;

    define &quot;Numerator&quot;:
      exists &quot;High BMI and Follow up Provided&quot;
        or exists &quot;Low BMI and Follow up Provided&quot;
        or &quot;Has Normal BMI&quot;

    define &quot;Denominator Exceptions&quot;:
      exists &quot;Medical Reason for Not Documenting a Follow up Plan for Low or High BMI&quot;
        or exists &quot;Medical Reason or Patient Reason for Not Performing BMI Exam&quot;

    define &quot;BMI during Measurement Period&quot;:
      [&quot;observation-bmi&quot;] BMI
        where BMI.value &gt; 0 'kg/m2'
          and BMI.status in { 'final', 'amended', 'corrected' }
          and BMI.effective.toInterval ( ) during day of &quot;Measurement Period&quot;

    define &quot;Documented Low BMI during Measurement Period&quot;:
      &quot;BMI during Measurement Period&quot; BMI
        where BMI.effective.toInterval ( ) during day of &quot;Measurement Period&quot;
          and BMI.value &lt; 18.5 'kg/m2'

    define &quot;Documented High BMI during Measurement Period&quot;:
      &quot;BMI during Measurement Period&quot; BMI
        where BMI.effective.toInterval ( ) during day of &quot;Measurement Period&quot;
          and BMI.value &gt;= 25 'kg/m2'

    define &quot;Has Normal BMI&quot;:
      exists ( &quot;BMI during Measurement Period&quot; BMI
          where BMI.value in Interval[18.5 'kg/m2', 24.9 'kg/m2']
      )
        and not ( exists &quot;Documented High BMI during Measurement Period&quot;
            or exists &quot;Documented Low BMI during Measurement Period&quot;
        )

    define &quot;High BMI and Follow up Provided&quot;:
      &quot;Documented High BMI during Measurement Period&quot; HighBMI
        with ( &quot;High BMI Interventions Ordered&quot;
          union &quot;High BMI Interventions Performed&quot; ) HighBMIInterventions
          such that Coalesce(HighBMIInterventions.performed.toInterval(), HighBMIInterventions.authoredOn.toInterval()) starts during day of &quot;Measurement Period&quot;

    define &quot;High BMI Interventions Ordered&quot;:
      ( ( [ServiceRequest: &quot;Follow Up for Above Normal BMI&quot;]
          union [ServiceRequest: &quot;Referrals Where Weight Assessment May Occur&quot;]
          union [MedicationRequest: &quot;Medications for Above Normal BMI&quot;] ) HighInterventionsOrdered
          where HighInterventionsOrdered.reasonCode in &quot;Overweight or Obese&quot;
            or ( exists [Condition: &quot;Overweight or Obese&quot;] OverweightObese
                where ( OverweightObese.isProblemListItem ( )
                    or OverweightObese.isHealthConcern ( )
                )
                  and OverweightObese.isActive ( )
                  and OverweightObese.prevalenceInterval ( ) starts before or on day of HighInterventionsOrdered.authoredOn
                  and not ( OverweightObese.prevalenceInterval ( ) ends before day of HighInterventionsOrdered.authoredOn )
            )
      )

    define &quot;High BMI Interventions Performed&quot;:
      ( [Procedure: &quot;Follow Up for Above Normal BMI&quot;] HighInterventionsPerformed
          where HighInterventionsPerformed.reasonCode in &quot;Overweight or Obese&quot;
            and HighInterventionsPerformed.status = 'completed'
            or ( exists [Condition: &quot;Overweight or Obese&quot;] OverweightObese
                where OverweightObese.isHealthConcern ( )
                  and OverweightObese.isActive ( )
                  and OverweightObese.prevalenceInterval ( ) starts before or on day of HighInterventionsPerformed.performed.toInterval ( )
                  and not ( OverweightObese.prevalenceInterval ( ) ends before day of HighInterventionsPerformed.performed.toInterval ( ) )
            )
      )

    define &quot;Medical Reason or Patient Reason for Not Performing BMI Exam&quot;:
      [ObservationNotDone: code = &quot;Body mass index (BMI) [Ratio]&quot;] NoBMI
        with &quot;Qualifying Encounter during Day of Measurement Period&quot; QualifyingEncounter
          such that NoBMI.effective.toInterval ( ) ends same day as start of QualifyingEncounter.period
        where NoBMI.status = 'cancelled'
          and ( NoBMI.notDoneReason in &quot;Patient Declined&quot;
              or NoBMI.notDoneReason in &quot;Medical Reason&quot;
          )

    define &quot;Low BMI Interventions Ordered&quot;:
      ( ( [ServiceRequest: &quot;Follow Up for Below Normal BMI&quot;]
          union [ServiceRequest: &quot;Referrals Where Weight Assessment May Occur&quot;]
          union [MedicationRequest: &quot;Medications for Below Normal BMI&quot;] ) LowInterventionsOrdered
          where LowInterventionsOrdered.reasonCode in &quot;Underweight&quot;
            or ( exists [Condition: &quot;Underweight&quot;] Underweight
                where ( Underweight.isHealthConcern ( ) )
                  and Underweight.isActive ( )
                  and Underweight.prevalenceInterval ( ) starts before or on day of LowInterventionsOrdered.authoredOn
                  and not ( Underweight.prevalenceInterval ( ) ends before day of LowInterventionsOrdered.authoredOn )
                  and LowInterventionsOrdered.authoredOn during day of &quot;Measurement Period&quot;
            )
      )

    define &quot;Low BMI Interventions Performed&quot;:
      ( [Procedure: &quot;Follow Up for Below Normal BMI&quot;] LowInterventionsPerformed
          where LowInterventionsPerformed.reasonCode in &quot;Underweight&quot;
            and LowInterventionsPerformed.status = 'completed'
            or ( exists [Condition: &quot;Underweight&quot;] Underweight
                where ( Underweight.isHealthConcern ( ) )
                  and Underweight.isActive ( )
                  and Underweight.prevalenceInterval ( ) starts before or on day of LowInterventionsPerformed.performed.toInterval ( )
                  and not ( Underweight.prevalenceInterval ( ) ends before day of LowInterventionsPerformed.performed.toInterval ( )
                      and LowInterventionsPerformed.performed.toInterval ( ) during day of &quot;Measurement Period&quot;
                  )
            )
      )

    define &quot;Low BMI and Follow up Provided&quot;:
      ( &quot;Documented Low BMI during Measurement Period&quot; LowBMI
          with ( &quot;Low BMI Interventions Ordered&quot;
            union &quot;Low BMI Interventions Performed&quot; ) LowBMIInterventions
            such that Coalesce(LowBMIInterventions.performed.toInterval(), LowBMIInterventions.authoredOn.toInterval()) starts during day of &quot;Measurement Period&quot;
      )

    define &quot;Medical Reason for Not Documenting a Follow up Plan for Low or High BMI&quot;:
      ( ( [ServiceNotRequested: &quot;Referrals Where Weight Assessment May Occur&quot;]
          union [ServiceNotRequested: &quot;Follow Up for Above Normal BMI&quot;]
          union [ServiceNotRequested: &quot;Follow Up for Below Normal BMI&quot;] ) NoBMIFollowUp
          with &quot;Qualifying Encounter during Day of Measurement Period&quot; QualifyingEncounter
            such that NoBMIFollowUp.authoredOn same day as start of QualifyingEncounter.period
          where NoBMIFollowUp.status ~ 'completed'
            and NoBMIFollowUp.reasonRefused in &quot;Medical Reason&quot;
      )
        union ( ( [MedicationNotRequested: &quot;Medications for Above Normal BMI&quot;]
            union [MedicationNotRequested: &quot;Medications for Below Normal BMI&quot;] ) NoBMIFollowUp
            with &quot;Qualifying Encounter during Day of Measurement Period&quot; QualifyingEncounter
              such that NoBMIFollowUp.authoredOn same day as start of QualifyingEncounter.period
            where NoBMIFollowUp.status ~ 'completed'
              and NoBMIFollowUp.reasonCode in &quot;Medical Reason&quot;
        )

    define &quot;Pregnancy&quot;:
      [Condition: &quot;Pregnancy or Other Related Diagnoses&quot;] PregnancyDiagnosis
        with &quot;Qualifying Encounter during Day of Measurement Period&quot; QualifyingEncounter
          such that PregnancyDiagnosis.clinicalStatus ~ QICoreCommon.&quot;active&quot;
            and PregnancyDiagnosis.prevalenceInterval ( ) overlaps day of &quot;Measurement Period&quot;

    define &quot;Qualifying Encounter during Day of Measurement Period&quot;:
      [Encounter: &quot;Encounter to Evaluate BMI&quot;] BMIEncounter
        where BMIEncounter.period during day of &quot;Measurement Period&quot;
          and BMIEncounter.class !~ &quot;virtual&quot;
          and BMIEncounter.status = 'finished'

    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 (342376 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 (488888 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/PCSBMIScreenAndFollowUpFHIR"/>
      <identifier>
        <use value="official"/>
        <system value="https://madie.cms.gov/login"/>
        <value value="PCSBMIScreenAndFollowUpFHIR"/>
      </identifier>
      <version value="0.1.000"/>
      <name value="PCSBMIScreenAndFollowUpFHIR"/>
      <title value="PCSBMIScreenAndFollowUpFHIR"/>
      <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-28T20:56:47+00:00"/>
      <description value="PCSBMIScreenAndFollowUpFHIR"/>
      <useContext>
        <code>
          <system
                  value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
          <code value="program"/>
        </code>
        <valueCodeableConcept>
          <coding>
            <system
                    value="http://hl7.org/fhir/us/cqfmeasures/CodeSystem/quality-programs"/>
            <code value="ep-ec"/>
            <display value="EP/EC"/>
          </coding>
        </valueCodeableConcept>
      </useContext>
      <relatedArtifact id="Z51.5">
        <display value="Encounter for palliative care"/>
        <url value="http://hl7.org/fhir/sid/icd-10-cm"/>
        <document>
          <url value="http://hl7.org/fhir/sid/icd-10-cm"/>
        </document>
      </relatedArtifact>
      <relatedArtifact id="39156-5">
        <display value="Body mass index (BMI) [Ratio]"/>
        <url value="http://loinc.org"/>
        <document>
          <url value="http://loinc.org"/>
        </document>
      </relatedArtifact>
      <relatedArtifact id="71007-9">
        <display
                 value="Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal)"/>
        <url value="http://loinc.org"/>
        <document>
          <url value="http://loinc.org"/>
        </document>
      </relatedArtifact>
      <relatedArtifact id="VR">
        <display value="virtual"/>
        <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 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 SDE"/>
        <resource
                  value="http://ecqi.healthit.gov/ecqms/Library/SupplementalDataElements|3.4.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 ActCode"/>
        <resource value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Code system ICD10CM"/>
        <resource value="http://hl7.org/fhir/sid/icd-10-cm"/>
      </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 ObservationCategoryCodes"/>
        <resource
                  value="http://terminology.hl7.org/CodeSystem/observation-category"/>
      </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 SNOMEDCT"/>
        <resource value="http://snomed.info/sct"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Code system ConditionCategory"/>
        <resource
                  value="http://terminology.hl7.org/CodeSystem/condition-category"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Code system USCoreConditionCategoryExtensionCodes"/>
        <resource
                  value="http://hl7.org/fhir/us/core/CodeSystem/condition-category"/>
      </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 Encounter to Evaluate BMI"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1751"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Follow Up for Above Normal BMI"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1525"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Follow Up for Below Normal BMI"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1528"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Medical Reason"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1007"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Medications for Above Normal BMI"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1561"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Medications for Below Normal BMI"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1562"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Overweight or Obese"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1047.502"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Patient Declined"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1582"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Pregnancy or Other Related Diagnoses"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1623"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Referrals Where Weight Assessment May Occur"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1527"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Underweight"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1563"/>
      </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>
      <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="Qualifying Encounter during Day of Measurement Period"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </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="Pregnancy"/>
        <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="BMI during Measurement Period"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Documented High BMI during Measurement Period"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="High BMI Interventions Ordered"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="High BMI Interventions Performed"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="High BMI and Follow up Provided"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Documented Low BMI during Measurement Period"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Low BMI Interventions Ordered"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Low BMI Interventions Performed"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Low BMI and Follow up Provided"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Has Normal BMI"/>
        <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="Medical Reason for Not Documenting a Follow up Plan for Low or High BMI"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name
              value="Medical Reason or Patient Reason for Not Performing BMI Exam"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Denominator Exceptions"/>
        <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="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="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="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="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="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.600.1.1751"/>
        </codeFilter>
        <codeFilter>
          <path value="class"/>
        </codeFilter>
        <codeFilter>
          <path value="status.value"/>
          <code>
            <code value="finished"/>
          </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.600.1.1623"/>
        </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"/>
        <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"/>
        <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="Condition"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition"/>
        <mustSupport value="code"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1047.502"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Condition"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition"/>
        <mustSupport value="code"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1563"/>
        </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="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="ServiceRequest"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest"/>
        <mustSupport value="code"/>
        <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.600.1.1525"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="ServiceRequest"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest"/>
        <mustSupport value="code"/>
        <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.600.1.1528"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="ServiceRequest"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest"/>
        <mustSupport value="code"/>
        <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.600.1.1527"/>
        </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="Procedure"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"/>
        <mustSupport value="code"/>
        <mustSupport value="reasonCode"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="performed"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1525"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Procedure"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"/>
        <mustSupport value="code"/>
        <mustSupport value="reasonCode"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="performed"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1528"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Observation"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/bmi"/>
        <mustSupport value="value"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="effective"/>
      </dataRequirement>
      <dataRequirement>
        <type value="Medication"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication"/>
        <mustSupport value="id"/>
      </dataRequirement>
      <dataRequirement>
        <type value="Medication"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication"/>
        <mustSupport value="id"/>
      </dataRequirement>
      <dataRequirement>
        <type value="MedicationRequest"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"/>
        <mustSupport value="medication"/>
        <codeFilter>
          <path value="medication"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1561"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="MedicationRequest"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"/>
        <mustSupport value="medication.reference"/>
      </dataRequirement>
      <dataRequirement>
        <type value="MedicationRequest"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"/>
        <mustSupport value="medication"/>
        <codeFilter>
          <path value="medication"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1562"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="ServiceRequest"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested"/>
        <mustSupport value="code"/>
        <mustSupport value="authoredOn"/>
        <mustSupport value="authoredOn.value"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="extension"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1527"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="ServiceRequest"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested"/>
        <mustSupport value="code"/>
        <mustSupport value="authoredOn"/>
        <mustSupport value="authoredOn.value"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="extension"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1527"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="ServiceRequest"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested"/>
        <mustSupport value="code"/>
        <mustSupport value="authoredOn"/>
        <mustSupport value="authoredOn.value"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="extension"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1525"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="ServiceRequest"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested"/>
        <mustSupport value="code"/>
        <mustSupport value="authoredOn"/>
        <mustSupport value="authoredOn.value"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="extension"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1525"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="ServiceRequest"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested"/>
        <mustSupport value="code"/>
        <mustSupport value="authoredOn"/>
        <mustSupport value="authoredOn.value"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="extension"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1528"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="ServiceRequest"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested"/>
        <mustSupport value="code"/>
        <mustSupport value="authoredOn"/>
        <mustSupport value="authoredOn.value"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="extension"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1528"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="MedicationRequest"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-mednotrequested"/>
        <mustSupport value="medication"/>
        <mustSupport value="authoredOn"/>
        <mustSupport value="authoredOn.value"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="reasonCode"/>
        <codeFilter>
          <path value="medication"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1561"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="MedicationRequest"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-mednotrequested"/>
        <mustSupport value="medication"/>
        <mustSupport value="authoredOn"/>
        <mustSupport value="authoredOn.value"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="reasonCode"/>
        <codeFilter>
          <path value="medication"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1561"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="MedicationRequest"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-mednotrequested"/>
        <mustSupport value="medication"/>
        <mustSupport value="authoredOn"/>
        <mustSupport value="authoredOn.value"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="reasonCode"/>
        <codeFilter>
          <path value="medication"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1562"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="MedicationRequest"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-mednotrequested"/>
        <mustSupport value="medication"/>
        <mustSupport value="authoredOn"/>
        <mustSupport value="authoredOn.value"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="reasonCode"/>
        <codeFilter>
          <path value="medication"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1562"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Observation"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observationnotdone"/>
        <mustSupport value="code"/>
        <mustSupport value="effective"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="extension"/>
        <codeFilter>
          <path value="code"/>
          <code>
            <system value="http://loinc.org"/>
            <code value="39156-5"/>
            <display value="Body mass index (BMI) [Ratio]"/>
          </code>
        </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>