Draft dQM CMS Content Implementation Guide
2025.1.0 - CI Build

Draft dQM CMS Content Implementation Guide, published by cqframework. This guide is not an authorized publication; it is the continuous build for version 2025.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/dqm-content-cms-2025/ and changes regularly. See the Directory of published versions

## : Venous Thromboembolism ProphylaxisFHIR - XML Representation

Active as of 2026-01-16

Raw xml | Download

    <Measure xmlns="http://hl7.org/fhir">
      <id value="CMS108FHIRVTEProphylaxis"/>
      <meta>
        <profile
                 value="http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablemeasure"/>
        <profile
                 value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm"/>
        <profile
                 value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/publishable-measure-cqfm"/>
        <profile
                 value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/executable-measure-cqfm"/>
        <profile
                 value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cql-measure-cqfm"/>
        <profile
                 value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/elm-measure-cqfm"/>
        <profile
                 value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/proportion-measure-cqfm"/>
      </meta>
      <text>
        <status value="extensions"/>
        <div xmlns="http://www.w3.org/1999/xhtml">
      <table class="narrative-table">
        <tbody>
    <tr>

    <th colspan="2" scope="row" class="row-header">Metadata</th>

    </tr>

    <tr>

    <th scope="row" class="row-header">Title</th>

    <td class="content-container">Venous Thromboembolism ProphylaxisFHIR
    </td>

    </tr>

    <tr>

    <th scope="row" class="row-header">Version</th>

    <td class="content-container">1.1.000</td>

    </tr>

    <tr>

    <th scope="row" class="row-header">Short Name</th>

    <td class="content-container">CMS108FHIR</td>

    </tr>

    <tr>

    <th scope="row" class="row-header">GUID (Version Independent)</th>

    <td class="content-container">urn:uuid:fa570e9c-c75f-4972-a77e-9488816d14af</td>

    </tr>

    <tr>

    <th scope="row" class="row-header">GUID (Version Specific)</th>

    <td class="content-container">urn:uuid:b05a3fa8-ec68-4b88-a613-10274fada82e</td>

    </tr>

    <tr>

    <th scope="row" class="row-header">CMS Identifier</th>

    <td class="content-container">108FHIR</td>

    </tr>

    <tr>

    <th scope="row" class="row-header">Effective Period</th>

    <td class="content-container">2026-01-01 through 2026-12-31</td>

    </tr>

    <tr>

    <th scope="row" class="row-header">Steward (Publisher)</th>

    <td class="content-container">The Joint Commission</td>

    </tr>

    <tr>

    <th scope="row" class="row-header">Developer</th>

    <td class="content-container">The Joint Commission</td>

    </tr>

    <tr>

    <th scope="row" class="row-header">Description</th>

    <td class="content-container"><div><p>This measure assesses the number of patients who received Venous Thromboembolism (VTE) prophylaxis or have documentation why no VTE prophylaxis was given between the day of arrival to the day after hospital admission or surgery end date for surgeries that end the day after hospital admission</p>
    </div></td>

    </tr>

    <tr>

    <th scope="row" class="row-header">Copyright</th>

    <td class="content-container"><div><p>Measure specifications are in the Public Domain.</p>
    <p>LOINC(R) copyright 2004-2024 Regenstrief Institute, Inc. This material contains SNOMED Clinical Terms(R) (SNOMED CT[R]) copyright 2004-2024 International Health Terminology Standards Development Organisation. ICD-10 copyright 2024 World Health Organization. All Rights Reserved.</p>
    </div></td>

    </tr>

    <tr>

    <th scope="row" class="row-header">Disclaimer</th>

    <td class="content-container"><div><p>These performance measures are not clinical guidelines and do not establish a standard of medical care and have not been tested for all potential applications. The measures and specifications are provided without warranty.</p>
    </div></td>

    </tr>

    <tr>

    <th scope="row" class="row-header">Rationale</th>

    <td class="content-container"><div><p>The estimated annual incidence of deep-vein thrombosis (DVT) and pulmonary embolism (PE), known collectively as venous thromboembolism (VTE), ranges from 350,000 to 600,000 (Maynard, 2016). According to the Centers for Disease Control and Prevention (CDC) 2020 statistics, 1-2 per 1,000 adults in the United States are clinically diagnosed with VTE each year (CDC, 2020). Increased incidence is reported in the elderly (1 per 100) compared to young adults (1 per 10,000) (Henke et al., 2020).</p>
    <p>VTE is a known complication of hospitalization, frequently extending the length of stay and increasing hospital mortality (Maynard, 2016). Approximately 20% of VTE are associated with a surgical procedure (Henke et al., 2020). Hospitalized patients at high-risk for VTE may develop an asymptomatic DVT, and die from PE even before the diagnosis is suspected. The majority of fatal events occur as sudden or abrupt death, underscoring the importance of prevention as the most critical action step for reducing death from PE (Geerts et al., 2008).</p>
    <p>American Society of Hematology (ASH) 2018 VTE prophylaxis guidelines strongly recommend pharmacological prophylaxis using unfractionated heparin (UFH), low molecular weight heparin (LMWH) or fondaparinux for acutely and critically ill hospitalized medical patients, unless contraindicated. The use of mechanical prophylaxis is an acceptable alternative for patients with increased risk of bleeding and preferred over no prophylaxis. ASH 2019 guidelines for surgical patients similarly recommend pharmacological or mechanical prophylaxis over no VTE prophylaxis. (NOTE: Some select surgeries have previously been monitored in the Surgical Care Improvement Project; since performance on these surgeries has achieved very high levels, they are not included in this measure.)</p>
    <p>Despite its proven effectiveness, VTE prophylaxis remains underused or inappropriately used in both medical and surgical patients (Kahn et al., 2018). The ENDORSE study evaluated prophylaxis rates in 17,084 major surgery patients and found that more than one third of patients at risk for VTE (38%) did not receive prophylaxis with various rates reported for different types of surgery (Cohen et al., 2008). More recently, a systemic review of multiple randomized controlled trials found that system-wide interventions, such as computer alerts to physicians and other healthcare professionals, increased the use of appropriate VTE prophylaxis while reducing the number of symptomatic VTE at three months (Kahn et al., 2018).</p>
    </div></td>

    </tr>

    <tr>

    <th scope="row" class="row-header">Clinical Recommendation Statement</th>

    <td class="content-container"><div><p>Failure to recognize and protect patients at risk for venous thromboembolism (VTE) increases the chances for acutely ill hospitalized patients at high risk for developing a deep vein thrombosis or dying from a pulmonary embolism. Screening all patients is the only evidence based practice in reducing incidence of disease. All hospitalized patients should be evaluated for primary VTE prophylaxis, and given appropriate prophylaxis when indicated.</p>
    </div></td>

    </tr>

    <tr>

    <th scope="row" class="row-header">Citation</th>

      <td class="content-container">

        <div><p>Anderson, D. R., Morgano, G. P., Bennett, C., Dentali, F., Francis, C. W., Garcia, D. A., . . . Dahm, P. (2019). American Society of Hematology 2019 guidelines for management of venous thromboembolism: Prevention of venous thromboembolism in surgical hospitalized patients. Blood Advances, 3(23), 3898-3944. doi: 10.1182/bloodadvances.2019000975.</p>
    </div>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Citation</th>

      <td class="content-container">

        <div><p>Cohen, A. T., Tapson, V. F., Bergmann, J. F., et al. (2008). Venous thromboembolism risk and prophylaxis in the acute hospital care setting (ENDORSE study): A multinational cross-sectional study. Lancet, 371, 387-394.</p>
    </div>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Citation</th>

      <td class="content-container">

        <div><p>Geerts, W. H., Bergqvist, D., Pineo, G. F., et al. (2008). Prevention of venous thromboembolism: The Eighth ACCP Conference on Antithrombotic and Thrombolytic Therapy. Chest, 133, 381S-453S.</p>
    </div>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Citation</th>

      <td class="content-container">

        <div><p>Guyatt, G. H., Akl, E. A., Crowther, M., et al. (2012). Antithrombotic therapy and prevention of thrombosis, 9th edition: American College of Chest Physicians evidence-based clinical practice guidelines. Chest, 141(2 Suppl.), 7S-47S.</p>
    </div>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Citation</th>

      <td class="content-container">

        <div><p>Kearon, C., Akl, E. A., Comerota, A. J., et al. (2012, February). Antithrombotic therapy for VTE disease: Antithrombotic therapy and prevention of thrombosis, 9th edition: American College of Chest Physicians evidence-based clinical practice guidelines. Chest, 141(2 Suppl.), e419S-e494S.</p>
    </div>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Citation</th>

      <td class="content-container">

        <div><p>National Quality Forum. (2006). National voluntary consensus standards for prevention and care of venous thromboembolism: Policy, preferred practices, and initial performance measures-A consensus report. Washington, DC: National Quality Forum.</p>
    </div>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Citation</th>

      <td class="content-container">

        <div><p>Shojania, K. G., Duncan, B. W., McDonald, D. M., et al. (eds.). (2001). Making health care safer: A critical analysis of patient safety practices. Evidence Report/Technology Assessment No. 43. Rockville, MD: Agency for Healthcare Research and Quality.</p>
    </div>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Guidance (Usage)</th>

    <td class="content-container">When low dose unfractionated heparin is administered for VTE prophylaxis, the intended administration route for low dose unfractionated heparin is subcutaneous.

    Reasons for no pharmacological and no mechanical VTE prophylaxis must be explicitly documented by the medical doctor, advanced practice registered nurse, physician assistant, or pharmacist and linked with VTE prophylaxis. The only exception is patient refusal may be documented by a nurse. Ambulation alone is not a sufficient reason for not administering VTE prophylaxis. In order for ambulation/patient ambulating to be considered as an acceptable reason, there needs to be explicit documentation, e.g., &quot;patient out of bed and ambulating in halls - no VTE prophylaxis needed.&quot;

    This measure does not require the use of a specific risk assessment model or tool (e.g., Caprini, Padua, and IMPROVE) to determine VTE risk.

    The denominator population includes patients with inpatient hospitalizations and patients from Acute Hospital Care at Home programs, who are treated and billed as inpatients but receive care in their home. Inpatient hospitalizations for patients with a principal procedure of selected surgeries are excluded from the measure's denominator. Selected surgeries include general surgery, gynecological surgery, hip fracture surgery, hip/knee replacement surgery, intracranial neurosurgery, and urological surgery.

    Inpatient hospitalizations for patients administered apixaban or edoxaban, medications included in the &quot;Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment&quot; value set, would be counted in the numerator population only when the patients also have either a prior or present diagnosis of atrial fibrillation, a prior diagnosis of VTE, or a prior or present procedure of hip/knee replacement surgery.

    This dQM is an episode-based measure. An episode is defined as each inpatient hospitalization or encounter that ends during the measurement period.

    This FHIR-based measure has been derived from the QDM-based measure: CMS108v14. Please refer to the HL7 QI-Core Implementation Guide (https://hl7.org/fhir/us/qicore/STU6/) for more information on QI-Core and mapping recommendations from QDM to QI-Core STU 6. (https://hl7.org/fhir/us/qicore/STU6/qdm-to-qicore.html)
    </td>

    </tr>

        <tr>

    <th colspan="2" scope="row" class="row-header">Measure Group (Rate) (ID: Group_1)</th>

    </tr>

    <tr>

    <th scope="row" class="row-header">Basis</th>

    <td class="content-container">Encounter</td>

    </tr>

    <tr>

    <th scope="row" class="row-header">Scoring</th>

    <td class="content-container">
        Proportion

    </td>

    </tr>

    <tr>

    <th scope="row" class="row-header">Improvement Notation</th>

    <td class="content-container">
        Increased score indicates improvement

    </td>

    </tr>

    <tr>

    <th scope="row" class="row-header">Type</th>

    <td class="content-container">
        Process

    </td>

    </tr>

    <tr>

    <th scope="row" class="row-header">Rate Aggregation</th>

    <td class="content-container">None
    </td>

    </tr>

        <tr>

    <th scope="row" class="row-header">Initial Population</th>

          <td class="content-container">

            <em>ID</em>: InitialPopulation_1
            <br/>

              <em>Description</em>:
              <p style="white-space: pre-line" class="tab-one">Inpatient hospitalizations for patients age 18 and older, discharged from hospital inpatient acute care without a diagnosis of venous thromboembolism (VTE) or obstetrics that ends during the measurement period
    </p>

                  <em>Criteria</em>: <a href="#Group_1-InitialPopulation_1">Initial Population</a>

          </td>
        </tr>

        <tr>

    <th scope="row" class="row-header">Denominator</th>

          <td class="content-container">

            <em>ID</em>: Denominator_1
            <br/>

              <em>Description</em>:
              <p style="white-space: pre-line" class="tab-one">Equals Initial Population
    </p>

                  <em>Criteria</em>: <a href="#Group_1-Denominator_1">Denominator</a>

          </td>
        </tr>

        <tr>

    <th scope="row" class="row-header">Denominator Exclusion</th>

          <td class="content-container">

            <em>ID</em>: DenominatorExclusion_1
            <br/>

              <em>Description</em>:
              <p style="white-space: pre-line" class="tab-one">* Inpatient hospitalizations for patients who have a length of stay less than 2 days
    * Inpatient hospitalizations for patients who are direct admits to intensive care unit (ICU), or transferred to ICU the day of or the day after hospital admission with ICU length of stay greater than or equal to one day
    * Inpatient hospitalizations for patients with a principal diagnosis of mental disorders or stroke
    * Inpatient hospitalizations for patients with a principal procedure of selected surgeries
    * Inpatient hospitalizations for patients with comfort measures documented anytime between the day of arrival and the day after hospital admission
    * Inpatient hospitalizations for patients with comfort measures documented by the day after surgery end date for surgeries that end the day after hospital admission
    </p>

                  <em>Criteria</em>: <a href="#Group_1-DenominatorExclusion_1">Denominator Exclusions</a>

          </td>
        </tr>

        <tr>

    <th scope="row" class="row-header">Numerator</th>

          <td class="content-container">

            <em>ID</em>: Numerator_1
            <br/>

              <em>Description</em>:
              <p style="white-space: pre-line" class="tab-one">Inpatient hospitalizations for patients who received VTE prophylaxis:

    * between the day of arrival and the day after hospital admission
    * the day of or the day after surgery end date (for surgeries that end the day after hospital admission)

    Inpatient hospitalizations for patients who have documentation of a reason why no VTE prophylaxis was given:

    * between the day of arrival and the day after hospital admission
    * the day of or the day after surgery end date (for surgeries that end the day after hospital admission)
    </p>

                  <em>Criteria</em>: <a href="#Group_1-Numerator_1">Numerator</a>

          </td>
        </tr>

    <tr>

    <th scope="row" class="row-header">Supplemental Data Guidance Guidance</th>

    <td class="content-container">&lt;p&gt;For every patient evaluated by this measure also identify payer, race, ethnicity and sex&lt;/p&gt;</td>

    </tr>

      <tr>

    <th colspan="2" scope="row" class="row-header">Supplemental Data Elements</th>

    </tr>

    <tr>

    <th scope="row" class="row-header">Supplemental Data Element</th>

      <td class="content-container">

          <em>ID</em>: sde-ethnicity

          <br/>

              <em>Usage Code</em>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}">Supplemental Data</span>

            <br/>

          <em>Description</em>: SDE Ethnicity

            <br/>

              <em>Logic Definition</em>: <a href="#cms108fhirvteprophylaxis-sde-ethnicity">SDE Ethnicity</a>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Supplemental Data Element</th>

      <td class="content-container">

          <em>ID</em>: sde-race

          <br/>

              <em>Usage Code</em>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}">Supplemental Data</span>

            <br/>

          <em>Description</em>: SDE Race

            <br/>

              <em>Logic Definition</em>: <a href="#cms108fhirvteprophylaxis-sde-race">SDE Race</a>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Supplemental Data Element</th>

      <td class="content-container">

          <em>ID</em>: sde-sex

          <br/>

              <em>Usage Code</em>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}">Supplemental Data</span>

            <br/>

          <em>Description</em>: SDE Sex

            <br/>

              <em>Logic Definition</em>: <a href="#cms108fhirvteprophylaxis-sde-sex">SDE Sex</a>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Supplemental Data Element</th>

      <td class="content-container">

          <em>ID</em>: sde-payer

          <br/>

              <em>Usage Code</em>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}">Supplemental Data</span>

            <br/>

          <em>Description</em>: SDE Payer

            <br/>

              <em>Logic Definition</em>: <a href="#cms108fhirvteprophylaxis-sde-payer">SDE Payer</a>

      </td>
    </tr>

    <tr>

    <th colspan="2" scope="row" class="row-header">Measure Logic</th>

    </tr>

    <tr>

    <th scope="row" class="row-header">Primary Library</th>

    <td class="content-container"><a href="Library-CMS108FHIRVTEProphylaxis.html">CMS108FHIRVTEProphylaxis</a></td>

    </tr>

    <tr>
      <th scope="row" class="row-header">Contents</th>
      <td class="content-container">
        <em><a href="#population-criteria">Population Criteria</a></em>
        <br/>
        <em><a href="#definitions">Logic Definitions</a></em>
        <br/>
        <em><a href="#terminology">Terminology</a></em>
        <br/>
        <em><a href="#dependencies">Dependencies</a></em>
        <br/>
        <em><a href="#data-requirements">Data Requirements</a></em>
        <br/>
        <em><a href="#parameters">Parameters</a></em>
        <br/>
      </td>
    </tr>

      <tr>

    <th colspan="2" scope="row" class="row-header"><a name="population-criteria"> </a>Population Criteria</th>

    </tr>

        <tr>

    <th colspan="2" scope="row" class="row-header">Measure Group (Rate) (ID: Group_1)</th>

    </tr>

                <tr>
      <th scope="row" rowspan="2" class="row-header">

        Initial Population

      </th>
    </tr>
    <tr>

      <td>

          <a name="Group_1-InitialPopulation_1"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Initial Population&quot;:
      VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot;</code></pre>

          <a href="#cms108fhirvteprophylaxis-initial-population"><em>Definition</em></a>

      </td>

    </tr>

                <tr>
      <th scope="row" rowspan="2" class="row-header">

        Denominator

      </th>
    </tr>
    <tr>

      <td>

          <a name="Group_1-Denominator_1"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Denominator&quot;:
      &quot;Initial Population&quot;</code></pre>

          <a href="#cms108fhirvteprophylaxis-denominator"><em>Definition</em></a>

      </td>

    </tr>

                <tr>
      <th scope="row" rowspan="2" class="row-header">

        Denominator Exclusion

      </th>
    </tr>
    <tr>

      <td>

          <a name="Group_1-DenominatorExclusion_1"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Denominator Exclusions&quot;:
      &quot;Encounter Less Than 2 Days&quot;
        union &quot;Encounter With ICU Location Stay 1 Day Or More&quot;
        union &quot;Encounter With Principal Diagnosis Of Mental Disorder Or Stroke&quot;
        union &quot;Encounter With Principal Procedure Of Selected Surgery&quot;
        union &quot;Encounter With Intervention Comfort Measures From Day Of Start Of Hospitalization To Day After Admission&quot;
        union &quot;Encounter With Intervention Comfort Measures On Day Of Or Day After Procedure&quot;</code></pre>

          <a href="#cms108fhirvteprophylaxis-denominator-exclusions"><em>Definition</em></a>

      </td>

    </tr>

                <tr>
      <th scope="row" rowspan="2" class="row-header">

        Numerator

      </th>
    </tr>
    <tr>

      <td>

          <a name="Group_1-Numerator_1"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Numerator&quot;:
      &quot;Encounter With VTE Prophylaxis Received From Day Of Start Of Hospitalization To Day After Admission Or Procedure&quot;
        union ( &quot;Encounter With Medication Oral Factor Xa Inhibitor Administered On Day Of Or Day After Admission Or Procedure&quot;
            intersect ( &quot;Encounter With Prior Or Present Diagnosis Of Atrial Fibrillation Or Prior Diagnosis Of VTE&quot;
                union &quot;Encounter With Prior Or Present Procedure Of Hip Or Knee Replacement Surgery&quot;
            )
        )
        union &quot;Encounter With Low Risk For VTE Or Anticoagulant Administered&quot;
        union &quot;Encounter With No VTE Prophylaxis Due To Medical Reason&quot;
        union &quot;Encounter With No VTE Prophylaxis Due To Patient Refusal&quot;</code></pre>

          <a href="#cms108fhirvteprophylaxis-numerator"><em>Definition</em></a>

      </td>

    </tr>

      <tr>

    <th colspan="2" scope="row" class="row-header"><a name="definitions"> </a>Logic Definitions</th>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> SupplementalDataElements</td>

    </tr>
    <tr>

      <td>

          <a name="supplementaldataelements-sde-sex"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;SDE Sex&quot;:
      case
        when Patient.sex() = '248153007' then &quot;Male (finding)&quot;
        when Patient.sex() = '248152002' then &quot;Female (finding)&quot;
        else null
      end</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> SupplementalDataElements</td>

    </tr>
    <tr>

      <td>

          <a name="supplementaldataelements-sde-payer"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;SDE Payer&quot;:
      [USQualityCore.Coverage: type in &quot;Payer Type&quot;] Payer
        return {
          code: Payer.type,
          period: Payer.period
        }</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> SupplementalDataElements</td>

    </tr>
    <tr>

      <td>

          <a name="supplementaldataelements-sde-ethnicity"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;SDE Ethnicity&quot;:
      (Patient.ethnicity()) E
        return Tuple {
          codes: { E.ombCategory } union E.detailed,
          display: E.text
        }</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> SupplementalDataElements</td>

    </tr>
    <tr>

      <td>

          <a name="supplementaldataelements-sde-race"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;SDE Race&quot;:
      (Patient.race()) R
        return Tuple {
          codes: R.ombCategory union R.detailed,
          display: R.text
        }</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-sde-sex"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;SDE Sex&quot;:
      SDE.&quot;SDE Sex&quot;</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-pharmacological-or-mechanical-vte-prophylaxis-received"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Pharmacological or Mechanical VTE Prophylaxis Received&quot;:
      ( [&quot;MedicationAdministration&quot;: &quot;Low Dose Unfractionated Heparin for VTE Prophylaxis&quot;] VTEMedication
          where VTEMedication.status = 'completed'
            and VTEMedication.dosage.route in &quot;Subcutaneous route&quot;
      )
        union ( [&quot;MedicationAdministration&quot;: &quot;Low Molecular Weight Heparin for VTE Prophylaxis&quot;] LMWH
            where LMWH.status = 'completed'
        )
        union ( [&quot;MedicationAdministration&quot;: &quot;Injectable Factor Xa Inhibitor for VTE Prophylaxis&quot;] FactorXa
            where FactorXa.status = 'completed'
        )
        union ( [&quot;MedicationAdministration&quot;: &quot;Warfarin&quot;] WarfarinAdm
            where WarfarinAdm.status = 'completed'
        )
        union ( [&quot;MedicationAdministration&quot;: &quot;Rivaroxaban for VTE Prophylaxis&quot;] Rivaroxaban
            where Rivaroxaban.status = 'completed'
        )
        union ( ( [&quot;Procedure&quot;: &quot;Application of Intermittent Pneumatic Compression Devices&quot;]
            union [&quot;Procedure&quot;: &quot;Application of Venous Foot Pumps&quot;]
            union [&quot;Procedure&quot;: &quot;Application of Graduated Compression Stockings&quot;] ) DeviceApplied
            where DeviceApplied.status = 'completed'
        )</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-encounter-with-vte-prophylaxis-received-from-day-of-start-of-hospitalization-to-day-after-admission-or-procedure"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter With VTE Prophylaxis Received From Day Of Start Of Hospitalization To Day After Admission Or Procedure&quot;:
      ( from
          VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter,
          &quot;Pharmacological or Mechanical VTE Prophylaxis Received&quot; VTEProphylaxis
          where Coalesce(VTEProphylaxis.effective.toInterval(), VTEProphylaxis.performed.toInterval()) starts during day of QualifyingEncounter.fromDayOfStartOfHospitalizationToDayAfterAdmission ( )
          return QualifyingEncounter
      )
        union ( from
            VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter,
            [&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,
            &quot;Pharmacological or Mechanical VTE Prophylaxis Received&quot; VTEProphylaxis
            where AnesthesiaProcedure.status = 'completed'
              and AnesthesiaProcedure.performed.toInterval ( ) ends 1 day after day of start of QualifyingEncounter.period
              and Coalesce(VTEProphylaxis.effective.toInterval(), VTEProphylaxis.performed.toInterval()) starts during day of ( end of AnesthesiaProcedure.performed.toInterval ( ) ).calendarDayOfOrDayAfter ( )
            return QualifyingEncounter
        )</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-encounter-with-medication-oral-factor-xa-inhibitor-administered-on-day-of-or-day-after-admission-or-procedure"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter With Medication Oral Factor Xa Inhibitor Administered On Day Of Or Day After Admission Or Procedure&quot;:
      ( from
          VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter,
          [&quot;MedicationAdministration&quot;: &quot;Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment&quot;] FactorXaMedication
          where FactorXaMedication.status = 'completed'
            and FactorXaMedication.effective.toInterval ( ) starts during day of ( start of QualifyingEncounter.period ).calendarDayOfOrDayAfter ( )
          return QualifyingEncounter
      )
        union ( from
            VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter,
            [&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,
            [&quot;MedicationAdministration&quot;: &quot;Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment&quot;] FactorXaMedication
            where FactorXaMedication.status = 'completed'
              and AnesthesiaProcedure.status = 'completed'
              and AnesthesiaProcedure.performed.toInterval ( ) ends 1 day after day of start of QualifyingEncounter.period
              and FactorXaMedication.effective.toInterval ( ) starts during day of ( end of AnesthesiaProcedure.performed.toInterval ( ) ).calendarDayOfOrDayAfter ( )
            return QualifyingEncounter
        )</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-encounter-with-prior-or-present-diagnosis-of-atrial-fibrillation-or-prior-diagnosis-of-vte"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter With Prior Or Present Diagnosis Of Atrial Fibrillation Or Prior Diagnosis Of VTE&quot;:
      ( VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter
          with [&quot;ConditionProblemsHealthConcerns&quot;: &quot;Atrial Fibrillation or Flutter&quot;] AtrialFibrillation
            such that AtrialFibrillation.verificationStatus is not null implies ( AtrialFibrillation.verificationStatus !~ FHIRCommon.&quot;refuted&quot;
                and AtrialFibrillation.verificationStatus !~ FHIRCommon.&quot;entered-in-error&quot;
            )
              and AtrialFibrillation.onset.toInterval ( ) starts on or before end of QualifyingEncounter.period
      )
        union ( VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter
            where QualifyingEncounter.hasEncDiagnosisOf ( &quot;Atrial Fibrillation or Flutter&quot; )
        )
        union ( VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter
            with [&quot;ConditionProblemsHealthConcerns&quot;: &quot;Venous Thromboembolism&quot;] VTEDiagnosis
              such that ( VTEDiagnosis.clinicalStatus ~ FHIRCommon.&quot;inactive&quot;
                  or VTEDiagnosis.clinicalStatus ~ FHIRCommon.&quot;remission&quot;
                  or VTEDiagnosis.clinicalStatus ~ FHIRCommon.&quot;resolved&quot;
              )
                and VTEDiagnosis.verificationStatus is not null implies ( VTEDiagnosis.verificationStatus !~ FHIRCommon.&quot;refuted&quot;
                  and VTEDiagnosis.verificationStatus !~ FHIRCommon.&quot;entered-in-error&quot;
              )
                and VTEDiagnosis.onset.toInterval ( ) before start of QualifyingEncounter.period
        )</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-encounter-with-prior-or-present-procedure-of-hip-or-knee-replacement-surgery"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter With Prior Or Present Procedure Of Hip Or Knee Replacement Surgery&quot;:
      VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter
        with ( [&quot;Procedure&quot;: &quot;Hip Replacement Surgery&quot;]
          union [&quot;Procedure&quot;: &quot;Knee Replacement Surgery&quot;] ) HipKneeProcedure
          such that HipKneeProcedure.status = 'completed'
            and HipKneeProcedure.performed.toInterval ( ) starts on or before end of QualifyingEncounter.period</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-low-risk-indicator-for-vte"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Low Risk Indicator For VTE&quot;:
      ( [&quot;SimpleObservation&quot;: &quot;Risk for venous thromboembolism&quot;] VTERiskAssessment
          where VTERiskAssessment.value as FHIR.CodeableConcept in &quot;Low Risk&quot;
            and VTERiskAssessment.status in { 'final', 'amended', 'corrected' }
          return {
            id: VTERiskAssessment.id,
            LowRiskDatetime: VTERiskAssessment.effective.earliest ( )
          }
      )
        union ( [&quot;LaboratoryResultObservation&quot;: &quot;INR&quot;] INRLabTest
            where INRLabTest.value as Quantity &gt; 3.0
              and INRLabTest.status in { 'final', 'amended', 'corrected' }
            return {
              id: INRLabTest.id,
              LowRiskDatetime: INRLabTest.issued
            }
        )
        union ( ( ( [&quot;MedicationAdministration&quot;: &quot;Unfractionated Heparin&quot;] UnfractionatedHeparin
              where UnfractionatedHeparin.dosage.route in &quot;Intravenous route&quot;
          )
            union [&quot;MedicationAdministration&quot;: &quot;Direct Thrombin Inhibitor&quot;]
            union [&quot;MedicationAdministration&quot;: &quot;Glycoprotein IIb IIIa Inhibitors&quot;] ) AnticoagulantMedication
            where AnticoagulantMedication.status = 'completed'
            return {
              id: AnticoagulantMedication.id,
              LowRiskDatetime: start of AnticoagulantMedication.effective.toInterval ( )
            }
        )</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-low-risk-for-vte-or-anticoagulant-administered-from-day-of-start-of-hospitalization-to-day-after-admission"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Low Risk For VTE Or Anticoagulant Administered From Day Of Start Of Hospitalization To Day After Admission&quot;:
      VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter
        with &quot;Low Risk Indicator For VTE&quot; LowRiskForVTE
          such that LowRiskForVTE.LowRiskDatetime during day of QualifyingEncounter.fromDayOfStartOfHospitalizationToDayAfterAdmission ( )</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-low-risk-for-vte-or-anticoagulant-administered-on-day-of-or-day-after-procedure"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Low Risk For VTE Or Anticoagulant Administered On Day Of Or Day After Procedure&quot;:
      from
        VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter,
        [&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,
        &quot;Low Risk Indicator For VTE&quot; LowRiskForVTE
        where AnesthesiaProcedure.status = 'completed'
          and AnesthesiaProcedure.performed.toInterval ( ) ends 1 day after day of start of QualifyingEncounter.period
          and LowRiskForVTE.LowRiskDatetime during day of ( end of AnesthesiaProcedure.performed.toInterval ( ) ).calendarDayOfOrDayAfter ( )
        return QualifyingEncounter</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-encounter-with-low-risk-for-vte-or-anticoagulant-administered"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter With Low Risk For VTE Or Anticoagulant Administered&quot;:
      &quot;Low Risk For VTE Or Anticoagulant Administered From Day Of Start Of Hospitalization To Day After Admission&quot;
        union &quot;Low Risk For VTE Or Anticoagulant Administered On Day Of Or Day After Procedure&quot;</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-no-vte-prophylaxis-medication-administered-or-ordered"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;No VTE Prophylaxis Medication Administered Or Ordered&quot;:
      ( ( [MedicationAdministrationNotDone: &quot;Low Dose Unfractionated Heparin for VTE Prophylaxis&quot;]
          union [MedicationAdministrationNotDone: &quot;Low Molecular Weight Heparin for VTE Prophylaxis&quot;]
          union [MedicationAdministrationNotDone: &quot;Injectable Factor Xa Inhibitor for VTE Prophylaxis&quot;]
          union [MedicationAdministrationNotDone: &quot;Warfarin&quot;]
          union [MedicationAdministrationNotDone: &quot;Rivaroxaban for VTE Prophylaxis&quot;] ) NoMedicationAdm
          return {
            id: NoMedicationAdm.id,
            medicationStatusReason: NoMedicationAdm.statusReason,
            authoredOn: NoMedicationAdm.recorded()
          }
      )
        union ( ( [&quot;MedicationNotRequested&quot;: &quot;Low Dose Unfractionated Heparin for VTE Prophylaxis&quot;]
            union [&quot;MedicationNotRequested&quot;: &quot;Low Molecular Weight Heparin for VTE Prophylaxis&quot;]
            union [&quot;MedicationNotRequested&quot;: &quot;Injectable Factor Xa Inhibitor for VTE Prophylaxis&quot;]
            union [&quot;MedicationNotRequested&quot;: &quot;Warfarin&quot;]
            union [&quot;MedicationNotRequested&quot;: &quot;Rivaroxaban for VTE Prophylaxis&quot;] ) NoMedicationOrder
            where NoMedicationOrder.intent in { 'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order' }
              and NoMedicationOrder.status in { 'active', 'completed' }
            return {
              id: NoMedicationOrder.id,
              medicationStatusReason: NoMedicationOrder.reasonCode,
              authoredOn: NoMedicationOrder.authoredOn
            }
        )
        union ( from
            ( [&quot;MedicationRequest&quot;: &quot;Low Dose Unfractionated Heparin for VTE Prophylaxis&quot;]
              union [&quot;MedicationRequest&quot;: &quot;Low Molecular Weight Heparin for VTE Prophylaxis&quot;]
              union [&quot;MedicationRequest&quot;: &quot;Injectable Factor Xa Inhibitor for VTE Prophylaxis&quot;]
              union [&quot;MedicationRequest&quot;: &quot;Warfarin&quot;]
              union [&quot;MedicationRequest&quot;: &quot;Rivaroxaban for VTE Prophylaxis&quot;] ) MedicationOrderReject,
            [TaskRejected] T
            where T.focus.references ( MedicationOrderReject )
              and T.code ~ USQualityCoreCommon.&quot;Fulfill&quot;
              and MedicationOrderReject.status = 'active'
            return {
              id: MedicationOrderReject.id,
              medicationStatusReason: { T.statusReason },
              authoredOn: MedicationOrderReject.authoredOn
            }
        )</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-no-vte-prophylaxis-medication-due-to-medical-reason-from-day-of-start-of-hospitalization-to-day-after-admission"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;No VTE Prophylaxis Medication Due To Medical Reason From Day Of Start Of Hospitalization To Day After Admission&quot;:
      VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter
        with &quot;No VTE Prophylaxis Medication Administered Or Ordered&quot; NoVTEMedication
          such that NoVTEMedication.medicationStatusReason in &quot;Medical Reason For Not Providing Treatment&quot;
            and NoVTEMedication.authoredOn during day of QualifyingEncounter.fromDayOfStartOfHospitalizationToDayAfterAdmission ( )</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-no-mechanical-vte-prophylaxis-performed-or-ordered"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;No Mechanical VTE Prophylaxis Performed Or Ordered&quot;:
      ( ( [ServiceNotRequested: &quot;Venous foot pumps&quot;]
          union [ServiceNotRequested: &quot;Intermittent pneumatic compression devices&quot;]
          union [ServiceNotRequested: &quot;Graduated compression stockings&quot;] ) DeviceNotOrder
          where DeviceNotOrder.intent in { 'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order' }
          return {
            id: DeviceNotOrder.id,
            requestStatusReason: DeviceNotOrder.reasonRefused(),
            authoredOn: DeviceNotOrder.authoredOn
          }
      )
        union ( from
            ( [ServiceRequest: &quot;Venous foot pumps&quot;]
              union [ServiceRequest: &quot;Intermittent pneumatic compression devices&quot;]
              union [ServiceRequest: &quot;Graduated compression stockings&quot;] ) DeviceOrderReject,
            [TaskRejected] T
            where DeviceOrderReject.intent in { 'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order' }
              and DeviceOrderReject.status = 'active'
              and T.focus.references ( DeviceOrderReject )
              and T.code ~ USQualityCoreCommon.&quot;Fulfill&quot;
            return {
              id: DeviceOrderReject.id,
              requestStatusReason: T.statusReason,
              authoredOn: DeviceOrderReject.authoredOn
            }
        )
        union ( ( [ProcedureNotDone: &quot;Application of Intermittent Pneumatic Compression Devices&quot;]
            union [ProcedureNotDone: &quot;Application of Venous Foot Pumps&quot;]
            union [ProcedureNotDone: &quot;Application of Graduated Compression Stockings&quot;] ) DeviceNotApplied
            return {
              id: DeviceNotApplied.id,
              requestStatusReason: DeviceNotApplied.statusReason,
              authoredOn: DeviceNotApplied.recorded()
            }
        )</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-no-mechanical-vte-prophylaxis-due-to-medical-reason-from-day-of-start-of-hospitalization-to-day-after-admission"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;No Mechanical VTE Prophylaxis Due To Medical Reason From Day Of Start Of Hospitalization To Day After Admission&quot;:
      VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter
        with &quot;No Mechanical VTE Prophylaxis Performed Or Ordered&quot; NoVTEDevice
          such that NoVTEDevice.requestStatusReason in &quot;Medical Reason For Not Providing Treatment&quot;
            and NoVTEDevice.authoredOn during day of QualifyingEncounter.fromDayOfStartOfHospitalizationToDayAfterAdmission ( )</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-no-vte-prophylaxis-medication-due-to-medical-reason-on-day-of-or-day-after-procedure"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;No VTE Prophylaxis Medication Due To Medical Reason On Day Of Or Day After Procedure&quot;:
      from
        VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter,
        [&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,
        &quot;No VTE Prophylaxis Medication Administered Or Ordered&quot; NoVTEMedication
        where NoVTEMedication.medicationStatusReason in &quot;Medical Reason For Not Providing Treatment&quot;
          and AnesthesiaProcedure.status = 'completed'
          and AnesthesiaProcedure.performed.toInterval ( ) ends 1 day after day of start of QualifyingEncounter.period
          and NoVTEMedication.authoredOn during day of ( end of AnesthesiaProcedure.performed.toInterval ( ) ).calendarDayOfOrDayAfter ( )
        return QualifyingEncounter</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-no-mechanical-vte-prophylaxis-due-to-medical-reason-on-day-of-or-day-after-procedure"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;No Mechanical VTE Prophylaxis Due To Medical Reason On Day Of Or Day After Procedure&quot;:
      from
        VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter,
        [&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,
        &quot;No Mechanical VTE Prophylaxis Performed Or Ordered&quot; NoVTEDevice
        where NoVTEDevice.requestStatusReason in &quot;Medical Reason For Not Providing Treatment&quot;
          and AnesthesiaProcedure.status = 'completed'
          and AnesthesiaProcedure.performed.toInterval ( ) ends 1 day after day of start of QualifyingEncounter.period
          and NoVTEDevice.authoredOn during day of ( end of AnesthesiaProcedure.performed.toInterval ( ) ).calendarDayOfOrDayAfter ( )
        return QualifyingEncounter</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-encounter-with-no-vte-prophylaxis-due-to-medical-reason"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter With No VTE Prophylaxis Due To Medical Reason&quot;:
      ( &quot;No VTE Prophylaxis Medication Due To Medical Reason From Day Of Start Of Hospitalization To Day After Admission&quot;
          intersect &quot;No Mechanical VTE Prophylaxis Due To Medical Reason From Day Of Start Of Hospitalization To Day After Admission&quot;
      )
        union ( &quot;No VTE Prophylaxis Medication Due To Medical Reason On Day Of Or Day After Procedure&quot;
            intersect &quot;No Mechanical VTE Prophylaxis Due To Medical Reason On Day Of Or Day After Procedure&quot;
        )</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-no-mechanical-or-pharmacological-vte-prophylaxis-due-to-patient-refusal"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;No Mechanical Or Pharmacological VTE Prophylaxis Due To Patient Refusal&quot;:
      ( &quot;No VTE Prophylaxis Medication Administered Or Ordered&quot; NoVTEMedication
          where exists ( NoVTEMedication.medicationStatusReason MedRsn
              where MedRsn in &quot;Patient Refusal&quot;
          )
      )
        union ( &quot;No Mechanical VTE Prophylaxis Performed Or Ordered&quot; NoVTEDevice
            where NoVTEDevice.requestStatusReason in &quot;Patient Refusal&quot;
        )</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-no-vte-prophylaxis-due-to-patient-refusal-from-day-of-start-of-hospitalization-to-day-after-admission"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;No VTE Prophylaxis Due To Patient Refusal From Day Of Start Of Hospitalization To Day After Admission&quot;:
      VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter
        with &quot;No Mechanical Or Pharmacological VTE Prophylaxis Due To Patient Refusal&quot; PatientRefusal
          such that PatientRefusal.authoredOn during day of QualifyingEncounter.fromDayOfStartOfHospitalizationToDayAfterAdmission ( )</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-no-vte-prophylaxis-due-to-patient-refusal-on-day-of-or-day-after-procedure"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;No VTE Prophylaxis Due To Patient Refusal On Day Of Or Day After Procedure&quot;:
      from
        VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter,
        [&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,
        &quot;No Mechanical Or Pharmacological VTE Prophylaxis Due To Patient Refusal&quot; PatientRefusal
        where AnesthesiaProcedure.status = 'completed'
          and AnesthesiaProcedure.performed.toInterval ( ) ends 1 day after day of start of QualifyingEncounter.period
          and PatientRefusal.authoredOn during day of ( end of AnesthesiaProcedure.performed.toInterval ( ) ).calendarDayOfOrDayAfter ( )
        return QualifyingEncounter</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-encounter-with-no-vte-prophylaxis-due-to-patient-refusal"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter With No VTE Prophylaxis Due To Patient Refusal&quot;:
      &quot;No VTE Prophylaxis Due To Patient Refusal From Day Of Start Of Hospitalization To Day After Admission&quot;
        union &quot;No VTE Prophylaxis Due To Patient Refusal On Day Of Or Day After Procedure&quot;</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-numerator"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Numerator&quot;:
      &quot;Encounter With VTE Prophylaxis Received From Day Of Start Of Hospitalization To Day After Admission Or Procedure&quot;
        union ( &quot;Encounter With Medication Oral Factor Xa Inhibitor Administered On Day Of Or Day After Admission Or Procedure&quot;
            intersect ( &quot;Encounter With Prior Or Present Diagnosis Of Atrial Fibrillation Or Prior Diagnosis Of VTE&quot;
                union &quot;Encounter With Prior Or Present Procedure Of Hip Or Knee Replacement Surgery&quot;
            )
        )
        union &quot;Encounter With Low Risk For VTE Or Anticoagulant Administered&quot;
        union &quot;Encounter With No VTE Prophylaxis Due To Medical Reason&quot;
        union &quot;Encounter With No VTE Prophylaxis Due To Patient Refusal&quot;</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-initial-population"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Initial Population&quot;:
      VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot;</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-denominator"> </a>

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

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-sde-payer"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;SDE Payer&quot;:
      SDE.&quot;SDE Payer&quot;</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-sde-ethnicity"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;SDE Ethnicity&quot;:
      SDE.&quot;SDE Ethnicity&quot;</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-encounter-less-than-2-days"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter Less Than 2 Days&quot;:
      VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter
        where QualifyingEncounter.period.lengthInDays ( ) &lt; 2</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-encounter-with-icu-location-stay-1-day-or-more"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter With ICU Location Stay 1 Day Or More&quot;:
      VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter
        where exists ( QualifyingEncounter.location Location
            where Location.location.getLocation ( ).type in &quot;Intensive Care Unit&quot;
              and Location.period.lengthInDays ( ) &gt;= 1
              and Location.period starts on or after start of QualifyingEncounter.period
              and date from ( start of Location.period ) during ( start of QualifyingEncounter.period ).calendarDayOfOrDayAfter ( )
        )</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-encounter-with-principal-diagnosis-of-mental-disorder-or-stroke"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter With Principal Diagnosis Of Mental Disorder Or Stroke&quot;:
      VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter
        where QualifyingEncounter.hasPrincipalDiagnosisOf ( &quot;Mental Health Diagnoses&quot; )
          or QualifyingEncounter.hasPrincipalDiagnosisOf ( &quot;Hemorrhagic Stroke&quot; )
          or QualifyingEncounter.hasPrincipalDiagnosisOf ( &quot;Ischemic Stroke&quot; )</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-encounter-with-principal-procedure-of-selected-surgery"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter With Principal Procedure Of Selected Surgery&quot;:
      VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter
        where QualifyingEncounter.hasPrincipalProcedureOf ( &quot;General Surgery&quot; )
          or QualifyingEncounter.hasPrincipalProcedureOf ( &quot;Gynecological Surgery&quot; )
          or QualifyingEncounter.hasPrincipalProcedureOf ( &quot;Hip Fracture Surgery&quot; )
          or QualifyingEncounter.hasPrincipalProcedureOf ( &quot;Hip Replacement Surgery&quot; )
          or QualifyingEncounter.hasPrincipalProcedureOf ( &quot;Intracranial Neurosurgery&quot; )
          or QualifyingEncounter.hasPrincipalProcedureOf ( &quot;Knee Replacement Surgery&quot; )
          or QualifyingEncounter.hasPrincipalProcedureOf ( &quot;Urological Surgery&quot; )</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-intervention-comfort-measures"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Intervention Comfort Measures&quot;:
      ( [&quot;ServiceRequest&quot;: &quot;Comfort Measures&quot;] InterventionRequest
          where InterventionRequest.intent in { 'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order' }
            and InterventionRequest.status in { 'active', 'completed' }
      )
        union ( [&quot;Procedure&quot;: &quot;Comfort Measures&quot;] InterventionPerformed
            where InterventionPerformed.status in { 'completed', 'in-progress' }
        )</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-encounter-with-intervention-comfort-measures-from-day-of-start-of-hospitalization-to-day-after-admission"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter With Intervention Comfort Measures From Day Of Start Of Hospitalization To Day After Admission&quot;:
      VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter
        with &quot;Intervention Comfort Measures&quot; ComfortMeasure
          such that Coalesce(start of ComfortMeasure.performed.toInterval(), ComfortMeasure.authoredOn) during day of QualifyingEncounter.fromDayOfStartOfHospitalizationToDayAfterAdmission ( )</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-encounter-with-intervention-comfort-measures-on-day-of-or-day-after-procedure"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter With Intervention Comfort Measures On Day Of Or Day After Procedure&quot;:
      from
        VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter,
        [&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,
        &quot;Intervention Comfort Measures&quot; ComfortMeasure
        where AnesthesiaProcedure.status = 'completed'
          and AnesthesiaProcedure.performed.toInterval ( ) ends 1 day after day of start of QualifyingEncounter.period
          and Coalesce(start of ComfortMeasure.performed.toInterval(), ComfortMeasure.authoredOn) during day of ( end of AnesthesiaProcedure.performed.toInterval ( ) ).calendarDayOfOrDayAfter ( )
        return QualifyingEncounter</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-denominator-exclusions"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Denominator Exclusions&quot;:
      &quot;Encounter Less Than 2 Days&quot;
        union &quot;Encounter With ICU Location Stay 1 Day Or More&quot;
        union &quot;Encounter With Principal Diagnosis Of Mental Disorder Or Stroke&quot;
        union &quot;Encounter With Principal Procedure Of Selected Surgery&quot;
        union &quot;Encounter With Intervention Comfort Measures From Day Of Start Of Hospitalization To Day After Admission&quot;
        union &quot;Encounter With Intervention Comfort Measures On Day Of Or Day After Procedure&quot;</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-sde-race"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;SDE Race&quot;:
      SDE.&quot;SDE Race&quot;</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CMS108FHIRVTEProphylaxis</td>

    </tr>
    <tr>

      <td>

          <a name="cms108fhirvteprophylaxis-fromdayofstartofhospitalizationtodayafteradmission"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function &quot;fromDayOfStartOfHospitalizationToDayAfterAdmission&quot;(Encounter Encounter):
      Interval[date from ( start of Encounter.hospitalizationWithObservation ( ) ), date from ( start of Encounter.period ) + 1 days]</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> TJCOverall</td>

    </tr>
    <tr>

      <td>

          <a name="tjcoverall-calendardayofordayafter"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function calendarDayOfOrDayAfter(StartValue DateTime):
      Interval [date from (StartValue), date from (StartValue) + 1 day]</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> USQualityCoreCommon</td>

    </tr>
    <tr>

      <td>

          <a name="usqualitycorecommon-recorded"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Returns the value of the recorded extension for a Medication Administration Not Done
    */
    define fluent function recorded(medicationAdministrationNotDone MedicationAdministrationNotDone):
      medicationAdministrationNotDone.ext('http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-recorded').value as FHIR.dateTime</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> USQualityCoreCommon</td>

    </tr>
    <tr>

      <td>

          <a name="usqualitycorecommon-reasonrefused"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Returns the value of the recorded extension for a Medication Administration Not Done
    */
    define fluent function reasonRefused(serviceNotRequested ServiceNotRequested):
      serviceNotRequested.ext('http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-doNotPerformReason').value as FHIR.CodeableConcept</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> USQualityCoreCommon</td>

    </tr>
    <tr>

      <td>

          <a name="usqualitycorecommon-recorded"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Returns the value of the recorded extension for a Medication Administration Not Done
    */
    define fluent function recorded(procedureNotDone ProcedureNotDone):
      procedureNotDone.ext('http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-recorded').value as FHIR.dateTime</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-tostring"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToString(value string): value.value</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-tostring"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToString(value uri): value.value</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-tostring"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToString(value EncounterStatus): value.value</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-tointerval"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)
    value to a CQL DateTime Interval
    @comment: If the start value of the given period is unspecified, the starting
    boundary of the resulting interval will be open (meaning the start of the interval
    is unknown, as opposed to interpreted as the beginning of time).
    */
    define function ToInterval(period FHIR.Period):
        if period is null then
            null
        else
            if period.&quot;start&quot; is null then
                Interval(period.&quot;start&quot;.value, period.&quot;end&quot;.value]
            else
                Interval[period.&quot;start&quot;.value, period.&quot;end&quot;.value]</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-toconcept"> </a>

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

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-tocode"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.
    */
    define function ToCode(coding FHIR.Coding):
        if coding is null then
            null
        else
            System.Code {
              code: coding.code.value,
              system: coding.system.value,
              version: coding.version.value,
              display: coding.display.value
            }</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-todate"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToDate(value date): value.value</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-tostring"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToString(value MedicationAdministrationStatus): value.value</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-tostring"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToString(value ProcedureStatus): value.value</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-todatetime"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToDateTime(value dateTime): value.value</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-todatetime"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToDateTime(value instant): value.value</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-toquantity"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Converts the given FHIR [Quantity](https://hl7.org/fhir/datatypes.html#Quantity)
    value to a CQL Quantity
    @comment: If the given quantity has a comparator specified, a runtime error is raised. If the given quantity
    has a system other than UCUM (i.e. `http://unitsofmeasure.org`) or CQL calendar units (i.e. `http://hl7.org/fhirpath/CodeSystem/calendar-units`)
    an error is raised. For UCUM to calendar units, the `ToCalendarUnit` function is used.
    @seealso: ToCalendarUnit
    */
    define function ToQuantity(quantity FHIR.Quantity):
        case
            when quantity is null then null
            when quantity.value is null then null
            when quantity.comparator is not null then
                Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')
            when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'
                  or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then
                System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }
            else
                Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' &amp; quantity.unit.value &amp; ' (' &amp; quantity.system.value &amp; '|' &amp; quantity.code.value &amp; ')')
        end</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-tocalendarunit"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Converts a UCUM definite duration unit to a CQL calendar duration
    unit using conversions specified in the [quantities](https://cql.hl7.org/02-authorsguide.html#quantities)
    topic of the CQL specification.
    @comment: Note that for durations above days (or weeks), the conversion is understood to be approximate
    */
    define function ToCalendarUnit(unit System.String):
        case unit
            when 'ms' then 'millisecond'
            when 's' then 'second'
            when 'min' then 'minute'
            when 'h' then 'hour'
            when 'd' then 'day'
            when 'wk' then 'week'
            when 'mo' then 'month'
            when 'a' then 'year'
            else unit
        end</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-tostring"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToString(value ObservationStatus): value.value</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-tostring"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToString(value MedicationRequestIntent): value.value</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-tostring"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToString(value MedicationRequestStatus): value.value</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-tostring"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToString(value ServiceRequestIntent): value.value</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-tostring"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToString(value ServiceRequestStatus): value.value</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-tostring"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToString(value ClaimStatus): value.value</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-tostring"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToString(value Use): value.value</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRCommon</td>

    </tr>
    <tr>

      <td>

          <a name="fhircommon-ext"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Returns the single extension (if present) on the given resource with the specified url.
    @comment: This function uses singleton from to ensure that a run-time exception is thrown if there
    is more than one extension on the given resource with the specified url.
    */
    define fluent function ext(domainResource DomainResource, url String):
      singleton from domainResource.exts(url)</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRCommon</td>

    </tr>
    <tr>

      <td>

          <a name="fhircommon-exts"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Returns any extensions defined on the given resource with the specified url
    */
    define fluent function exts(domainResource DomainResource, url String):
      domainResource.extension E
        where E.url = url
        return E</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRCommon</td>

    </tr>
    <tr>

      <td>

          <a name="fhircommon-references"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Returns true if the given reference is to the given resourceId
    @comment: Returns true if the `resourceId` parameter exactly equals the tail of the given reference.
    NOTE: This function assumes resources from the same source server.
    */
    define fluent function references(reference FHIR.Reference, resourceId String):
      resourceId = Last(Split(reference.reference, '/'))</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRCommon</td>

    </tr>
    <tr>

      <td>

          <a name="fhircommon-tointerval"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Normalizes a value that is a choice of timing-valued types to an equivalent interval
    @comment: Normalizes a choice type of FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instance, FHIR.string, FHIR.Age, or FHIR.Range types
    to an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible
    representations for timing-valued elements in FHIR, allowing this function to be used across any resource.

    The input can be provided as a dateTime, Period, Timing, instant, string, Age, or Range.
    The intent of this function is to provide a clear and concise mechanism to treat single
    elements that have multiple possible representations as intervals so that logic doesn't have to account
    for the variability. More complex calculations (such as medication request period or dispense period
    calculation) need specific guidance and consideration. That guidance may make use of this function, but
    the focus of this function is on single element calculations where the semantics are unambiguous.
    If the input is a dateTime, the result a DateTime Interval beginning and ending on that dateTime.
    If the input is a Period, the result is a DateTime Interval.
    If the input is a Timing, an error is raised indicating a single interval cannot be computed from a Timing.
    If the input is an instant, the result is a DateTime Interval beginning and ending on that instant.
    If the input is a string, an error is raised indicating a single interval cannot be computed from a string.
    If the input is an Age, the result is a DateTime Interval beginning when the patient was the given Age,
    and ending immediately prior to when the patient was the given Age plus one year.
    If the input is a Range, the result is a DateTime Interval beginning when the patient was the Age given
    by the low end of the Range, and ending immediately prior to when the patient was the Age given by the
    high end of the Range plus one year.

    NOTE: Due to the
    complexity of determining a single interval from a Timing or String type, this function will throw a run-time exception if it is used
    with a Timing or String.
    */
    define fluent function toInterval(choice Choice&lt;FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instant, FHIR.string, FHIR.Age, FHIR.Range&gt;):
      case
        when choice is FHIR.dateTime then
          Interval[FHIRHelpers.ToDateTime(choice as FHIR.dateTime), FHIRHelpers.ToDateTime(choice as FHIR.dateTime)]
        when choice is FHIR.Period then
          FHIRHelpers.ToInterval(choice as FHIR.Period)
        when choice is FHIR.instant then
          Interval[FHIRHelpers.ToDateTime(choice as FHIR.instant), FHIRHelpers.ToDateTime(choice as FHIR.instant)]
        when choice is FHIR.Age then
          Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age),
            FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age) + 1 year)
        when choice is FHIR.Range then
          Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).low),
            FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).high) + 1 year)
        when choice is FHIR.Timing then
          Message(null as Interval&lt;DateTime&gt;, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a Timing value is not supported')
        when choice is FHIR.string then
          Message(null as Interval&lt;DateTime&gt;, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a String value is not supported')
        else
          null as Interval&lt;DateTime&gt;
      end</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRCommon</td>

    </tr>
    <tr>

      <td>

          <a name="fhircommon-earliest"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Given an interval, return the starting point if the interval has a starting boundary specified,
    otherwise, return the ending point
    */
    define fluent function earliest(choice Choice&lt;FHIR.dateTime, FHIR.Period, FHIR.Age, FHIR.Range&gt;):
      (choice.toInterval()) period
        return
          if (period.hasStart()) then start of period
          else end of period</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRCommon</td>

    </tr>
    <tr>

      <td>

          <a name="fhircommon-hasstart"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Given an interval, return true if the interval has a starting boundary specified
    (i.e. the start of the interval is not null and not the minimum DateTime value)
    */
    define fluent function hasStart(period Interval&lt;DateTime&gt;):
      not ( start of period is null
          or start of period = minimum DateTime
      )</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRCommon</td>

    </tr>
    <tr>

      <td>

          <a name="fhircommon-references"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Returns true if the given reference is to the given resource
    @comment: Returns true if the `id` element of the given resource exactly equals the tail of the given reference.
    NOTE: This function assumes resources from the same source server.
    */
    define fluent function references(reference FHIR.Reference, resource FHIR.Resource):
      resource.id = Last(Split(reference.reference, '/'))</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRCommon</td>

    </tr>
    <tr>

      <td>

          <a name="fhircommon-ext"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Returns the single extension (if present) on the given element with the specified url.
    @comment: This function uses singleton from to ensure that a run-time exception is thrown if there
    is more than one extension on the given element with the specified url.
    */
    define fluent function ext(element Element, url String):
      singleton from element.exts(url)</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRCommon</td>

    </tr>
    <tr>

      <td>

          <a name="fhircommon-exts"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Returns any extensions defined on the given element with the specified url.
    */
    define fluent function exts(element Element, url String):
      element.extension E
        where E.url = url
        return E</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRCommon</td>

    </tr>
    <tr>

      <td>

          <a name="fhircommon-references"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Returns true if any of the given references are to the given resource
    @comment: Returns true if the `id` element of the given resource exactly equals the tail of any of the given references.
    NOTE: This function assumes resources from the same source server.
    */
    define fluent function references(references List&lt;FHIR.Reference&gt;, resource FHIR.Resource):
      exists (references R where R.references(resource))</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRCommon</td>

    </tr>
    <tr>

      <td>

          <a name="fhircommon-includescode"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Returns true if the given code is in the given codeList
    @comment: Returns true if the `code` is equivalent to any of the codes in the given `codeList`, false otherwise.
    */
    define fluent function includesCode(codeList List&lt;CodeableConcept&gt;, code Concept):
      exists (codeList C where C ~ code)</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> VTE</td>

    </tr>
    <tr>

      <td>

          <a name="vte-admission-without-vte-or-obstetrical-conditions"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Admission Without VTE Or Obstetrical Conditions&quot;:
      CQMCommon.&quot;Inpatient Encounter&quot; InpatientEncounter
      where not (InpatientEncounter.hasEncDiagnosisOf(&quot;Obstetrical or Pregnancy Related Conditions&quot;)
                 or InpatientEncounter.hasEncDiagnosisOf(&quot;Venous Thromboembolism&quot;)
                 or InpatientEncounter.hasEncDiagnosisOf(&quot;Obstetrics VTE&quot;)
                )</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> VTE</td>

    </tr>
    <tr>

      <td>

          <a name="vte-encounter-with-age-range-and-without-vte-diagnosis-or-obstetrical-conditions"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot;:
     &quot;Admission Without VTE Or Obstetrical Conditions&quot; EncounterWithoutConditions
         where AgeInYearsAt(date from start of EncounterWithoutConditions.period) &gt;= 18</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> VTE</td>

    </tr>
    <tr>

      <td>

          <a name="vte-hasencdiagnosisof"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function hasEncDiagnosisOf(TheEncounter Encounter, DiagnosisValueSet System.ValueSet):
       TheEncounter E
         return (E.encounterDiagnosis()).code in DiagnosisValueSet
           or E.reasonCode in DiagnosisValueSet</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> VTE</td>

    </tr>
    <tr>

      <td>

          <a name="vte-hasprincipalprocedureof"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function hasPrincipalProcedureOf(TheEncounter Encounter, DiagnosisValueSet System.ValueSet):
       TheEncounter E
       let
            PPx: E.principalProcedure(),
            CPx: singleton from ([Procedure] P where PPx.procedure.references(P.id))
         return PPx.procedure in DiagnosisValueSet
           or CPx.code in DiagnosisValueSet</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CQMCommon</td>

    </tr>
    <tr>

      <td>

          <a name="cqmcommon-inpatient-encounter"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Inpatient Encounter&quot;:
      [Encounter: &quot;Encounter Inpatient&quot;] EncounterInpatient
        where EncounterInpatient.status = 'finished'
          and EncounterInpatient.period ends during day of &quot;Measurement Period&quot;</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CQMCommon</td>

    </tr>
    <tr>

      <td>

          <a name="cqmcommon-encounterdiagnosis"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Returns the Condition resources referenced by the diagnosis element of the Encounter
    */
    define fluent function encounterDiagnosis(Encounter Encounter ):
      Encounter.reasonReference D
        return singleton from (([ConditionEncounterDiagnosis] union [ConditionProblemsHealthConcerns]) C where D.references(C.id))</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CQMCommon</td>

    </tr>
    <tr>

      <td>

          <a name="cqmcommon-hospitalizationwithobservation"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Hospitalization with Observation returns the total interval from the start of any immediately prior emergency department visit through the observation visit to the discharge of the given encounter
    */
    define fluent function hospitalizationWithObservation(TheEncounter Encounter ):
      TheEncounter Visit
      		let ObsVisit: Last([Encounter: &quot;Observation Services&quot;] LastObs
      				where LastObs.status = 'finished'
                and LastObs.period ends 1 hour or less on or before start of Visit.period
      				sort by end of period
      			),
      			VisitStart: Coalesce(start of ObsVisit.period, start of Visit.period),
      			EDVisit: Last([Encounter: &quot;Emergency Department Visit&quot;] LastED
      				where LastED.status = 'finished'
                and LastED.period ends 1 hour or less on or before VisitStart
      				sort by end of period
      			)
      		return Interval[Coalesce(start of EDVisit.period, VisitStart), end of Visit.period]</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CQMCommon</td>

    </tr>
    <tr>

      <td>

          <a name="cqmcommon-lengthindays"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Calculates the difference in calendar days between the start and end of the given interval.
    */
    define fluent function lengthInDays(Value Interval&lt;DateTime&gt; ):
      difference in days between start of Value and end of Value</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CQMCommon</td>

    </tr>
    <tr>

      <td>

          <a name="cqmcommon-getlocation"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Returns the Location resource specified by the given reference.
    */
    define fluent function getLocation(reference Reference):
      singleton from (
        [Location] L where reference.references(L)
      )</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CQMCommon</td>

    </tr>
    <tr>

      <td>

          <a name="cqmcommon-hasprincipaldiagnosisof"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
     @description: Returns the condition that is specified as the principal diagnosis for the encounter and has a code in the given valueSet.
     @comment: See the QICore 6 Authoring Patterns discussion on [Principal Diagnosis and Present on Admission](https://github.com/cqframework/CQL-Formatting-and-Usage-Wiki/wiki/Authoring-Patterns-QICore-v6.0.0#conditions-present-on-admission-and-principal-diagnoses) for more information
     */
     define fluent function hasPrincipalDiagnosisOf(encounter Encounter, valueSet System.ValueSet):
       (encounter.principalDiagnosis()) PD
         return PD.diagnosis in valueSet
           or PD.diagnosis.getCondition().code in valueSet</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CQMCommon</td>

    </tr>
    <tr>

      <td>

          <a name="cqmcommon-principaldiagnosis"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Returns the claim diagnosis element that is specified as the principal diagnosis for the encounter
     @comment: See the QICore 6 Authoring Patterns discussion on [Principal Diagnosis and Present on Admission](https://github.com/cqframework/CQL-Formatting-and-Usage-Wiki/wiki/Authoring-Patterns-QICore-v6.0.0#conditions-present-on-admission-and-principal-diagnoses) for more information
    */
    define fluent function principalDiagnosis(encounter Encounter):
    singleton from (
         (encounter.claimDiagnosis()) CD
           where CD.type.includesCode(&quot;Principal Diagnosis&quot;)
       )</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CQMCommon</td>

    </tr>
    <tr>

      <td>

          <a name="cqmcommon-claimdiagnosis"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Returns the claim diagnosis elements for the given encounter
    @comment: See the QICore 6 Authoring Patterns discussion on [Principal Diagnosis and Present on Admission](https://github.com/cqframework/CQL-Formatting-and-Usage-Wiki/wiki/Authoring-Patterns-QICore-v6.0.0#conditions-present-on-admission-and-principal-diagnoses) for more information
    */
    define fluent function claimDiagnosis(encounter Encounter):
      encounter E
        let
          claim: ([Claim] C where C.status = 'active' and C.use = 'claim' and exists (C.item I where I.encounter.references(E))),
          claimItem: (claim.item I where I.encounter.references(E))
        return claim.diagnosis D where D.sequence in claimItem.diagnosisSequence</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CQMCommon</td>

    </tr>
    <tr>

      <td>

          <a name="cqmcommon-getcondition"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Returns the Condition resource for the given reference
    */
    define fluent function getCondition(reference Reference):
      singleton from (([ConditionEncounterDiagnosis] union [ConditionProblemsHealthConcerns]) C where reference.references(C.id))</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CQMCommon</td>

    </tr>
    <tr>

      <td>

          <a name="cqmcommon-principalprocedure"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Returns the claim procedure elements for the given encounter
    */
    define fluent function principalProcedure(encounter Encounter):
      	 encounter E
      	 let
            claim: [Claim] C where C.status = 'active' and C.use = 'claim' and exists (C.item I where I.encounter.references(E)),
            claimItem: claim.item I where I.encounter.references(E),
            princProcedure: singleton from (claim.procedure P where P.sequence in claimItem.procedureSequence and P.type.includesCode(&quot;Primary procedure&quot;))
        return princProcedure</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> USCoreCommon</td>

    </tr>
    <tr>

      <td>

          <a name="uscorecommon-sex"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Returns the sex element as defined for the USCore patient profile
    */
    define fluent function sex(patient Patient):
      patient.ext('http://hl7.org/fhir/us/core/StructureDefinition/us-core-sex').value as FHIR.code</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> USCoreCommon</td>

    </tr>
    <tr>

      <td>

          <a name="uscorecommon-ethnicity"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function ethnicity(patient Patient):
      (patient.ext('http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity')) E
        return {
          ombCategory: E.ext('ombCategory').value as FHIR.Coding,
          detailed: (E.exts('detailed')) d return d.value as FHIR.Coding,
          text: E.ext('text').value as FHIR.string
        }</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> USCoreCommon</td>

    </tr>
    <tr>

      <td>

          <a name="uscorecommon-race"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function race(patient Patient):
      (patient.ext('http://hl7.org/fhir/us/core/StructureDefinition/us-core-race')) E
        return {
          ombCategory: (E.exts('ombCategory')) o return o.value as FHIR.Coding,
          detailed: (E.exts('detailed')) d return d.value as FHIR.Coding,
          text: E.ext('text').value as FHIR.string
        }</code></pre>
      </td>

    </tr>

      <tr>

    <th colspan="2" scope="row" class="row-header"><a name="terminology"> </a>Terminology</th>

    </tr>

    <tr>

    <th scope="row" class="row-header">Code System</th>

      <td class="content-container">

        <em>Description</em>: Code system SNOMEDCT

        <br/>

        <em>Resource</em>: <a href="http://hl7.org/fhir/R4/codesystem-snomedct.html">SNOMED CT (all versions)</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://snomed.info/sct</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Code System</th>

      <td class="content-container">

        <em>Description</em>: Code system ConditionVerificationStatusCodes

        <br/>

        <em>Resource</em>: <a href="http://terminology.hl7.org/7.1.0/CodeSystem-condition-ver-status.html">ConditionVerificationStatus</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-ver-status</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Code System</th>

      <td class="content-container">

        <em>Description</em>: Code system ConditionClinicalStatusCodes

        <br/>

        <em>Resource</em>: <a href="http://terminology.hl7.org/7.1.0/CodeSystem-condition-clinical.html">Condition Clinical Status Codes</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-clinical</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Code System</th>

      <td class="content-container">

        <em>Description</em>: Code system LOINC

        <br/>

        <em>Resource</em>: <a href="http://terminology.hl7.org/6.5.0/CodeSystem-v3-loinc.html">Logical Observation Identifiers, Names and Codes (LOINC)</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://loinc.org</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Code System</th>

      <td class="content-container">

        <em>Description</em>: Code system TaskCodeSystem

        <br/>

        <em>Resource</em>: <a href="http://hl7.org/fhir/R4/codesystem-task-code.html">Task Codes</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://hl7.org/fhir/CodeSystem/task-code</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Code System</th>

      <td class="content-container">

        <em>Description</em>: Code system Diagnosis Type

        <br/>

        <em>Resource</em>: <a href="http://terminology.hl7.org/7.1.0/CodeSystem-ex-diagnosistype.html">Example Diagnosis Type Codes</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://terminology.hl7.org/CodeSystem/ex-diagnosistype</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Code System</th>

      <td class="content-container">

        <em>Description</em>: Code system Procedure Type

        <br/>

        <em>Resource</em>: <a href="http://terminology.hl7.org/7.1.0/CodeSystem-ex-procedure-type.html">Example Procedure Type Codes</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://terminology.hl7.org/CodeSystem/ex-procedure-type</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Encounter Inpatient

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.666.5.307/expansion">Encounter Inpatient</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Obstetrical or Pregnancy Related Conditions

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.263/expansion">Obstetrical or Pregnancy Related Conditions</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.263</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Venous Thromboembolism

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.279/expansion">Venous Thromboembolism</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.279</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Obstetrics VTE

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.264/expansion">Obstetrics VTE</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.264</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Low Dose Unfractionated Heparin for VTE Prophylaxis

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1045.39/expansion">Low Dose Unfractionated Heparin for VTE Prophylaxis</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Subcutaneous route

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.223/expansion">Subcutaneous route</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.223</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Low Molecular Weight Heparin for VTE Prophylaxis

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.219/expansion">Low Molecular Weight Heparin for VTE Prophylaxis</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Injectable Factor Xa Inhibitor for VTE Prophylaxis

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.211/expansion">Injectable Factor Xa Inhibitor for VTE Prophylaxis</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Warfarin

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.232/expansion">Warfarin</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Rivaroxaban for VTE Prophylaxis

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1110.50/expansion">Rivaroxaban for VTE Prophylaxis</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.50</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Application of Intermittent Pneumatic Compression Devices

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1110.65/expansion">Application of Intermittent Pneumatic Compression Devices</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.65</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Application of Venous Foot Pumps

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1110.64/expansion">Application of Venous Foot Pumps</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.64</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Application of Graduated Compression Stockings

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1110.66/expansion">Application of Graduated Compression Stockings</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.66</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Observation Services

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1111.143/expansion">Observation Services</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Emergency Department Visit

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.292/expansion">Emergency Department Visit</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set General or Neuraxial Anesthesia

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.666.5.1743/expansion">General or Neuraxial Anesthesia</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.134/expansion">Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.134</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Atrial Fibrillation or Flutter

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.202/expansion">Atrial Fibrillation or Flutter</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.202</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Hip Replacement Surgery

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.259/expansion">Hip Replacement Surgery</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.259</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Knee Replacement Surgery

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.261/expansion">Knee Replacement Surgery</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.261</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Low Risk

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.400/expansion">Low Risk</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.400</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set INR

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.213/expansion">INR</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.213</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Unfractionated Heparin

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.218/expansion">Unfractionated Heparin</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.218</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Intravenous route

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.222/expansion">Intravenous route</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.222</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Direct Thrombin Inhibitor

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.205/expansion">Direct Thrombin Inhibitor</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.205</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Glycoprotein IIb IIIa Inhibitors

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1045.41/expansion">Glycoprotein IIb IIIa Inhibitors</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.41</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Medical Reason For Not Providing Treatment

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.473/expansion">Medical Reason For Not Providing Treatment</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.473</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Venous foot pumps

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.230/expansion">Venous foot pumps</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.230</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Intermittent pneumatic compression devices

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.214/expansion">Intermittent pneumatic compression devices</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.214</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Graduated compression stockings

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.256/expansion">Graduated compression stockings</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.256</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Patient Refusal

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.93/expansion">Patient Refusal</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.93</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Payer Type

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.114222.4.11.3591/expansion">Payer Type</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Intensive Care Unit

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1029.206/expansion">Intensive Care Unit</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.206</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Mental Health Diagnoses

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.105.12.1004/expansion">Mental Health Diagnoses</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.105.12.1004</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Hemorrhagic Stroke

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.212/expansion">Hemorrhagic Stroke</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.212</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Ischemic Stroke

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.247/expansion">Ischemic Stroke</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.247</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set General Surgery

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.255/expansion">General Surgery</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.255</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Gynecological Surgery

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.257/expansion">Gynecological Surgery</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.257</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Hip Fracture Surgery

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.258/expansion">Hip Fracture Surgery</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.258</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Intracranial Neurosurgery

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.260/expansion">Intracranial Neurosurgery</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.260</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Urological Surgery

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.272/expansion">Urological Surgery</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.272</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Comfort Measures

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/1.3.6.1.4.1.33895.1.3.0.45/expansion">Comfort Measures</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45</tt>

      </td>
    </tr>

      <tr>
        <th scope="row" class="row-header">Direct Reference Code</th>
        <td class="content-container">

            <em>Display</em>: Male (finding)
            <br/>

          <em>Code</em>: 248153007
          <br/>
          <em>System</em>: <tt>http://snomed.info/sct</tt>
        </td>
      </tr>

      <tr>
        <th scope="row" class="row-header">Direct Reference Code</th>
        <td class="content-container">

            <em>Display</em>: Female (finding)
            <br/>

          <em>Code</em>: 248152002
          <br/>
          <em>System</em>: <tt>http://snomed.info/sct</tt>
        </td>
      </tr>

      <tr>
        <th scope="row" class="row-header">Direct Reference Code</th>
        <td class="content-container">

          <em>Code</em>: refuted
          <br/>
          <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-ver-status</tt>
        </td>
      </tr>

      <tr>
        <th scope="row" class="row-header">Direct Reference Code</th>
        <td class="content-container">

          <em>Code</em>: entered-in-error
          <br/>
          <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-ver-status</tt>
        </td>
      </tr>

      <tr>
        <th scope="row" class="row-header">Direct Reference Code</th>
        <td class="content-container">

          <em>Code</em>: inactive
          <br/>
          <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-clinical</tt>
        </td>
      </tr>

      <tr>
        <th scope="row" class="row-header">Direct Reference Code</th>
        <td class="content-container">

          <em>Code</em>: remission
          <br/>
          <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-clinical</tt>
        </td>
      </tr>

      <tr>
        <th scope="row" class="row-header">Direct Reference Code</th>
        <td class="content-container">

          <em>Code</em>: resolved
          <br/>
          <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-clinical</tt>
        </td>
      </tr>

      <tr>
        <th scope="row" class="row-header">Direct Reference Code</th>
        <td class="content-container">

            <em>Display</em>: Risk for venous thromboembolism
            <br/>

          <em>Code</em>: 72136-5
          <br/>
          <em>System</em>: <tt>http://loinc.org</tt>
        </td>
      </tr>

      <tr>
        <th scope="row" class="row-header">Direct Reference Code</th>
        <td class="content-container">

            <em>Display</em>: Fulfill
            <br/>

          <em>Code</em>: fulfill
          <br/>
          <em>System</em>: <tt>http://hl7.org/fhir/CodeSystem/task-code</tt>
        </td>
      </tr>

      <tr>
        <th scope="row" class="row-header">Direct Reference Code</th>
        <td class="content-container">

            <em>Display</em>: Principal Diagnosis
            <br/>

          <em>Code</em>: principal
          <br/>
          <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/ex-diagnosistype</tt>
        </td>
      </tr>

      <tr>
        <th scope="row" class="row-header">Direct Reference Code</th>
        <td class="content-container">

            <em>Display</em>: Primary procedure
            <br/>

          <em>Code</em>: primary
          <br/>
          <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/ex-procedure-type</tt>
        </td>
      </tr>

      <tr>

    <th colspan="2" scope="row" class="row-header"><a name="dependencies"> </a>Dependencies</th>

    </tr>

    <tr>

    <th scope="row" class="row-header">Dependency</th>

      <td class="content-container">

        <em>Description</em>: USQualityCore model information

        <br/>

        <em>Resource</em>: <code>https://madie.cms.gov/Library/USQualityCore-ModelInfo|0.1.0-cibuild</code>
        <br/>
        <em>Canonical URL</em>: <tt>https://madie.cms.gov/Library/USQualityCore-ModelInfo|0.1.0-cibuild</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Dependency</th>

      <td class="content-container">

        <em>Description</em>: USCore model information

        <br/>

        <em>Resource</em>: <a href="https://build.fhir.org/ig/HL7/us-cql-ig/Library-USCore-ModelInfo.html">http://hl7.org/fhir/us/cql/Library/USCore-ModelInfo|6.1.0-derived</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://hl7.org/fhir/us/cql/Library/USCore-ModelInfo|6.1.0-derived</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Dependency</th>

      <td class="content-container">

        <em>Description</em>: FHIR model information

        <br/>

        <em>Resource</em>: <a href="http://hl7.org/fhir/uv/cql/STU2/Library-FHIR-ModelInfo.html">http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Dependency</th>

      <td class="content-container">

        <em>Description</em>: Library SDE

        <br/>

        <em>Resource</em>: <a href="Library-SupplementalDataElements.html">SupplementalDataElementsversion: null6.1.000)</a>
        <br/>
        <em>Canonical URL</em>: <tt>https://madie.cms.gov/Library/SupplementalDataElements|6.1.000</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Dependency</th>

      <td class="content-container">

        <em>Description</em>: Library FHIRHelpers

        <br/>

        <em>Resource</em>: <a href="http://hl7.org/fhir/uv/cql/STU2/Library-FHIRHelpers.html">http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Dependency</th>

      <td class="content-container">

        <em>Description</em>: Library USCommon

        <br/>

        <em>Resource</em>: <a href="https://build.fhir.org/ig/HL7/us-cql-ig/Library-USCoreCommon.html">http://hl7.org/fhir/us/cql/Library/USCoreCommon|2.0.0-ballot</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://hl7.org/fhir/us/cql/Library/USCoreCommon|2.0.0-ballot</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Dependency</th>

      <td class="content-container">

        <em>Description</em>: Library FHIRCommon

        <br/>

        <em>Resource</em>: <a href="http://hl7.org/fhir/uv/cql/STU2/Library-FHIRCommon.html">http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Dependency</th>

      <td class="content-container">

        <em>Description</em>: Library VTE

        <br/>

        <em>Resource</em>: <a href="Library-VTE.html">VTEversion: null9.1.000)</a>
        <br/>
        <em>Canonical URL</em>: <tt>https://madie.cms.gov/Library/VTE|9.1.000</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Dependency</th>

      <td class="content-container">

        <em>Description</em>: Library CQMCommon

        <br/>

        <em>Resource</em>: <a href="Library-CQMCommon.html">CQMCommonversion: null5.1.000)</a>
        <br/>
        <em>Canonical URL</em>: <tt>https://madie.cms.gov/Library/CQMCommon|5.1.000</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Dependency</th>

      <td class="content-container">

        <em>Description</em>: Library TJC

        <br/>

        <em>Resource</em>: <a href="Library-TJCOverall.html">TJCOverallversion: null9.1.000)</a>
        <br/>
        <em>Canonical URL</em>: <tt>https://madie.cms.gov/Library/TJCOverall|9.1.000</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Dependency</th>

      <td class="content-container">

        <em>Description</em>: Library USQualityCoreCommon

        <br/>

        <em>Resource</em>: <a href="Library-USQualityCoreCommon.html">US Quality Core Commonversion: null0.1.0-cibuild)</a>
        <br/>
        <em>Canonical URL</em>: <tt>https://madie.cms.gov/Library/USQualityCoreCommon|0.1.0-cibuild</tt>

      </td>
    </tr>

      <tr>

    <th colspan="2" scope="row" class="row-header"><a name="data-requirements"> </a>Data Requirements</th>

    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Patient
        <br/>

        <em>Profile(s)</em>:

        <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-patient</code>
        <br/>

        <em>Must Support Elements</em>: ombCategory, detailed, text
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Encounter
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/encounter.html">Encounter</a>
        <br/>

        <em>Must Support Elements</em>: type, status, period, reasonCode, diagnosis, diagnosis.code
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: type</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1111.143/expansion">Observation Services</a>
        <br/>

        <span class="tab-one"><em>Path</em>: status</span>
        <br/>

        <span class="tab-one"><em>Code(s)</em>:

          [not stated]: finished (finished)

        </span>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Encounter
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/encounter.html">Encounter</a>
        <br/>

        <em>Must Support Elements</em>: type, status, period, reasonCode, diagnosis, diagnosis.code
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: type</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.292/expansion">Emergency Department Visit</a>
        <br/>

        <span class="tab-one"><em>Path</em>: status</span>
        <br/>

        <span class="tab-one"><em>Code(s)</em>:

          [not stated]: finished (finished)

        </span>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Encounter
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/encounter.html">Encounter</a>
        <br/>

        <em>Must Support Elements</em>: period, reasonCode, type, diagnosis, diagnosis.code
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Encounter
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/encounter.html">Encounter</a>
        <br/>

        <em>Must Support Elements</em>: type, status, period, reasonCode, diagnosis, diagnosis.code, period.low, period.lowClosed, period.high, period.highClosed, location
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: type</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.666.5.307/expansion">Encounter Inpatient</a>
        <br/>

        <span class="tab-one"><em>Path</em>: status</span>
        <br/>

        <span class="tab-one"><em>Code(s)</em>:

          [not stated]: finished (finished)

        </span>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Condition
        <br/>

        <em>Profile(s)</em>:

        <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-condition-encounter-diagnosis</code>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Condition
        <br/>

        <em>Profile(s)</em>:

        <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-condition-problems-health-concerns</code>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Medication
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/medication.html">Medication</a>
        <br/>

        <em>Must Support Elements</em>: id, code
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.134/expansion">Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Medication
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/medication.html">Medication</a>
        <br/>

        <em>Must Support Elements</em>: id, code
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.218/expansion">Unfractionated Heparin</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Medication
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/medication.html">Medication</a>
        <br/>

        <em>Must Support Elements</em>: id, code
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.205/expansion">Direct Thrombin Inhibitor</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Medication
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/medication.html">Medication</a>
        <br/>

        <em>Must Support Elements</em>: id, code
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1045.41/expansion">Glycoprotein IIb IIIa Inhibitors</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Medication
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/medication.html">Medication</a>
        <br/>

        <em>Must Support Elements</em>: id, code
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1045.39/expansion">Low Dose Unfractionated Heparin for VTE Prophylaxis</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Medication
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/medication.html">Medication</a>
        <br/>

        <em>Must Support Elements</em>: id, code
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.219/expansion">Low Molecular Weight Heparin for VTE Prophylaxis</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Medication
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/medication.html">Medication</a>
        <br/>

        <em>Must Support Elements</em>: id, code
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.211/expansion">Injectable Factor Xa Inhibitor for VTE Prophylaxis</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Medication
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/medication.html">Medication</a>
        <br/>

        <em>Must Support Elements</em>: id, code
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.232/expansion">Warfarin</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Medication
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/medication.html">Medication</a>
        <br/>

        <em>Must Support Elements</em>: id, code
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1110.50/expansion">Rivaroxaban for VTE Prophylaxis</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: MedicationAdministration
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/medicationadministration.html">MedicationAdministration</a>
        <br/>

        <em>Must Support Elements</em>: medication, status, dosage, dosage.route, effective, id
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: medication</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1045.39/expansion">Low Dose Unfractionated Heparin for VTE Prophylaxis</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: MedicationAdministration
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/medicationadministration.html">MedicationAdministration</a>
        <br/>

        <em>Must Support Elements</em>: medication, status, dosage, dosage.route, effective, id
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: medication</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.219/expansion">Low Molecular Weight Heparin for VTE Prophylaxis</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: MedicationAdministration
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/medicationadministration.html">MedicationAdministration</a>
        <br/>

        <em>Must Support Elements</em>: medication, status, dosage, dosage.route, effective, id
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: medication</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.211/expansion">Injectable Factor Xa Inhibitor for VTE Prophylaxis</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: MedicationAdministration
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/medicationadministration.html">MedicationAdministration</a>
        <br/>

        <em>Must Support Elements</em>: medication, status, dosage, dosage.route, effective, id
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: medication</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.232/expansion">Warfarin</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: MedicationAdministration
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/medicationadministration.html">MedicationAdministration</a>
        <br/>

        <em>Must Support Elements</em>: medication, status, dosage, dosage.route, effective, id
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: medication</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1110.50/expansion">Rivaroxaban for VTE Prophylaxis</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: MedicationAdministration
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/medicationadministration.html">MedicationAdministration</a>
        <br/>

        <em>Must Support Elements</em>: medication, status, dosage, dosage.route, effective, id
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: medication</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.134/expansion">Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: MedicationAdministration
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/medicationadministration.html">MedicationAdministration</a>
        <br/>

        <em>Must Support Elements</em>: medication, status, dosage, dosage.route, effective, id
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: medication</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.218/expansion">Unfractionated Heparin</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: MedicationAdministration
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/medicationadministration.html">MedicationAdministration</a>
        <br/>

        <em>Must Support Elements</em>: medication.reference, status, dosage, dosage.route, effective, id
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: MedicationAdministration
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/medicationadministration.html">MedicationAdministration</a>
        <br/>

        <em>Must Support Elements</em>: medication, status, dosage, dosage.route, effective, id
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: medication</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.205/expansion">Direct Thrombin Inhibitor</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: MedicationAdministration
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/medicationadministration.html">MedicationAdministration</a>
        <br/>

        <em>Must Support Elements</em>: medication, status, dosage, dosage.route, effective, id
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: medication</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1045.41/expansion">Glycoprotein IIb IIIa Inhibitors</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Procedure
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/procedure.html">Procedure</a>
        <br/>

        <em>Must Support Elements</em>: code, status, performed
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1110.65/expansion">Application of Intermittent Pneumatic Compression Devices</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Procedure
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/procedure.html">Procedure</a>
        <br/>

        <em>Must Support Elements</em>: code, status, performed
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1110.64/expansion">Application of Venous Foot Pumps</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Procedure
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/procedure.html">Procedure</a>
        <br/>

        <em>Must Support Elements</em>: code, status, performed
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1110.66/expansion">Application of Graduated Compression Stockings</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Procedure
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/procedure.html">Procedure</a>
        <br/>

        <em>Must Support Elements</em>: code, status, performed
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.259/expansion">Hip Replacement Surgery</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Procedure
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/procedure.html">Procedure</a>
        <br/>

        <em>Must Support Elements</em>: code, status, performed
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.261/expansion">Knee Replacement Surgery</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Procedure
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/procedure.html">Procedure</a>
        <br/>

        <em>Must Support Elements</em>: id, status, performed, code
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Procedure
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/procedure.html">Procedure</a>
        <br/>

        <em>Must Support Elements</em>: code, status, performed
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/1.3.6.1.4.1.33895.1.3.0.45/expansion">Comfort Measures</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Procedure
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/procedure.html">Procedure</a>
        <br/>

        <em>Must Support Elements</em>: code, status, performed, performed.low, performed.lowClosed, performed.high, performed.highClosed
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.666.5.1743/expansion">General or Neuraxial Anesthesia</a>
        <br/>

        <span class="tab-one"><em>Path</em>: status</span>
        <br/>

        <span class="tab-one"><em>Code(s)</em>:

          [not stated]: completed (completed)

        </span>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Patient
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/patient.html">Patient</a>
        <br/>

        <em>Must Support Elements</em>: birthDate
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Observation
        <br/>

        <em>Profile(s)</em>:

        <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-simple-observation</code>
        <br/>

        <em>Must Support Elements</em>: code, value, status, id, effective
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>Code(s)</em>:

          <a href="https://loinc.org/72136-5">LOINC: 72136-5</a> (Risk for venous thromboembolism)

        </span>
        <br/>

        <span class="tab-one"><em>Path</em>: value</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.400/expansion">Low Risk</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Observation
        <br/>

        <em>Profile(s)</em>:

        <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-observation-lab</code>
        <br/>

        <em>Must Support Elements</em>: code, value, status, id, issued
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.213/expansion">INR</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Resource
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/resource.html">Resource</a>
        <br/>

        <em>Must Support Elements</em>: id
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: MedicationAdministration
        <br/>

        <em>Profile(s)</em>:

        <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-medicationadministrationnotdone</code>
        <br/>

        <em>Must Support Elements</em>: medication, id, statusReason
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: medication</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1045.39/expansion">Low Dose Unfractionated Heparin for VTE Prophylaxis</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: MedicationAdministration
        <br/>

        <em>Profile(s)</em>:

        <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-medicationadministrationnotdone</code>
        <br/>

        <em>Must Support Elements</em>: medication, id, statusReason
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: medication</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.219/expansion">Low Molecular Weight Heparin for VTE Prophylaxis</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: MedicationAdministration
        <br/>

        <em>Profile(s)</em>:

        <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-medicationadministrationnotdone</code>
        <br/>

        <em>Must Support Elements</em>: medication, id, statusReason
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: medication</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.211/expansion">Injectable Factor Xa Inhibitor for VTE Prophylaxis</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: MedicationAdministration
        <br/>

        <em>Profile(s)</em>:

        <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-medicationadministrationnotdone</code>
        <br/>

        <em>Must Support Elements</em>: medication, id, statusReason
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: medication</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.232/expansion">Warfarin</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: MedicationAdministration
        <br/>

        <em>Profile(s)</em>:

        <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-medicationadministrationnotdone</code>
        <br/>

        <em>Must Support Elements</em>: medication, id, statusReason
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: medication</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1110.50/expansion">Rivaroxaban for VTE Prophylaxis</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: MedicationRequest
        <br/>

        <em>Profile(s)</em>:

        <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-medicationnotrequested</code>
        <br/>

        <em>Must Support Elements</em>: medication, intent, status, id, reasonCode, authoredOn
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: medication</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1045.39/expansion">Low Dose Unfractionated Heparin for VTE Prophylaxis</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: MedicationRequest
        <br/>

        <em>Profile(s)</em>:

        <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-medicationnotrequested</code>
        <br/>

        <em>Must Support Elements</em>: medication, intent, status, id, reasonCode, authoredOn
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: medication</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.219/expansion">Low Molecular Weight Heparin for VTE Prophylaxis</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: MedicationRequest
        <br/>

        <em>Profile(s)</em>:

        <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-medicationnotrequested</code>
        <br/>

        <em>Must Support Elements</em>: medication, intent, status, id, reasonCode, authoredOn
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: medication</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.211/expansion">Injectable Factor Xa Inhibitor for VTE Prophylaxis</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: MedicationRequest
        <br/>

        <em>Profile(s)</em>:

        <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-medicationnotrequested</code>
        <br/>

        <em>Must Support Elements</em>: medication, intent, status, id, reasonCode, authoredOn
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: medication</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.232/expansion">Warfarin</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: MedicationRequest
        <br/>

        <em>Profile(s)</em>:

        <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-medicationnotrequested</code>
        <br/>

        <em>Must Support Elements</em>: medication, intent, status, id, reasonCode, authoredOn
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: medication</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1110.50/expansion">Rivaroxaban for VTE Prophylaxis</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: MedicationRequest
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/medicationrequest.html">MedicationRequest</a>
        <br/>

        <em>Must Support Elements</em>: medication.reference, status, id, authoredOn
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: MedicationRequest
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/medicationrequest.html">MedicationRequest</a>
        <br/>

        <em>Must Support Elements</em>: medication, status, id, authoredOn
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: medication</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1045.39/expansion">Low Dose Unfractionated Heparin for VTE Prophylaxis</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: MedicationRequest
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/medicationrequest.html">MedicationRequest</a>
        <br/>

        <em>Must Support Elements</em>: medication, status, id, authoredOn
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: medication</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.219/expansion">Low Molecular Weight Heparin for VTE Prophylaxis</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: MedicationRequest
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/medicationrequest.html">MedicationRequest</a>
        <br/>

        <em>Must Support Elements</em>: medication, status, id, authoredOn
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: medication</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.211/expansion">Injectable Factor Xa Inhibitor for VTE Prophylaxis</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: MedicationRequest
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/medicationrequest.html">MedicationRequest</a>
        <br/>

        <em>Must Support Elements</em>: medication, status, id, authoredOn
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: medication</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.232/expansion">Warfarin</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: MedicationRequest
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/medicationrequest.html">MedicationRequest</a>
        <br/>

        <em>Must Support Elements</em>: medication, status, id, authoredOn
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: medication</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1110.50/expansion">Rivaroxaban for VTE Prophylaxis</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Task
        <br/>

        <em>Profile(s)</em>:

        <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-taskrejected</code>
        <br/>

        <em>Must Support Elements</em>: focus, code, statusReason
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: ServiceRequest
        <br/>

        <em>Profile(s)</em>:

        <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-servicenotrequested</code>
        <br/>

        <em>Must Support Elements</em>: code, intent, id, authoredOn
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.230/expansion">Venous foot pumps</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: ServiceRequest
        <br/>

        <em>Profile(s)</em>:

        <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-servicenotrequested</code>
        <br/>

        <em>Must Support Elements</em>: code, intent, id, authoredOn
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.214/expansion">Intermittent pneumatic compression devices</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: ServiceRequest
        <br/>

        <em>Profile(s)</em>:

        <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-servicenotrequested</code>
        <br/>

        <em>Must Support Elements</em>: code, intent, id, authoredOn
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.256/expansion">Graduated compression stockings</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: ServiceRequest
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/servicerequest.html">ServiceRequest</a>
        <br/>

        <em>Must Support Elements</em>: code, intent, status, id, authoredOn
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.230/expansion">Venous foot pumps</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: ServiceRequest
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/servicerequest.html">ServiceRequest</a>
        <br/>

        <em>Must Support Elements</em>: code, intent, status, id, authoredOn
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.214/expansion">Intermittent pneumatic compression devices</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: ServiceRequest
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/servicerequest.html">ServiceRequest</a>
        <br/>

        <em>Must Support Elements</em>: code, intent, status, id, authoredOn
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.256/expansion">Graduated compression stockings</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: ServiceRequest
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/servicerequest.html">ServiceRequest</a>
        <br/>

        <em>Must Support Elements</em>: code, intent, status, id, authoredOn
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/1.3.6.1.4.1.33895.1.3.0.45/expansion">Comfort Measures</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Procedure
        <br/>

        <em>Profile(s)</em>:

        <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-procedurenotdone</code>
        <br/>

        <em>Must Support Elements</em>: code, id, statusReason
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1110.65/expansion">Application of Intermittent Pneumatic Compression Devices</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Procedure
        <br/>

        <em>Profile(s)</em>:

        <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-procedurenotdone</code>
        <br/>

        <em>Must Support Elements</em>: code, id, statusReason
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1110.64/expansion">Application of Venous Foot Pumps</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Procedure
        <br/>

        <em>Profile(s)</em>:

        <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-procedurenotdone</code>
        <br/>

        <em>Must Support Elements</em>: code, id, statusReason
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1110.66/expansion">Application of Graduated Compression Stockings</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Coverage
        <br/>

        <em>Profile(s)</em>:

        <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-coverage</code>
        <br/>

        <em>Must Support Elements</em>: type, period
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: type</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.114222.4.11.3591/expansion">Payer Type</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Location
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/location.html">Location</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Claim
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/claim.html">Claim</a>
        <br/>

        <em>Must Support Elements</em>: status, use, item
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: status</span>
        <br/>

        <span class="tab-one"><em>Code(s)</em>:

          [not stated]: active (active)

        </span>
        <br/>

        <span class="tab-one"><em>Path</em>: use</span>
        <br/>

        <span class="tab-one"><em>Code(s)</em>:

          [not stated]: claim (claim)

        </span>
        <br/>

      </td>
    </tr>

      <tr>

    <th colspan="2" scope="row" class="row-header"><a name="parameters"> </a>Parameters</th>

    </tr>

      <tr>

    <th scope="row" class="row-header"/>

      <td class="content-container">
        <table>
          <thead>
            <tr>
              <td><em>Name</em></td>
              <td><em>Use</em></td>
              <td><em>Card.</em></td>
              <td><em>Type</em></td>
              <td><em>Documentation</em></td>
            </tr>
          </thead>
          <tbody>

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

            <tr>
              <td>SDE Sex</td>
              <td>Out</td>
              <td>0..1</td>
              <td>Coding</td>
              <td/>
            </tr>

            <tr>
              <td>Numerator</td>
              <td>Out</td>
              <td>0..*</td>
              <td>Encounter</td>
              <td/>
            </tr>

            <tr>
              <td>Denominator</td>
              <td>Out</td>
              <td>0..*</td>
              <td>Encounter</td>
              <td/>
            </tr>

            <tr>
              <td>SDE Payer</td>
              <td>Out</td>
              <td>0..*</td>
              <td>Resource</td>
              <td/>
            </tr>

            <tr>
              <td>Initial Population</td>
              <td>Out</td>
              <td>0..*</td>
              <td>Encounter</td>
              <td/>
            </tr>

            <tr>
              <td>SDE Ethnicity</td>
              <td>Out</td>
              <td>0..1</td>
              <td>Resource</td>
              <td/>
            </tr>

            <tr>
              <td>Denominator Exclusions</td>
              <td>Out</td>
              <td>0..*</td>
              <td>Encounter</td>
              <td/>
            </tr>

            <tr>
              <td>SDE Race</td>
              <td>Out</td>
              <td>0..1</td>
              <td>Resource</td>
              <td/>
            </tr>

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

    <tr>
      <th colspan="2" scope="row" class="row-header">Generated using version 0.5.4 of the sample-content-ig Liquid templates</th>
    </tr>

        </tbody>
      </table>
    </div>
      </text>
      <contained>
        <Library>
          <id value="effective-data-requirements"/>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
              <system value="http://snomed.info/sct"/>
              <code value="248153007"/>
              <display value="Male (finding)"/>
            </valueCoding>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
              <system value="http://snomed.info/sct"/>
              <code value="248152002"/>
              <display value="Female (finding)"/>
            </valueCoding>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/condition-ver-status"/>
              <code value="refuted"/>
            </valueCoding>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/condition-ver-status"/>
              <code value="entered-in-error"/>
            </valueCoding>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/condition-clinical"/>
              <code value="inactive"/>
            </valueCoding>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/condition-clinical"/>
              <code value="remission"/>
            </valueCoding>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/condition-clinical"/>
              <code value="resolved"/>
            </valueCoding>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
              <system value="http://loinc.org"/>
              <code value="72136-5"/>
              <display value="Risk for venous thromboembolism"/>
            </valueCoding>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
              <system value="http://hl7.org/fhir/CodeSystem/task-code"/>
              <code value="fulfill"/>
              <display value="Fulfill"/>
            </valueCoding>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/ex-diagnosistype"/>
              <code value="principal"/>
              <display value="Principal Diagnosis"/>
            </valueCoding>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/ex-procedure-type"/>
              <code value="primary"/>
              <display value="Primary procedure"/>
            </valueCoding>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="SupplementalDataElements"/>
            </extension>
            <extension url="name">
              <valueString value="SDE Sex"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;SDE Sex&quot;:
      case
        when Patient.sex() = '248153007' then &quot;Male (finding)&quot;
        when Patient.sex() = '248152002' then &quot;Female (finding)&quot;
        else null
      end"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="0"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString value="SDE Sex"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;SDE Sex&quot;:
      SDE.&quot;SDE Sex&quot;"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="1"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CQMCommon"/>
            </extension>
            <extension url="name">
              <valueString value="Inpatient Encounter"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Inpatient Encounter&quot;:
      [Encounter: &quot;Encounter Inpatient&quot;] EncounterInpatient
        where EncounterInpatient.status = 'finished'
          and EncounterInpatient.period ends during day of &quot;Measurement Period&quot;"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="2"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="VTE"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Admission Without VTE Or Obstetrical Conditions"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Admission Without VTE Or Obstetrical Conditions&quot;:
      CQMCommon.&quot;Inpatient Encounter&quot; InpatientEncounter
      where not (InpatientEncounter.hasEncDiagnosisOf(&quot;Obstetrical or Pregnancy Related Conditions&quot;)
                 or InpatientEncounter.hasEncDiagnosisOf(&quot;Venous Thromboembolism&quot;)
                 or InpatientEncounter.hasEncDiagnosisOf(&quot;Obstetrics VTE&quot;)
                )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="3"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="VTE"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot;:
     &quot;Admission Without VTE Or Obstetrical Conditions&quot; EncounterWithoutConditions
         where AgeInYearsAt(date from start of EncounterWithoutConditions.period) &gt;= 18"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="4"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Pharmacological or Mechanical VTE Prophylaxis Received"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Pharmacological or Mechanical VTE Prophylaxis Received&quot;:
      ( [&quot;MedicationAdministration&quot;: &quot;Low Dose Unfractionated Heparin for VTE Prophylaxis&quot;] VTEMedication
          where VTEMedication.status = 'completed'
            and VTEMedication.dosage.route in &quot;Subcutaneous route&quot;
      )
        union ( [&quot;MedicationAdministration&quot;: &quot;Low Molecular Weight Heparin for VTE Prophylaxis&quot;] LMWH
            where LMWH.status = 'completed'
        )
        union ( [&quot;MedicationAdministration&quot;: &quot;Injectable Factor Xa Inhibitor for VTE Prophylaxis&quot;] FactorXa
            where FactorXa.status = 'completed'
        )
        union ( [&quot;MedicationAdministration&quot;: &quot;Warfarin&quot;] WarfarinAdm
            where WarfarinAdm.status = 'completed'
        )
        union ( [&quot;MedicationAdministration&quot;: &quot;Rivaroxaban for VTE Prophylaxis&quot;] Rivaroxaban
            where Rivaroxaban.status = 'completed'
        )
        union ( ( [&quot;Procedure&quot;: &quot;Application of Intermittent Pneumatic Compression Devices&quot;]
            union [&quot;Procedure&quot;: &quot;Application of Venous Foot Pumps&quot;]
            union [&quot;Procedure&quot;: &quot;Application of Graduated Compression Stockings&quot;] ) DeviceApplied
            where DeviceApplied.status = 'completed'
        )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="5"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Encounter With VTE Prophylaxis Received From Day Of Start Of Hospitalization To Day After Admission Or Procedure"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter With VTE Prophylaxis Received From Day Of Start Of Hospitalization To Day After Admission Or Procedure&quot;:
      ( from
          VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter,
          &quot;Pharmacological or Mechanical VTE Prophylaxis Received&quot; VTEProphylaxis
          where Coalesce(VTEProphylaxis.effective.toInterval(), VTEProphylaxis.performed.toInterval()) starts during day of QualifyingEncounter.fromDayOfStartOfHospitalizationToDayAfterAdmission ( )
          return QualifyingEncounter
      )
        union ( from
            VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter,
            [&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,
            &quot;Pharmacological or Mechanical VTE Prophylaxis Received&quot; VTEProphylaxis
            where AnesthesiaProcedure.status = 'completed'
              and AnesthesiaProcedure.performed.toInterval ( ) ends 1 day after day of start of QualifyingEncounter.period
              and Coalesce(VTEProphylaxis.effective.toInterval(), VTEProphylaxis.performed.toInterval()) starts during day of ( end of AnesthesiaProcedure.performed.toInterval ( ) ).calendarDayOfOrDayAfter ( )
            return QualifyingEncounter
        )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="6"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Encounter With Medication Oral Factor Xa Inhibitor Administered On Day Of Or Day After Admission Or Procedure"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter With Medication Oral Factor Xa Inhibitor Administered On Day Of Or Day After Admission Or Procedure&quot;:
      ( from
          VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter,
          [&quot;MedicationAdministration&quot;: &quot;Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment&quot;] FactorXaMedication
          where FactorXaMedication.status = 'completed'
            and FactorXaMedication.effective.toInterval ( ) starts during day of ( start of QualifyingEncounter.period ).calendarDayOfOrDayAfter ( )
          return QualifyingEncounter
      )
        union ( from
            VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter,
            [&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,
            [&quot;MedicationAdministration&quot;: &quot;Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment&quot;] FactorXaMedication
            where FactorXaMedication.status = 'completed'
              and AnesthesiaProcedure.status = 'completed'
              and AnesthesiaProcedure.performed.toInterval ( ) ends 1 day after day of start of QualifyingEncounter.period
              and FactorXaMedication.effective.toInterval ( ) starts during day of ( end of AnesthesiaProcedure.performed.toInterval ( ) ).calendarDayOfOrDayAfter ( )
            return QualifyingEncounter
        )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="7"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Encounter With Prior Or Present Diagnosis Of Atrial Fibrillation Or Prior Diagnosis Of VTE"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter With Prior Or Present Diagnosis Of Atrial Fibrillation Or Prior Diagnosis Of VTE&quot;:
      ( VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter
          with [&quot;ConditionProblemsHealthConcerns&quot;: &quot;Atrial Fibrillation or Flutter&quot;] AtrialFibrillation
            such that AtrialFibrillation.verificationStatus is not null implies ( AtrialFibrillation.verificationStatus !~ FHIRCommon.&quot;refuted&quot;
                and AtrialFibrillation.verificationStatus !~ FHIRCommon.&quot;entered-in-error&quot;
            )
              and AtrialFibrillation.onset.toInterval ( ) starts on or before end of QualifyingEncounter.period
      )
        union ( VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter
            where QualifyingEncounter.hasEncDiagnosisOf ( &quot;Atrial Fibrillation or Flutter&quot; )
        )
        union ( VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter
            with [&quot;ConditionProblemsHealthConcerns&quot;: &quot;Venous Thromboembolism&quot;] VTEDiagnosis
              such that ( VTEDiagnosis.clinicalStatus ~ FHIRCommon.&quot;inactive&quot;
                  or VTEDiagnosis.clinicalStatus ~ FHIRCommon.&quot;remission&quot;
                  or VTEDiagnosis.clinicalStatus ~ FHIRCommon.&quot;resolved&quot;
              )
                and VTEDiagnosis.verificationStatus is not null implies ( VTEDiagnosis.verificationStatus !~ FHIRCommon.&quot;refuted&quot;
                  and VTEDiagnosis.verificationStatus !~ FHIRCommon.&quot;entered-in-error&quot;
              )
                and VTEDiagnosis.onset.toInterval ( ) before start of QualifyingEncounter.period
        )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="8"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Encounter With Prior Or Present Procedure Of Hip Or Knee Replacement Surgery"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter With Prior Or Present Procedure Of Hip Or Knee Replacement Surgery&quot;:
      VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter
        with ( [&quot;Procedure&quot;: &quot;Hip Replacement Surgery&quot;]
          union [&quot;Procedure&quot;: &quot;Knee Replacement Surgery&quot;] ) HipKneeProcedure
          such that HipKneeProcedure.status = 'completed'
            and HipKneeProcedure.performed.toInterval ( ) starts on or before end of QualifyingEncounter.period"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="9"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString value="Low Risk Indicator For VTE"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Low Risk Indicator For VTE&quot;:
      ( [&quot;SimpleObservation&quot;: &quot;Risk for venous thromboembolism&quot;] VTERiskAssessment
          where VTERiskAssessment.value as FHIR.CodeableConcept in &quot;Low Risk&quot;
            and VTERiskAssessment.status in { 'final', 'amended', 'corrected' }
          return {
            id: VTERiskAssessment.id,
            LowRiskDatetime: VTERiskAssessment.effective.earliest ( )
          }
      )
        union ( [&quot;LaboratoryResultObservation&quot;: &quot;INR&quot;] INRLabTest
            where INRLabTest.value as Quantity &gt; 3.0
              and INRLabTest.status in { 'final', 'amended', 'corrected' }
            return {
              id: INRLabTest.id,
              LowRiskDatetime: INRLabTest.issued
            }
        )
        union ( ( ( [&quot;MedicationAdministration&quot;: &quot;Unfractionated Heparin&quot;] UnfractionatedHeparin
              where UnfractionatedHeparin.dosage.route in &quot;Intravenous route&quot;
          )
            union [&quot;MedicationAdministration&quot;: &quot;Direct Thrombin Inhibitor&quot;]
            union [&quot;MedicationAdministration&quot;: &quot;Glycoprotein IIb IIIa Inhibitors&quot;] ) AnticoagulantMedication
            where AnticoagulantMedication.status = 'completed'
            return {
              id: AnticoagulantMedication.id,
              LowRiskDatetime: start of AnticoagulantMedication.effective.toInterval ( )
            }
        )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="10"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Low Risk For VTE Or Anticoagulant Administered From Day Of Start Of Hospitalization To Day After Admission"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Low Risk For VTE Or Anticoagulant Administered From Day Of Start Of Hospitalization To Day After Admission&quot;:
      VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter
        with &quot;Low Risk Indicator For VTE&quot; LowRiskForVTE
          such that LowRiskForVTE.LowRiskDatetime during day of QualifyingEncounter.fromDayOfStartOfHospitalizationToDayAfterAdmission ( )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="11"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Low Risk For VTE Or Anticoagulant Administered On Day Of Or Day After Procedure"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Low Risk For VTE Or Anticoagulant Administered On Day Of Or Day After Procedure&quot;:
      from
        VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter,
        [&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,
        &quot;Low Risk Indicator For VTE&quot; LowRiskForVTE
        where AnesthesiaProcedure.status = 'completed'
          and AnesthesiaProcedure.performed.toInterval ( ) ends 1 day after day of start of QualifyingEncounter.period
          and LowRiskForVTE.LowRiskDatetime during day of ( end of AnesthesiaProcedure.performed.toInterval ( ) ).calendarDayOfOrDayAfter ( )
        return QualifyingEncounter"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="12"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Encounter With Low Risk For VTE Or Anticoagulant Administered"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter With Low Risk For VTE Or Anticoagulant Administered&quot;:
      &quot;Low Risk For VTE Or Anticoagulant Administered From Day Of Start Of Hospitalization To Day After Admission&quot;
        union &quot;Low Risk For VTE Or Anticoagulant Administered On Day Of Or Day After Procedure&quot;"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="13"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString
                           value="No VTE Prophylaxis Medication Administered Or Ordered"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;No VTE Prophylaxis Medication Administered Or Ordered&quot;:
      ( ( [MedicationAdministrationNotDone: &quot;Low Dose Unfractionated Heparin for VTE Prophylaxis&quot;]
          union [MedicationAdministrationNotDone: &quot;Low Molecular Weight Heparin for VTE Prophylaxis&quot;]
          union [MedicationAdministrationNotDone: &quot;Injectable Factor Xa Inhibitor for VTE Prophylaxis&quot;]
          union [MedicationAdministrationNotDone: &quot;Warfarin&quot;]
          union [MedicationAdministrationNotDone: &quot;Rivaroxaban for VTE Prophylaxis&quot;] ) NoMedicationAdm
          return {
            id: NoMedicationAdm.id,
            medicationStatusReason: NoMedicationAdm.statusReason,
            authoredOn: NoMedicationAdm.recorded()
          }
      )
        union ( ( [&quot;MedicationNotRequested&quot;: &quot;Low Dose Unfractionated Heparin for VTE Prophylaxis&quot;]
            union [&quot;MedicationNotRequested&quot;: &quot;Low Molecular Weight Heparin for VTE Prophylaxis&quot;]
            union [&quot;MedicationNotRequested&quot;: &quot;Injectable Factor Xa Inhibitor for VTE Prophylaxis&quot;]
            union [&quot;MedicationNotRequested&quot;: &quot;Warfarin&quot;]
            union [&quot;MedicationNotRequested&quot;: &quot;Rivaroxaban for VTE Prophylaxis&quot;] ) NoMedicationOrder
            where NoMedicationOrder.intent in { 'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order' }
              and NoMedicationOrder.status in { 'active', 'completed' }
            return {
              id: NoMedicationOrder.id,
              medicationStatusReason: NoMedicationOrder.reasonCode,
              authoredOn: NoMedicationOrder.authoredOn
            }
        )
        union ( from
            ( [&quot;MedicationRequest&quot;: &quot;Low Dose Unfractionated Heparin for VTE Prophylaxis&quot;]
              union [&quot;MedicationRequest&quot;: &quot;Low Molecular Weight Heparin for VTE Prophylaxis&quot;]
              union [&quot;MedicationRequest&quot;: &quot;Injectable Factor Xa Inhibitor for VTE Prophylaxis&quot;]
              union [&quot;MedicationRequest&quot;: &quot;Warfarin&quot;]
              union [&quot;MedicationRequest&quot;: &quot;Rivaroxaban for VTE Prophylaxis&quot;] ) MedicationOrderReject,
            [TaskRejected] T
            where T.focus.references ( MedicationOrderReject )
              and T.code ~ USQualityCoreCommon.&quot;Fulfill&quot;
              and MedicationOrderReject.status = 'active'
            return {
              id: MedicationOrderReject.id,
              medicationStatusReason: { T.statusReason },
              authoredOn: MedicationOrderReject.authoredOn
            }
        )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="14"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString
                           value="No VTE Prophylaxis Medication Due To Medical Reason From Day Of Start Of Hospitalization To Day After Admission"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;No VTE Prophylaxis Medication Due To Medical Reason From Day Of Start Of Hospitalization To Day After Admission&quot;:
      VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter
        with &quot;No VTE Prophylaxis Medication Administered Or Ordered&quot; NoVTEMedication
          such that NoVTEMedication.medicationStatusReason in &quot;Medical Reason For Not Providing Treatment&quot;
            and NoVTEMedication.authoredOn during day of QualifyingEncounter.fromDayOfStartOfHospitalizationToDayAfterAdmission ( )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="15"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString
                           value="No Mechanical VTE Prophylaxis Performed Or Ordered"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;No Mechanical VTE Prophylaxis Performed Or Ordered&quot;:
      ( ( [ServiceNotRequested: &quot;Venous foot pumps&quot;]
          union [ServiceNotRequested: &quot;Intermittent pneumatic compression devices&quot;]
          union [ServiceNotRequested: &quot;Graduated compression stockings&quot;] ) DeviceNotOrder
          where DeviceNotOrder.intent in { 'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order' }
          return {
            id: DeviceNotOrder.id,
            requestStatusReason: DeviceNotOrder.reasonRefused(),
            authoredOn: DeviceNotOrder.authoredOn
          }
      )
        union ( from
            ( [ServiceRequest: &quot;Venous foot pumps&quot;]
              union [ServiceRequest: &quot;Intermittent pneumatic compression devices&quot;]
              union [ServiceRequest: &quot;Graduated compression stockings&quot;] ) DeviceOrderReject,
            [TaskRejected] T
            where DeviceOrderReject.intent in { 'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order' }
              and DeviceOrderReject.status = 'active'
              and T.focus.references ( DeviceOrderReject )
              and T.code ~ USQualityCoreCommon.&quot;Fulfill&quot;
            return {
              id: DeviceOrderReject.id,
              requestStatusReason: T.statusReason,
              authoredOn: DeviceOrderReject.authoredOn
            }
        )
        union ( ( [ProcedureNotDone: &quot;Application of Intermittent Pneumatic Compression Devices&quot;]
            union [ProcedureNotDone: &quot;Application of Venous Foot Pumps&quot;]
            union [ProcedureNotDone: &quot;Application of Graduated Compression Stockings&quot;] ) DeviceNotApplied
            return {
              id: DeviceNotApplied.id,
              requestStatusReason: DeviceNotApplied.statusReason,
              authoredOn: DeviceNotApplied.recorded()
            }
        )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="16"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString
                           value="No Mechanical VTE Prophylaxis Due To Medical Reason From Day Of Start Of Hospitalization To Day After Admission"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;No Mechanical VTE Prophylaxis Due To Medical Reason From Day Of Start Of Hospitalization To Day After Admission&quot;:
      VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter
        with &quot;No Mechanical VTE Prophylaxis Performed Or Ordered&quot; NoVTEDevice
          such that NoVTEDevice.requestStatusReason in &quot;Medical Reason For Not Providing Treatment&quot;
            and NoVTEDevice.authoredOn during day of QualifyingEncounter.fromDayOfStartOfHospitalizationToDayAfterAdmission ( )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="17"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString
                           value="No VTE Prophylaxis Medication Due To Medical Reason On Day Of Or Day After Procedure"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;No VTE Prophylaxis Medication Due To Medical Reason On Day Of Or Day After Procedure&quot;:
      from
        VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter,
        [&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,
        &quot;No VTE Prophylaxis Medication Administered Or Ordered&quot; NoVTEMedication
        where NoVTEMedication.medicationStatusReason in &quot;Medical Reason For Not Providing Treatment&quot;
          and AnesthesiaProcedure.status = 'completed'
          and AnesthesiaProcedure.performed.toInterval ( ) ends 1 day after day of start of QualifyingEncounter.period
          and NoVTEMedication.authoredOn during day of ( end of AnesthesiaProcedure.performed.toInterval ( ) ).calendarDayOfOrDayAfter ( )
        return QualifyingEncounter"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="18"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString
                           value="No Mechanical VTE Prophylaxis Due To Medical Reason On Day Of Or Day After Procedure"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;No Mechanical VTE Prophylaxis Due To Medical Reason On Day Of Or Day After Procedure&quot;:
      from
        VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter,
        [&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,
        &quot;No Mechanical VTE Prophylaxis Performed Or Ordered&quot; NoVTEDevice
        where NoVTEDevice.requestStatusReason in &quot;Medical Reason For Not Providing Treatment&quot;
          and AnesthesiaProcedure.status = 'completed'
          and AnesthesiaProcedure.performed.toInterval ( ) ends 1 day after day of start of QualifyingEncounter.period
          and NoVTEDevice.authoredOn during day of ( end of AnesthesiaProcedure.performed.toInterval ( ) ).calendarDayOfOrDayAfter ( )
        return QualifyingEncounter"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="19"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Encounter With No VTE Prophylaxis Due To Medical Reason"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter With No VTE Prophylaxis Due To Medical Reason&quot;:
      ( &quot;No VTE Prophylaxis Medication Due To Medical Reason From Day Of Start Of Hospitalization To Day After Admission&quot;
          intersect &quot;No Mechanical VTE Prophylaxis Due To Medical Reason From Day Of Start Of Hospitalization To Day After Admission&quot;
      )
        union ( &quot;No VTE Prophylaxis Medication Due To Medical Reason On Day Of Or Day After Procedure&quot;
            intersect &quot;No Mechanical VTE Prophylaxis Due To Medical Reason On Day Of Or Day After Procedure&quot;
        )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="20"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString
                           value="No Mechanical Or Pharmacological VTE Prophylaxis Due To Patient Refusal"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;No Mechanical Or Pharmacological VTE Prophylaxis Due To Patient Refusal&quot;:
      ( &quot;No VTE Prophylaxis Medication Administered Or Ordered&quot; NoVTEMedication
          where exists ( NoVTEMedication.medicationStatusReason MedRsn
              where MedRsn in &quot;Patient Refusal&quot;
          )
      )
        union ( &quot;No Mechanical VTE Prophylaxis Performed Or Ordered&quot; NoVTEDevice
            where NoVTEDevice.requestStatusReason in &quot;Patient Refusal&quot;
        )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="21"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString
                           value="No VTE Prophylaxis Due To Patient Refusal From Day Of Start Of Hospitalization To Day After Admission"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;No VTE Prophylaxis Due To Patient Refusal From Day Of Start Of Hospitalization To Day After Admission&quot;:
      VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter
        with &quot;No Mechanical Or Pharmacological VTE Prophylaxis Due To Patient Refusal&quot; PatientRefusal
          such that PatientRefusal.authoredOn during day of QualifyingEncounter.fromDayOfStartOfHospitalizationToDayAfterAdmission ( )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="22"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString
                           value="No VTE Prophylaxis Due To Patient Refusal On Day Of Or Day After Procedure"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;No VTE Prophylaxis Due To Patient Refusal On Day Of Or Day After Procedure&quot;:
      from
        VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter,
        [&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,
        &quot;No Mechanical Or Pharmacological VTE Prophylaxis Due To Patient Refusal&quot; PatientRefusal
        where AnesthesiaProcedure.status = 'completed'
          and AnesthesiaProcedure.performed.toInterval ( ) ends 1 day after day of start of QualifyingEncounter.period
          and PatientRefusal.authoredOn during day of ( end of AnesthesiaProcedure.performed.toInterval ( ) ).calendarDayOfOrDayAfter ( )
        return QualifyingEncounter"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="23"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Encounter With No VTE Prophylaxis Due To Patient Refusal"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter With No VTE Prophylaxis Due To Patient Refusal&quot;:
      &quot;No VTE Prophylaxis Due To Patient Refusal From Day Of Start Of Hospitalization To Day After Admission&quot;
        union &quot;No VTE Prophylaxis Due To Patient Refusal On Day Of Or Day After Procedure&quot;"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="24"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString value="Numerator"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Numerator&quot;:
      &quot;Encounter With VTE Prophylaxis Received From Day Of Start Of Hospitalization To Day After Admission Or Procedure&quot;
        union ( &quot;Encounter With Medication Oral Factor Xa Inhibitor Administered On Day Of Or Day After Admission Or Procedure&quot;
            intersect ( &quot;Encounter With Prior Or Present Diagnosis Of Atrial Fibrillation Or Prior Diagnosis Of VTE&quot;
                union &quot;Encounter With Prior Or Present Procedure Of Hip Or Knee Replacement Surgery&quot;
            )
        )
        union &quot;Encounter With Low Risk For VTE Or Anticoagulant Administered&quot;
        union &quot;Encounter With No VTE Prophylaxis Due To Medical Reason&quot;
        union &quot;Encounter With No VTE Prophylaxis Due To Patient Refusal&quot;"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="25"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString value="Initial Population"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Initial Population&quot;:
      VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot;"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="26"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString value="Denominator"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Denominator&quot;:
      &quot;Initial Population&quot;"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="27"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="SupplementalDataElements"/>
            </extension>
            <extension url="name">
              <valueString value="SDE Payer"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;SDE Payer&quot;:
      [USQualityCore.Coverage: type in &quot;Payer Type&quot;] Payer
        return {
          code: Payer.type,
          period: Payer.period
        }"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="28"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString value="SDE Payer"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;SDE Payer&quot;:
      SDE.&quot;SDE Payer&quot;"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="29"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="SupplementalDataElements"/>
            </extension>
            <extension url="name">
              <valueString value="SDE Ethnicity"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;SDE Ethnicity&quot;:
      (Patient.ethnicity()) E
        return Tuple {
          codes: { E.ombCategory } union E.detailed,
          display: E.text
        }"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="30"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString value="SDE Ethnicity"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;SDE Ethnicity&quot;:
      SDE.&quot;SDE Ethnicity&quot;"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="31"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString value="Encounter Less Than 2 Days"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter Less Than 2 Days&quot;:
      VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter
        where QualifyingEncounter.period.lengthInDays ( ) &lt; 2"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="32"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Encounter With ICU Location Stay 1 Day Or More"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter With ICU Location Stay 1 Day Or More&quot;:
      VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter
        where exists ( QualifyingEncounter.location Location
            where Location.location.getLocation ( ).type in &quot;Intensive Care Unit&quot;
              and Location.period.lengthInDays ( ) &gt;= 1
              and Location.period starts on or after start of QualifyingEncounter.period
              and date from ( start of Location.period ) during ( start of QualifyingEncounter.period ).calendarDayOfOrDayAfter ( )
        )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="33"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Encounter With Principal Diagnosis Of Mental Disorder Or Stroke"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter With Principal Diagnosis Of Mental Disorder Or Stroke&quot;:
      VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter
        where QualifyingEncounter.hasPrincipalDiagnosisOf ( &quot;Mental Health Diagnoses&quot; )
          or QualifyingEncounter.hasPrincipalDiagnosisOf ( &quot;Hemorrhagic Stroke&quot; )
          or QualifyingEncounter.hasPrincipalDiagnosisOf ( &quot;Ischemic Stroke&quot; )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="34"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Encounter With Principal Procedure Of Selected Surgery"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter With Principal Procedure Of Selected Surgery&quot;:
      VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter
        where QualifyingEncounter.hasPrincipalProcedureOf ( &quot;General Surgery&quot; )
          or QualifyingEncounter.hasPrincipalProcedureOf ( &quot;Gynecological Surgery&quot; )
          or QualifyingEncounter.hasPrincipalProcedureOf ( &quot;Hip Fracture Surgery&quot; )
          or QualifyingEncounter.hasPrincipalProcedureOf ( &quot;Hip Replacement Surgery&quot; )
          or QualifyingEncounter.hasPrincipalProcedureOf ( &quot;Intracranial Neurosurgery&quot; )
          or QualifyingEncounter.hasPrincipalProcedureOf ( &quot;Knee Replacement Surgery&quot; )
          or QualifyingEncounter.hasPrincipalProcedureOf ( &quot;Urological Surgery&quot; )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="35"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString value="Intervention Comfort Measures"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Intervention Comfort Measures&quot;:
      ( [&quot;ServiceRequest&quot;: &quot;Comfort Measures&quot;] InterventionRequest
          where InterventionRequest.intent in { 'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order' }
            and InterventionRequest.status in { 'active', 'completed' }
      )
        union ( [&quot;Procedure&quot;: &quot;Comfort Measures&quot;] InterventionPerformed
            where InterventionPerformed.status in { 'completed', 'in-progress' }
        )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="36"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Encounter With Intervention Comfort Measures From Day Of Start Of Hospitalization To Day After Admission"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter With Intervention Comfort Measures From Day Of Start Of Hospitalization To Day After Admission&quot;:
      VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter
        with &quot;Intervention Comfort Measures&quot; ComfortMeasure
          such that Coalesce(start of ComfortMeasure.performed.toInterval(), ComfortMeasure.authoredOn) during day of QualifyingEncounter.fromDayOfStartOfHospitalizationToDayAfterAdmission ( )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="37"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Encounter With Intervention Comfort Measures On Day Of Or Day After Procedure"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter With Intervention Comfort Measures On Day Of Or Day After Procedure&quot;:
      from
        VTE.&quot;Encounter With Age Range And Without VTE Diagnosis Or Obstetrical Conditions&quot; QualifyingEncounter,
        [&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,
        &quot;Intervention Comfort Measures&quot; ComfortMeasure
        where AnesthesiaProcedure.status = 'completed'
          and AnesthesiaProcedure.performed.toInterval ( ) ends 1 day after day of start of QualifyingEncounter.period
          and Coalesce(start of ComfortMeasure.performed.toInterval(), ComfortMeasure.authoredOn) during day of ( end of AnesthesiaProcedure.performed.toInterval ( ) ).calendarDayOfOrDayAfter ( )
        return QualifyingEncounter"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="38"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString value="Denominator Exclusions"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Denominator Exclusions&quot;:
      &quot;Encounter Less Than 2 Days&quot;
        union &quot;Encounter With ICU Location Stay 1 Day Or More&quot;
        union &quot;Encounter With Principal Diagnosis Of Mental Disorder Or Stroke&quot;
        union &quot;Encounter With Principal Procedure Of Selected Surgery&quot;
        union &quot;Encounter With Intervention Comfort Measures From Day Of Start Of Hospitalization To Day After Admission&quot;
        union &quot;Encounter With Intervention Comfort Measures On Day Of Or Day After Procedure&quot;"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="39"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="SupplementalDataElements"/>
            </extension>
            <extension url="name">
              <valueString value="SDE Race"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;SDE Race&quot;:
      (Patient.race()) R
        return Tuple {
          codes: R.ombCategory union R.detailed,
          display: R.text
        }"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="40"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString value="SDE Race"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;SDE Race&quot;:
      SDE.&quot;SDE Race&quot;"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="41"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToString"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function ToString(value string): value.value"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="42"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="USCoreCommon"/>
            </extension>
            <extension url="name">
              <valueString value="sex"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Returns the sex element as defined for the USCore patient profile
    */
    define fluent function sex(patient Patient):
      patient.ext('http://hl7.org/fhir/us/core/StructureDefinition/us-core-sex').value as FHIR.code"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="43"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRCommon"/>
            </extension>
            <extension url="name">
              <valueString value="ext"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Returns the single extension (if present) on the given resource with the specified url.
    @comment: This function uses singleton from to ensure that a run-time exception is thrown if there
    is more than one extension on the given resource with the specified url.
    */
    define fluent function ext(domainResource DomainResource, url String):
      singleton from domainResource.exts(url)"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="44"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRCommon"/>
            </extension>
            <extension url="name">
              <valueString value="exts"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Returns any extensions defined on the given resource with the specified url
    */
    define fluent function exts(domainResource DomainResource, url String):
      domainResource.extension E
        where E.url = url
        return E"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="45"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToString"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function ToString(value uri): value.value"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="46"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToString"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function ToString(value EncounterStatus): value.value"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="47"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToInterval"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)
    value to a CQL DateTime Interval
    @comment: If the start value of the given period is unspecified, the starting
    boundary of the resulting interval will be open (meaning the start of the interval
    is unknown, as opposed to interpreted as the beginning of time).
    */
    define function ToInterval(period FHIR.Period):
        if period is null then
            null
        else
            if period.&quot;start&quot; is null then
                Interval(period.&quot;start&quot;.value, period.&quot;end&quot;.value]
            else
                Interval[period.&quot;start&quot;.value, period.&quot;end&quot;.value]"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="48"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="VTE"/>
            </extension>
            <extension url="name">
              <valueString value="hasEncDiagnosisOf"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define fluent function hasEncDiagnosisOf(TheEncounter Encounter, DiagnosisValueSet System.ValueSet):
       TheEncounter E
         return (E.encounterDiagnosis()).code in DiagnosisValueSet
           or E.reasonCode in DiagnosisValueSet"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="49"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CQMCommon"/>
            </extension>
            <extension url="name">
              <valueString value="encounterDiagnosis"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Returns the Condition resources referenced by the diagnosis element of the Encounter
    */
    define fluent function encounterDiagnosis(Encounter Encounter ):
      Encounter.reasonReference D
        return singleton from (([ConditionEncounterDiagnosis] union [ConditionProblemsHealthConcerns]) C where D.references(C.id))"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="50"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRCommon"/>
            </extension>
            <extension url="name">
              <valueString value="references"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Returns true if the given reference is to the given resourceId
    @comment: Returns true if the `resourceId` parameter exactly equals the tail of the given reference.
    NOTE: This function assumes resources from the same source server.
    */
    define fluent function references(reference FHIR.Reference, resourceId String):
      resourceId = Last(Split(reference.reference, '/'))"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="51"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToConcept"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.
    */
    define function ToConcept(concept FHIR.CodeableConcept):
        if concept is null then
            null
        else
            System.Concept {
                codes: concept.coding C return ToCode(C),
                display: concept.text.value
            }"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="52"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToCode"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.
    */
    define function ToCode(coding FHIR.Coding):
        if coding is null then
            null
        else
            System.Code {
              code: coding.code.value,
              system: coding.system.value,
              version: coding.version.value,
              display: coding.display.value
            }"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="53"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToDate"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function ToDate(value date): value.value"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="54"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToString"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function ToString(value MedicationAdministrationStatus): value.value"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="55"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToString"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function ToString(value ProcedureStatus): value.value"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="56"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRCommon"/>
            </extension>
            <extension url="name">
              <valueString value="toInterval"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Normalizes a value that is a choice of timing-valued types to an equivalent interval
    @comment: Normalizes a choice type of FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instance, FHIR.string, FHIR.Age, or FHIR.Range types
    to an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible
    representations for timing-valued elements in FHIR, allowing this function to be used across any resource.

    The input can be provided as a dateTime, Period, Timing, instant, string, Age, or Range.
    The intent of this function is to provide a clear and concise mechanism to treat single
    elements that have multiple possible representations as intervals so that logic doesn't have to account
    for the variability. More complex calculations (such as medication request period or dispense period
    calculation) need specific guidance and consideration. That guidance may make use of this function, but
    the focus of this function is on single element calculations where the semantics are unambiguous.
    If the input is a dateTime, the result a DateTime Interval beginning and ending on that dateTime.
    If the input is a Period, the result is a DateTime Interval.
    If the input is a Timing, an error is raised indicating a single interval cannot be computed from a Timing.
    If the input is an instant, the result is a DateTime Interval beginning and ending on that instant.
    If the input is a string, an error is raised indicating a single interval cannot be computed from a string.
    If the input is an Age, the result is a DateTime Interval beginning when the patient was the given Age,
    and ending immediately prior to when the patient was the given Age plus one year.
    If the input is a Range, the result is a DateTime Interval beginning when the patient was the Age given
    by the low end of the Range, and ending immediately prior to when the patient was the Age given by the
    high end of the Range plus one year.

    NOTE: Due to the
    complexity of determining a single interval from a Timing or String type, this function will throw a run-time exception if it is used
    with a Timing or String.
    */
    define fluent function toInterval(choice Choice&lt;FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instant, FHIR.string, FHIR.Age, FHIR.Range&gt;):
      case
        when choice is FHIR.dateTime then
          Interval[FHIRHelpers.ToDateTime(choice as FHIR.dateTime), FHIRHelpers.ToDateTime(choice as FHIR.dateTime)]
        when choice is FHIR.Period then
          FHIRHelpers.ToInterval(choice as FHIR.Period)
        when choice is FHIR.instant then
          Interval[FHIRHelpers.ToDateTime(choice as FHIR.instant), FHIRHelpers.ToDateTime(choice as FHIR.instant)]
        when choice is FHIR.Age then
          Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age),
            FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age) + 1 year)
        when choice is FHIR.Range then
          Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).low),
            FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).high) + 1 year)
        when choice is FHIR.Timing then
          Message(null as Interval&lt;DateTime&gt;, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a Timing value is not supported')
        when choice is FHIR.string then
          Message(null as Interval&lt;DateTime&gt;, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a String value is not supported')
        else
          null as Interval&lt;DateTime&gt;
      end"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="57"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToDateTime"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function ToDateTime(value dateTime): value.value"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="58"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToDateTime"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function ToDateTime(value instant): value.value"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="59"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToQuantity"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Converts the given FHIR [Quantity](https://hl7.org/fhir/datatypes.html#Quantity)
    value to a CQL Quantity
    @comment: If the given quantity has a comparator specified, a runtime error is raised. If the given quantity
    has a system other than UCUM (i.e. `http://unitsofmeasure.org`) or CQL calendar units (i.e. `http://hl7.org/fhirpath/CodeSystem/calendar-units`)
    an error is raised. For UCUM to calendar units, the `ToCalendarUnit` function is used.
    @seealso: ToCalendarUnit
    */
    define function ToQuantity(quantity FHIR.Quantity):
        case
            when quantity is null then null
            when quantity.value is null then null
            when quantity.comparator is not null then
                Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')
            when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'
                  or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then
                System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }
            else
                Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' &amp; quantity.unit.value &amp; ' (' &amp; quantity.system.value &amp; '|' &amp; quantity.code.value &amp; ')')
        end"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="60"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToCalendarUnit"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Converts a UCUM definite duration unit to a CQL calendar duration
    unit using conversions specified in the [quantities](https://cql.hl7.org/02-authorsguide.html#quantities)
    topic of the CQL specification.
    @comment: Note that for durations above days (or weeks), the conversion is understood to be approximate
    */
    define function ToCalendarUnit(unit System.String):
        case unit
            when 'ms' then 'millisecond'
            when 's' then 'second'
            when 'min' then 'minute'
            when 'h' then 'hour'
            when 'd' then 'day'
            when 'wk' then 'week'
            when 'mo' then 'month'
            when 'a' then 'year'
            else unit
        end"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="61"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CMS108FHIRVTEProphylaxis"/>
            </extension>
            <extension url="name">
              <valueString
                           value="fromDayOfStartOfHospitalizationToDayAfterAdmission"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define fluent function &quot;fromDayOfStartOfHospitalizationToDayAfterAdmission&quot;(Encounter Encounter):
      Interval[date from ( start of Encounter.hospitalizationWithObservation ( ) ), date from ( start of Encounter.period ) + 1 days]"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="62"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CQMCommon"/>
            </extension>
            <extension url="name">
              <valueString value="hospitalizationWithObservation"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Hospitalization with Observation returns the total interval from the start of any immediately prior emergency department visit through the observation visit to the discharge of the given encounter
    */
    define fluent function hospitalizationWithObservation(TheEncounter Encounter ):
      TheEncounter Visit
      		let ObsVisit: Last([Encounter: &quot;Observation Services&quot;] LastObs
      				where LastObs.status = 'finished'
                and LastObs.period ends 1 hour or less on or before start of Visit.period
      				sort by end of period
      			),
      			VisitStart: Coalesce(start of ObsVisit.period, start of Visit.period),
      			EDVisit: Last([Encounter: &quot;Emergency Department Visit&quot;] LastED
      				where LastED.status = 'finished'
                and LastED.period ends 1 hour or less on or before VisitStart
      				sort by end of period
      			)
      		return Interval[Coalesce(start of EDVisit.period, VisitStart), end of Visit.period]"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="63"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="TJCOverall"/>
            </extension>
            <extension url="name">
              <valueString value="calendarDayOfOrDayAfter"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define fluent function calendarDayOfOrDayAfter(StartValue DateTime):
      Interval [date from (StartValue), date from (StartValue) + 1 day]"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="64"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToString"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function ToString(value ObservationStatus): value.value"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="65"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRCommon"/>
            </extension>
            <extension url="name">
              <valueString value="earliest"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Given an interval, return the starting point if the interval has a starting boundary specified,
    otherwise, return the ending point
    */
    define fluent function earliest(choice Choice&lt;FHIR.dateTime, FHIR.Period, FHIR.Age, FHIR.Range&gt;):
      (choice.toInterval()) period
        return
          if (period.hasStart()) then start of period
          else end of period"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="66"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRCommon"/>
            </extension>
            <extension url="name">
              <valueString value="hasStart"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Given an interval, return true if the interval has a starting boundary specified
    (i.e. the start of the interval is not null and not the minimum DateTime value)
    */
    define fluent function hasStart(period Interval&lt;DateTime&gt;):
      not ( start of period is null
          or start of period = minimum DateTime
      )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="67"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="USQualityCoreCommon"/>
            </extension>
            <extension url="name">
              <valueString value="recorded"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Returns the value of the recorded extension for a Medication Administration Not Done
    */
    define fluent function recorded(medicationAdministrationNotDone MedicationAdministrationNotDone):
      medicationAdministrationNotDone.ext('http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-recorded').value as FHIR.dateTime"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="68"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToString"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function ToString(value MedicationRequestIntent): value.value"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="69"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToString"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function ToString(value MedicationRequestStatus): value.value"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="70"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRCommon"/>
            </extension>
            <extension url="name">
              <valueString value="references"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Returns true if the given reference is to the given resource
    @comment: Returns true if the `id` element of the given resource exactly equals the tail of the given reference.
    NOTE: This function assumes resources from the same source server.
    */
    define fluent function references(reference FHIR.Reference, resource FHIR.Resource):
      resource.id = Last(Split(reference.reference, '/'))"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="71"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToString"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function ToString(value ServiceRequestIntent): value.value"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="72"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="USQualityCoreCommon"/>
            </extension>
            <extension url="name">
              <valueString value="reasonRefused"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Returns the value of the recorded extension for a Medication Administration Not Done
    */
    define fluent function reasonRefused(serviceNotRequested ServiceNotRequested):
      serviceNotRequested.ext('http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-doNotPerformReason').value as FHIR.CodeableConcept"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="73"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToString"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function ToString(value ServiceRequestStatus): value.value"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="74"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="USQualityCoreCommon"/>
            </extension>
            <extension url="name">
              <valueString value="recorded"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Returns the value of the recorded extension for a Medication Administration Not Done
    */
    define fluent function recorded(procedureNotDone ProcedureNotDone):
      procedureNotDone.ext('http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-recorded').value as FHIR.dateTime"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="75"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="USCoreCommon"/>
            </extension>
            <extension url="name">
              <valueString value="ethnicity"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define fluent function ethnicity(patient Patient):
      (patient.ext('http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity')) E
        return {
          ombCategory: E.ext('ombCategory').value as FHIR.Coding,
          detailed: (E.exts('detailed')) d return d.value as FHIR.Coding,
          text: E.ext('text').value as FHIR.string
        }"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="76"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRCommon"/>
            </extension>
            <extension url="name">
              <valueString value="ext"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Returns the single extension (if present) on the given element with the specified url.
    @comment: This function uses singleton from to ensure that a run-time exception is thrown if there
    is more than one extension on the given element with the specified url.
    */
    define fluent function ext(element Element, url String):
      singleton from element.exts(url)"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="77"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRCommon"/>
            </extension>
            <extension url="name">
              <valueString value="exts"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Returns any extensions defined on the given element with the specified url.
    */
    define fluent function exts(element Element, url String):
      element.extension E
        where E.url = url
        return E"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="78"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CQMCommon"/>
            </extension>
            <extension url="name">
              <valueString value="lengthInDays"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Calculates the difference in calendar days between the start and end of the given interval.
    */
    define fluent function lengthInDays(Value Interval&lt;DateTime&gt; ):
      difference in days between start of Value and end of Value"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="79"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CQMCommon"/>
            </extension>
            <extension url="name">
              <valueString value="getLocation"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Returns the Location resource specified by the given reference.
    */
    define fluent function getLocation(reference Reference):
      singleton from (
        [Location] L where reference.references(L)
      )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="80"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CQMCommon"/>
            </extension>
            <extension url="name">
              <valueString value="hasPrincipalDiagnosisOf"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
     @description: Returns the condition that is specified as the principal diagnosis for the encounter and has a code in the given valueSet.
     @comment: See the QICore 6 Authoring Patterns discussion on [Principal Diagnosis and Present on Admission](https://github.com/cqframework/CQL-Formatting-and-Usage-Wiki/wiki/Authoring-Patterns-QICore-v6.0.0#conditions-present-on-admission-and-principal-diagnoses) for more information
     */
     define fluent function hasPrincipalDiagnosisOf(encounter Encounter, valueSet System.ValueSet):
       (encounter.principalDiagnosis()) PD
         return PD.diagnosis in valueSet
           or PD.diagnosis.getCondition().code in valueSet"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="81"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CQMCommon"/>
            </extension>
            <extension url="name">
              <valueString value="principalDiagnosis"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Returns the claim diagnosis element that is specified as the principal diagnosis for the encounter
     @comment: See the QICore 6 Authoring Patterns discussion on [Principal Diagnosis and Present on Admission](https://github.com/cqframework/CQL-Formatting-and-Usage-Wiki/wiki/Authoring-Patterns-QICore-v6.0.0#conditions-present-on-admission-and-principal-diagnoses) for more information
    */
    define fluent function principalDiagnosis(encounter Encounter):
    singleton from (
         (encounter.claimDiagnosis()) CD
           where CD.type.includesCode(&quot;Principal Diagnosis&quot;)
       )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="82"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CQMCommon"/>
            </extension>
            <extension url="name">
              <valueString value="claimDiagnosis"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Returns the claim diagnosis elements for the given encounter
    @comment: See the QICore 6 Authoring Patterns discussion on [Principal Diagnosis and Present on Admission](https://github.com/cqframework/CQL-Formatting-and-Usage-Wiki/wiki/Authoring-Patterns-QICore-v6.0.0#conditions-present-on-admission-and-principal-diagnoses) for more information
    */
    define fluent function claimDiagnosis(encounter Encounter):
      encounter E
        let
          claim: ([Claim] C where C.status = 'active' and C.use = 'claim' and exists (C.item I where I.encounter.references(E))),
          claimItem: (claim.item I where I.encounter.references(E))
        return claim.diagnosis D where D.sequence in claimItem.diagnosisSequence"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="83"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToString"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function ToString(value ClaimStatus): value.value"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="84"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToString"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function ToString(value Use): value.value"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="85"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRCommon"/>
            </extension>
            <extension url="name">
              <valueString value="references"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Returns true if any of the given references are to the given resource
    @comment: Returns true if the `id` element of the given resource exactly equals the tail of any of the given references.
    NOTE: This function assumes resources from the same source server.
    */
    define fluent function references(references List&lt;FHIR.Reference&gt;, resource FHIR.Resource):
      exists (references R where R.references(resource))"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="86"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRCommon"/>
            </extension>
            <extension url="name">
              <valueString value="includesCode"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Returns true if the given code is in the given codeList
    @comment: Returns true if the `code` is equivalent to any of the codes in the given `codeList`, false otherwise.
    */
    define fluent function includesCode(codeList List&lt;CodeableConcept&gt;, code Concept):
      exists (codeList C where C ~ code)"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="87"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CQMCommon"/>
            </extension>
            <extension url="name">
              <valueString value="getCondition"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Returns the Condition resource for the given reference
    */
    define fluent function getCondition(reference Reference):
      singleton from (([ConditionEncounterDiagnosis] union [ConditionProblemsHealthConcerns]) C where reference.references(C.id))"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="88"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="VTE"/>
            </extension>
            <extension url="name">
              <valueString value="hasPrincipalProcedureOf"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define fluent function hasPrincipalProcedureOf(TheEncounter Encounter, DiagnosisValueSet System.ValueSet):
       TheEncounter E
       let
            PPx: E.principalProcedure(),
            CPx: singleton from ([Procedure] P where PPx.procedure.references(P.id))
         return PPx.procedure in DiagnosisValueSet
           or CPx.code in DiagnosisValueSet"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="89"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CQMCommon"/>
            </extension>
            <extension url="name">
              <valueString value="principalProcedure"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Returns the claim procedure elements for the given encounter
    */
    define fluent function principalProcedure(encounter Encounter):
      	 encounter E
      	 let
            claim: [Claim] C where C.status = 'active' and C.use = 'claim' and exists (C.item I where I.encounter.references(E)),
            claimItem: claim.item I where I.encounter.references(E),
            princProcedure: singleton from (claim.procedure P where P.sequence in claimItem.procedureSequence and P.type.includesCode(&quot;Primary procedure&quot;))
        return princProcedure"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="90"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="USCoreCommon"/>
            </extension>
            <extension url="name">
              <valueString value="race"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define fluent function race(patient Patient):
      (patient.ext('http://hl7.org/fhir/us/core/StructureDefinition/us-core-race')) E
        return {
          ombCategory: (E.exts('ombCategory')) o return o.value as FHIR.Coding,
          detailed: (E.exts('detailed')) d return d.value as FHIR.Coding,
          text: E.ext('text').value as FHIR.string
        }"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="91"/>
            </extension>
          </extension>
          <name value="EffectiveDataRequirements"/>
          <status value="active"/>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/library-type"/>
              <code value="module-definition"/>
            </coding>
          </type>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="USQualityCore model information"/>
            <resource
                      value="https://madie.cms.gov/Library/USQualityCore-ModelInfo|0.1.0-cibuild"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="USCore model information"/>
            <resource
                      value="http://hl7.org/fhir/us/cql/Library/USCore-ModelInfo|6.1.0-derived"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="FHIR model information"/>
            <resource
                      value="http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Library SDE"/>
            <resource
                      value="https://madie.cms.gov/Library/SupplementalDataElements|6.1.000"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Library FHIRHelpers"/>
            <resource
                      value="http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Library USCommon"/>
            <resource
                      value="http://hl7.org/fhir/us/cql/Library/USCoreCommon|2.0.0-ballot"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Library FHIRCommon"/>
            <resource
                      value="http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Library VTE"/>
            <resource value="https://madie.cms.gov/Library/VTE|9.1.000"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Library CQMCommon"/>
            <resource value="https://madie.cms.gov/Library/CQMCommon|5.1.000"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Library TJC"/>
            <resource value="https://madie.cms.gov/Library/TJCOverall|9.1.000"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Library USQualityCoreCommon"/>
            <resource
                      value="https://madie.cms.gov/Library/USQualityCoreCommon|0.1.0-cibuild"/>
          </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 ConditionVerificationStatusCodes"/>
            <resource
                      value="http://terminology.hl7.org/CodeSystem/condition-ver-status"/>
          </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 LOINC"/>
            <resource value="http://loinc.org"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Code system TaskCodeSystem"/>
            <resource value="http://hl7.org/fhir/CodeSystem/task-code"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Code system Diagnosis Type"/>
            <resource
                      value="http://terminology.hl7.org/CodeSystem/ex-diagnosistype"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Code system Procedure Type"/>
            <resource
                      value="http://terminology.hl7.org/CodeSystem/ex-procedure-type"/>
          </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 Obstetrical or Pregnancy Related Conditions"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.263"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Venous Thromboembolism"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.279"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Obstetrics VTE"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.264"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display
                     value="Value set Low Dose Unfractionated Heparin for VTE Prophylaxis"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Subcutaneous route"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.223"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display
                     value="Value set Low Molecular Weight Heparin for VTE Prophylaxis"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display
                     value="Value set Injectable Factor Xa Inhibitor for VTE Prophylaxis"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Warfarin"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Rivaroxaban for VTE Prophylaxis"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.50"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display
                     value="Value set Application of Intermittent Pneumatic Compression Devices"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.65"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Application of Venous Foot Pumps"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.64"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display
                     value="Value set Application of Graduated Compression Stockings"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.66"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Observation Services"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Emergency Department Visit"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set General or Neuraxial Anesthesia"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display
                     value="Value set Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.134"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Atrial Fibrillation or Flutter"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.202"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Hip Replacement Surgery"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.259"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Knee Replacement Surgery"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.261"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Low Risk"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.400"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set INR"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.213"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Unfractionated Heparin"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.218"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Intravenous route"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.222"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Direct Thrombin Inhibitor"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.205"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Glycoprotein IIb IIIa Inhibitors"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.41"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display
                     value="Value set Medical Reason For Not Providing Treatment"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.473"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Venous foot pumps"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.230"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display
                     value="Value set Intermittent pneumatic compression devices"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.214"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Graduated compression stockings"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.256"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Patient Refusal"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.93"/>
          </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>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Intensive Care Unit"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.206"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Mental Health Diagnoses"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.105.12.1004"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Hemorrhagic Stroke"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.212"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Ischemic Stroke"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.247"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set General Surgery"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.255"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Gynecological Surgery"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.257"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Hip Fracture Surgery"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.258"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Intracranial Neurosurgery"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.260"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Urological Surgery"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.272"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Comfort Measures"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45"/>
          </relatedArtifact>
          <parameter>
            <name value="Measurement Period"/>
            <use value="in"/>
            <min value="0"/>
            <max value="1"/>
            <type value="Period"/>
          </parameter>
          <parameter>
            <name value="SDE Sex"/>
            <use value="out"/>
            <min value="0"/>
            <max value="1"/>
            <type value="Coding"/>
          </parameter>
          <parameter>
            <name value="Numerator"/>
            <use value="out"/>
            <min value="0"/>
            <max value="*"/>
            <type value="Encounter"/>
          </parameter>
          <parameter>
            <name value="Denominator"/>
            <use value="out"/>
            <min value="0"/>
            <max value="*"/>
            <type value="Encounter"/>
          </parameter>
          <parameter>
            <name value="SDE Payer"/>
            <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="*"/>
            <type value="Encounter"/>
          </parameter>
          <parameter>
            <name value="SDE Ethnicity"/>
            <use value="out"/>
            <min value="0"/>
            <max value="1"/>
            <type value="Resource"/>
          </parameter>
          <parameter>
            <name value="Denominator Exclusions"/>
            <use value="out"/>
            <min value="0"/>
            <max value="*"/>
            <type value="Encounter"/>
          </parameter>
          <parameter>
            <name value="SDE Race"/>
            <use value="out"/>
            <min value="0"/>
            <max value="1"/>
            <type value="Resource"/>
          </parameter>
          <dataRequirement>
            <type value="Patient"/>
            <profile
                     value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-patient"/>
            <mustSupport value="ombCategory"/>
            <mustSupport value="detailed"/>
            <mustSupport value="text"/>
          </dataRequirement>
          <dataRequirement>
            <type value="Encounter"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
            <mustSupport value="type"/>
            <mustSupport value="status"/>
            <mustSupport value="period"/>
            <mustSupport value="reasonCode"/>
            <mustSupport value="diagnosis"/>
            <mustSupport value="diagnosis.code"/>
            <codeFilter>
              <path value="type"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143"/>
            </codeFilter>
            <codeFilter>
              <path value="status"/>
              <code>
                <code value="finished"/>
              </code>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Encounter"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
            <mustSupport value="type"/>
            <mustSupport value="status"/>
            <mustSupport value="period"/>
            <mustSupport value="reasonCode"/>
            <mustSupport value="diagnosis"/>
            <mustSupport value="diagnosis.code"/>
            <codeFilter>
              <path value="type"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292"/>
            </codeFilter>
            <codeFilter>
              <path value="status"/>
              <code>
                <code value="finished"/>
              </code>
            </codeFilter>
            <dateFilter>
              <path value="period"/>
              <valuePeriod>
                <extension url="http://hl7.org/fhir/uv/crmi-analysisException">
                  <valueString
                               value="Error attempting to determine filter value: toFhirValue not implemented for Subtract"/>
                </extension>
              </valuePeriod>
            </dateFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Encounter"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
            <mustSupport value="period"/>
            <mustSupport value="reasonCode"/>
            <mustSupport value="type"/>
            <mustSupport value="diagnosis"/>
            <mustSupport value="diagnosis.code"/>
          </dataRequirement>
          <dataRequirement>
            <type value="Encounter"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
            <mustSupport value="type"/>
            <mustSupport value="status"/>
            <mustSupport value="period"/>
            <mustSupport value="reasonCode"/>
            <mustSupport value="diagnosis"/>
            <mustSupport value="diagnosis.code"/>
            <mustSupport value="period.low"/>
            <mustSupport value="period.lowClosed"/>
            <mustSupport value="period.high"/>
            <mustSupport value="period.highClosed"/>
            <mustSupport value="location"/>
            <codeFilter>
              <path value="type"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"/>
            </codeFilter>
            <codeFilter>
              <path value="status"/>
              <code>
                <code value="finished"/>
              </code>
            </codeFilter>
            <dateFilter>
              <path value="period"/>
              <valuePeriod>
                <extension
                           url="http://hl7.org/fhir/StructureDefinition/cqf-expression">
                  <valueExpression>
                    <language value="text/cql-identifier"/>
                    <expression value="Measurement Period"/>
                  </valueExpression>
                </extension>
              </valuePeriod>
            </dateFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Condition"/>
            <profile
                     value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-condition-encounter-diagnosis"/>
          </dataRequirement>
          <dataRequirement>
            <type value="Condition"/>
            <profile
                     value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-condition-problems-health-concerns"/>
            <mustSupport value="code"/>
            <mustSupport value="verificationStatus"/>
            <mustSupport value="onset"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.202"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Condition"/>
            <profile
                     value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-condition-problems-health-concerns"/>
            <mustSupport value="code"/>
            <mustSupport value="clinicalStatus"/>
            <mustSupport value="verificationStatus"/>
            <mustSupport value="onset"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.279"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Condition"/>
            <profile
                     value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-condition-problems-health-concerns"/>
          </dataRequirement>
          <dataRequirement>
            <type value="Medication"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Medication"/>
            <mustSupport value="id"/>
            <mustSupport value="code"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Medication"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Medication"/>
            <mustSupport value="id"/>
            <mustSupport value="code"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Medication"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Medication"/>
            <mustSupport value="id"/>
            <mustSupport value="code"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Medication"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Medication"/>
            <mustSupport value="id"/>
            <mustSupport value="code"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Medication"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Medication"/>
            <mustSupport value="id"/>
            <mustSupport value="code"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.50"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Medication"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Medication"/>
            <mustSupport value="id"/>
            <mustSupport value="code"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.134"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Medication"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Medication"/>
            <mustSupport value="id"/>
            <mustSupport value="code"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.134"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Medication"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Medication"/>
            <mustSupport value="id"/>
            <mustSupport value="code"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.218"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Medication"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Medication"/>
            <mustSupport value="id"/>
            <mustSupport value="code"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.205"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Medication"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Medication"/>
            <mustSupport value="id"/>
            <mustSupport value="code"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.41"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Medication"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Medication"/>
            <mustSupport value="id"/>
            <mustSupport value="code"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Medication"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Medication"/>
            <mustSupport value="id"/>
            <mustSupport value="code"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Medication"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Medication"/>
            <mustSupport value="id"/>
            <mustSupport value="code"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Medication"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Medication"/>
            <mustSupport value="id"/>
            <mustSupport value="code"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Medication"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Medication"/>
            <mustSupport value="id"/>
            <mustSupport value="code"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.50"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationAdministration"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
            <mustSupport value="medication"/>
            <mustSupport value="status"/>
            <mustSupport value="dosage"/>
            <mustSupport value="dosage.route"/>
            <mustSupport value="effective"/>
            <mustSupport value="id"/>
            <codeFilter>
              <path value="medication"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationAdministration"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
            <mustSupport value="medication"/>
            <mustSupport value="status"/>
            <mustSupport value="dosage"/>
            <mustSupport value="dosage.route"/>
            <mustSupport value="effective"/>
            <mustSupport value="id"/>
            <codeFilter>
              <path value="medication"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationAdministration"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
            <mustSupport value="medication"/>
            <mustSupport value="status"/>
            <mustSupport value="dosage"/>
            <mustSupport value="dosage.route"/>
            <mustSupport value="effective"/>
            <mustSupport value="id"/>
            <codeFilter>
              <path value="medication"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationAdministration"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
            <mustSupport value="medication"/>
            <mustSupport value="status"/>
            <mustSupport value="dosage"/>
            <mustSupport value="dosage.route"/>
            <mustSupport value="effective"/>
            <mustSupport value="id"/>
            <codeFilter>
              <path value="medication"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationAdministration"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
            <mustSupport value="medication"/>
            <mustSupport value="status"/>
            <mustSupport value="dosage"/>
            <mustSupport value="dosage.route"/>
            <mustSupport value="effective"/>
            <mustSupport value="id"/>
            <codeFilter>
              <path value="medication"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.50"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationAdministration"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
            <mustSupport value="medication"/>
            <mustSupport value="status"/>
            <mustSupport value="dosage"/>
            <mustSupport value="dosage.route"/>
            <mustSupport value="effective"/>
            <mustSupport value="id"/>
            <codeFilter>
              <path value="medication"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.134"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationAdministration"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
            <mustSupport value="medication"/>
            <mustSupport value="status"/>
            <mustSupport value="dosage"/>
            <mustSupport value="dosage.route"/>
            <mustSupport value="effective"/>
            <mustSupport value="id"/>
            <codeFilter>
              <path value="medication"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.218"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationAdministration"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
            <mustSupport value="medication.reference"/>
            <mustSupport value="status"/>
            <mustSupport value="dosage"/>
            <mustSupport value="dosage.route"/>
            <mustSupport value="effective"/>
            <mustSupport value="id"/>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationAdministration"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
            <mustSupport value="medication"/>
            <mustSupport value="status"/>
            <mustSupport value="dosage"/>
            <mustSupport value="dosage.route"/>
            <mustSupport value="effective"/>
            <mustSupport value="id"/>
            <codeFilter>
              <path value="medication"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.205"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationAdministration"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
            <mustSupport value="medication"/>
            <mustSupport value="status"/>
            <mustSupport value="dosage"/>
            <mustSupport value="dosage.route"/>
            <mustSupport value="effective"/>
            <mustSupport value="id"/>
            <codeFilter>
              <path value="medication"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.41"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Procedure"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
            <mustSupport value="code"/>
            <mustSupport value="status"/>
            <mustSupport value="performed"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.65"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Procedure"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
            <mustSupport value="code"/>
            <mustSupport value="status"/>
            <mustSupport value="performed"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.64"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Procedure"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
            <mustSupport value="code"/>
            <mustSupport value="status"/>
            <mustSupport value="performed"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.66"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Procedure"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
            <mustSupport value="code"/>
            <mustSupport value="status"/>
            <mustSupport value="performed"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.259"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Procedure"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
            <mustSupport value="code"/>
            <mustSupport value="status"/>
            <mustSupport value="performed"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.261"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Procedure"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
            <mustSupport value="id"/>
            <mustSupport value="status"/>
            <mustSupport value="performed"/>
            <mustSupport value="code"/>
          </dataRequirement>
          <dataRequirement>
            <type value="Procedure"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
            <mustSupport value="code"/>
            <mustSupport value="status"/>
            <mustSupport value="performed"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Procedure"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
            <mustSupport value="code"/>
            <mustSupport value="status"/>
            <mustSupport value="performed"/>
            <mustSupport value="performed.low"/>
            <mustSupport value="performed.lowClosed"/>
            <mustSupport value="performed.high"/>
            <mustSupport value="performed.highClosed"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743"/>
            </codeFilter>
            <codeFilter>
              <path value="status"/>
              <code>
                <code value="completed"/>
              </code>
            </codeFilter>
            <dateFilter>
              <path value="performed"/>
              <valuePeriod>
                <extension url="http://hl7.org/fhir/uv/crmi-analysisException">
                  <valueString
                               value="Error attempting to determine filter value: toFhirValue not implemented for Add"/>
                </extension>
              </valuePeriod>
            </dateFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Patient"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Patient"/>
            <mustSupport value="birthDate"/>
          </dataRequirement>
          <dataRequirement>
            <type value="Observation"/>
            <profile
                     value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-simple-observation"/>
            <mustSupport value="code"/>
            <mustSupport value="value"/>
            <mustSupport value="status"/>
            <mustSupport value="id"/>
            <mustSupport value="effective"/>
            <codeFilter>
              <path value="code"/>
              <code>
                <system value="http://loinc.org"/>
                <code value="72136-5"/>
                <display value="Risk for venous thromboembolism"/>
              </code>
            </codeFilter>
            <codeFilter>
              <path value="value"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.400"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Observation"/>
            <profile
                     value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-observation-lab"/>
            <mustSupport value="code"/>
            <mustSupport value="value"/>
            <mustSupport value="status"/>
            <mustSupport value="id"/>
            <mustSupport value="issued"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.213"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Resource"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Resource"/>
            <mustSupport value="id"/>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationAdministration"/>
            <profile
                     value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-medicationadministrationnotdone"/>
            <mustSupport value="medication"/>
            <mustSupport value="id"/>
            <mustSupport value="statusReason"/>
            <codeFilter>
              <path value="medication"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationAdministration"/>
            <profile
                     value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-medicationadministrationnotdone"/>
            <mustSupport value="medication"/>
            <mustSupport value="id"/>
            <mustSupport value="statusReason"/>
            <codeFilter>
              <path value="medication"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationAdministration"/>
            <profile
                     value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-medicationadministrationnotdone"/>
            <mustSupport value="medication"/>
            <mustSupport value="id"/>
            <mustSupport value="statusReason"/>
            <codeFilter>
              <path value="medication"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationAdministration"/>
            <profile
                     value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-medicationadministrationnotdone"/>
            <mustSupport value="medication"/>
            <mustSupport value="id"/>
            <mustSupport value="statusReason"/>
            <codeFilter>
              <path value="medication"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationAdministration"/>
            <profile
                     value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-medicationadministrationnotdone"/>
            <mustSupport value="medication"/>
            <mustSupport value="id"/>
            <mustSupport value="statusReason"/>
            <codeFilter>
              <path value="medication"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.50"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationRequest"/>
            <profile
                     value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-medicationnotrequested"/>
            <mustSupport value="medication"/>
            <mustSupport value="intent"/>
            <mustSupport value="status"/>
            <mustSupport value="id"/>
            <mustSupport value="reasonCode"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="medication"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationRequest"/>
            <profile
                     value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-medicationnotrequested"/>
            <mustSupport value="medication"/>
            <mustSupport value="intent"/>
            <mustSupport value="status"/>
            <mustSupport value="id"/>
            <mustSupport value="reasonCode"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="medication"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationRequest"/>
            <profile
                     value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-medicationnotrequested"/>
            <mustSupport value="medication"/>
            <mustSupport value="intent"/>
            <mustSupport value="status"/>
            <mustSupport value="id"/>
            <mustSupport value="reasonCode"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="medication"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationRequest"/>
            <profile
                     value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-medicationnotrequested"/>
            <mustSupport value="medication"/>
            <mustSupport value="intent"/>
            <mustSupport value="status"/>
            <mustSupport value="id"/>
            <mustSupport value="reasonCode"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="medication"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationRequest"/>
            <profile
                     value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-medicationnotrequested"/>
            <mustSupport value="medication"/>
            <mustSupport value="intent"/>
            <mustSupport value="status"/>
            <mustSupport value="id"/>
            <mustSupport value="reasonCode"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="medication"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.50"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationRequest"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
            <mustSupport value="medication.reference"/>
            <mustSupport value="status"/>
            <mustSupport value="id"/>
            <mustSupport value="authoredOn"/>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationRequest"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
            <mustSupport value="medication"/>
            <mustSupport value="status"/>
            <mustSupport value="id"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="medication"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationRequest"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
            <mustSupport value="medication"/>
            <mustSupport value="status"/>
            <mustSupport value="id"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="medication"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationRequest"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
            <mustSupport value="medication"/>
            <mustSupport value="status"/>
            <mustSupport value="id"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="medication"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationRequest"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
            <mustSupport value="medication"/>
            <mustSupport value="status"/>
            <mustSupport value="id"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="medication"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationRequest"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
            <mustSupport value="medication"/>
            <mustSupport value="status"/>
            <mustSupport value="id"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="medication"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.50"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Task"/>
            <profile
                     value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-taskrejected"/>
            <mustSupport value="focus"/>
            <mustSupport value="code"/>
            <mustSupport value="statusReason"/>
            <codeFilter>
              <path value="code"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="ServiceRequest"/>
            <profile
                     value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-servicenotrequested"/>
            <mustSupport value="code"/>
            <mustSupport value="intent"/>
            <mustSupport value="id"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.230"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="ServiceRequest"/>
            <profile
                     value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-servicenotrequested"/>
            <mustSupport value="code"/>
            <mustSupport value="intent"/>
            <mustSupport value="id"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.214"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="ServiceRequest"/>
            <profile
                     value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-servicenotrequested"/>
            <mustSupport value="code"/>
            <mustSupport value="intent"/>
            <mustSupport value="id"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.256"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="ServiceRequest"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
            <mustSupport value="code"/>
            <mustSupport value="intent"/>
            <mustSupport value="status"/>
            <mustSupport value="id"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.230"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="ServiceRequest"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
            <mustSupport value="code"/>
            <mustSupport value="intent"/>
            <mustSupport value="status"/>
            <mustSupport value="id"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.214"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="ServiceRequest"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
            <mustSupport value="code"/>
            <mustSupport value="intent"/>
            <mustSupport value="status"/>
            <mustSupport value="id"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.256"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="ServiceRequest"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
            <mustSupport value="code"/>
            <mustSupport value="intent"/>
            <mustSupport value="status"/>
            <mustSupport value="id"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Procedure"/>
            <profile
                     value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-procedurenotdone"/>
            <mustSupport value="code"/>
            <mustSupport value="id"/>
            <mustSupport value="statusReason"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.65"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Procedure"/>
            <profile
                     value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-procedurenotdone"/>
            <mustSupport value="code"/>
            <mustSupport value="id"/>
            <mustSupport value="statusReason"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.64"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Procedure"/>
            <profile
                     value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-procedurenotdone"/>
            <mustSupport value="code"/>
            <mustSupport value="id"/>
            <mustSupport value="statusReason"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.66"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Coverage"/>
            <profile
                     value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-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>
          <dataRequirement>
            <type value="Location"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Location"/>
          </dataRequirement>
          <dataRequirement>
            <type value="Claim"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Claim"/>
            <mustSupport value="status"/>
            <mustSupport value="use"/>
            <mustSupport value="item"/>
            <codeFilter>
              <path value="status"/>
              <code>
                <code value="active"/>
              </code>
            </codeFilter>
            <codeFilter>
              <path value="use"/>
              <code>
                <code value="claim"/>
              </code>
            </codeFilter>
          </dataRequirement>
        </Library>
      </contained>
      <extension
                 url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-supplementalDataGuidance" id="supplementalDataGuidance">
        <extension url="guidance">
          <valueString
                       value="&lt;p&gt;For every patient evaluated by this measure also identify payer, race, ethnicity and sex&lt;/p&gt;"/>
        </extension>
        <extension url="usage">
          <valueCodeableConcept>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
              <code value="supplemental-data"/>
              <display value="Supplemental Data"/>
            </coding>
            <text value="Supplemental Data Guidance"/>
          </valueCodeableConcept>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements">
        <valueCanonical value="#effective-data-requirements"/>
      </extension>
      <url value="https://madie.cms.gov/Measure/CMS108FHIRVTEProphylaxis"/>
      <identifier>
        <use value="usual"/>
        <type>
          <coding>
            <system
                    value="http://terminology.hl7.org/CodeSystem/artifact-identifier-type"/>
            <code value="short-name"/>
            <display value="Short Name"/>
          </coding>
        </type>
        <system value="https://madie.cms.gov/measure/shortName"/>
        <value value="CMS108FHIR"/>
      </identifier>
      <identifier>
        <use value="official"/>
        <type>
          <coding>
            <system
                    value="http://terminology.hl7.org/CodeSystem/artifact-identifier-type"/>
            <code value="version-independent"/>
            <display value="Version Independent"/>
          </coding>
        </type>
        <system value="urn:ietf:rfc:3986"/>
        <value value="urn:uuid:fa570e9c-c75f-4972-a77e-9488816d14af"/>
      </identifier>
      <identifier>
        <use value="official"/>
        <type>
          <coding>
            <system
                    value="http://terminology.hl7.org/CodeSystem/artifact-identifier-type"/>
            <code value="version-specific"/>
            <display value="Version Specific"/>
          </coding>
        </type>
        <system value="urn:ietf:rfc:3986"/>
        <value value="urn:uuid:b05a3fa8-ec68-4b88-a613-10274fada82e"/>
      </identifier>
      <identifier>
        <use value="official"/>
        <type>
          <coding>
            <system
                    value="http://terminology.hl7.org/CodeSystem/artifact-identifier-type"/>
            <code value="publisher"/>
            <display value="Publisher"/>
          </coding>
        </type>
        <system value="https://madie.cms.gov/measure/cmsId"/>
        <value value="108FHIR"/>
        <assigner>
          <display value="CMS"/>
        </assigner>
      </identifier>
      <version value="1.1.000"/>
      <name value="CMS108FHIRVTEProphylaxis"/>
      <title value="Venous Thromboembolism ProphylaxisFHIR
    "/>
      <status value="active"/>
      <experimental value="false"/>
      <date value="2026-01-16T18:18:12+00:00"/>
      <publisher value="The Joint Commission"/>
      <contact>
        <telecom>
          <system value="url"/>
          <value value="https://www.jointcommission.org/"/>
        </telecom>
      </contact>
      <description
                   value="This measure assesses the number of patients who received Venous Thromboembolism (VTE) prophylaxis or have documentation why no VTE prophylaxis was given between the day of arrival to the day after hospital admission or surgery end date for surgeries that end the day after hospital admission
    "/>
      <usage
             value="When low dose unfractionated heparin is administered for VTE prophylaxis, the intended administration route for low dose unfractionated heparin is subcutaneous.

    Reasons for no pharmacological and no mechanical VTE prophylaxis must be explicitly documented by the medical doctor, advanced practice registered nurse, physician assistant, or pharmacist and linked with VTE prophylaxis. The only exception is patient refusal may be documented by a nurse. Ambulation alone is not a sufficient reason for not administering VTE prophylaxis. In order for ambulation/patient ambulating to be considered as an acceptable reason, there needs to be explicit documentation, e.g., &quot;patient out of bed and ambulating in halls - no VTE prophylaxis needed.&quot;

    This measure does not require the use of a specific risk assessment model or tool (e.g., Caprini, Padua, and IMPROVE) to determine VTE risk.

    The denominator population includes patients with inpatient hospitalizations and patients from Acute Hospital Care at Home programs, who are treated and billed as inpatients but receive care in their home. Inpatient hospitalizations for patients with a principal procedure of selected surgeries are excluded from the measure's denominator. Selected surgeries include general surgery, gynecological surgery, hip fracture surgery, hip/knee replacement surgery, intracranial neurosurgery, and urological surgery.

    Inpatient hospitalizations for patients administered apixaban or edoxaban, medications included in the &quot;Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment&quot; value set, would be counted in the numerator population only when the patients also have either a prior or present diagnosis of atrial fibrillation, a prior diagnosis of VTE, or a prior or present procedure of hip/knee replacement surgery.

    This dQM is an episode-based measure. An episode is defined as each inpatient hospitalization or encounter that ends during the measurement period.

    This FHIR-based measure has been derived from the QDM-based measure: CMS108v14. Please refer to the HL7 QI-Core Implementation Guide (https://hl7.org/fhir/us/qicore/STU6/) for more information on QI-Core and mapping recommendations from QDM to QI-Core STU 6. (https://hl7.org/fhir/us/qicore/STU6/qdm-to-qicore.html)
    "/>
      <copyright
                 value="Measure specifications are in the Public Domain.

    LOINC(R) copyright 2004-2024 Regenstrief Institute, Inc. This material contains SNOMED Clinical Terms(R) (SNOMED CT\[R\]) copyright 2004-2024 International Health Terminology Standards Development Organisation. ICD-10 copyright 2024 World Health Organization. All Rights Reserved.
    "/>
      <effectivePeriod>
        <start value="2026-01-01"/>
        <end value="2026-12-31"/>
      </effectivePeriod>
      <author>
        <name value="The Joint Commission"/>
        <telecom>
          <system value="url"/>
          <value value="https://www.jointcommission.org/"/>
        </telecom>
      </author>
      <relatedArtifact>
        <type value="citation"/>
        <citation
                  value="Anderson, D. R., Morgano, G. P., Bennett, C., Dentali, F., Francis, C. W., Garcia, D. A., . . . Dahm, P. (2019). American Society of Hematology 2019 guidelines for management of venous thromboembolism: Prevention of venous thromboembolism in surgical hospitalized patients. Blood Advances, 3(23), 3898-3944. doi: 10.1182/bloodadvances.2019000975.
    "/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="citation"/>
        <citation
                  value="Cohen, A. T., Tapson, V. F., Bergmann, J. F., et al. (2008). Venous thromboembolism risk and prophylaxis in the acute hospital care setting (ENDORSE study): A multinational cross-sectional study. Lancet, 371, 387-394.
    "/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="citation"/>
        <citation
                  value="Geerts, W. H., Bergqvist, D., Pineo, G. F., et al. (2008). Prevention of venous thromboembolism: The Eighth ACCP Conference on Antithrombotic and Thrombolytic Therapy. Chest, 133, 381S-453S.
    "/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="citation"/>
        <citation
                  value="Guyatt, G. H., Akl, E. A., Crowther, M., et al. (2012). Antithrombotic therapy and prevention of thrombosis, 9th edition: American College of Chest Physicians evidence-based clinical practice guidelines. Chest, 141(2 Suppl.), 7S-47S.
    "/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="citation"/>
        <citation
                  value="Kearon, C., Akl, E. A., Comerota, A. J., et al. (2012, February). Antithrombotic therapy for VTE disease: Antithrombotic therapy and prevention of thrombosis, 9th edition: American College of Chest Physicians evidence-based clinical practice guidelines. Chest, 141(2 Suppl.), e419S-e494S.
    "/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="citation"/>
        <citation
                  value="National Quality Forum. (2006). National voluntary consensus standards for prevention and care of venous thromboembolism: Policy, preferred practices, and initial performance measures-A consensus report. Washington, DC: National Quality Forum.
    "/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="citation"/>
        <citation
                  value="Shojania, K. G., Duncan, B. W., McDonald, D. M., et al. (eds.). (2001). Making health care safer: A critical analysis of patient safety practices. Evidence Report/Technology Assessment No. 43. Rockville, MD: Agency for Healthcare Research and Quality.
    "/>
      </relatedArtifact>
      <library value="https://madie.cms.gov/Library/CMS108FHIRVTEProphylaxis"/>
      <disclaimer
                  value="These performance measures are not clinical guidelines and do not establish a standard of medical care and have not been tested for all potential applications. The measures and specifications are provided without warranty.
    "/>
      <rationale
                 value="The estimated annual incidence of deep-vein thrombosis (DVT) and pulmonary embolism (PE), known collectively as venous thromboembolism (VTE), ranges from 350,000 to 600,000 (Maynard, 2016). According to the Centers for Disease Control and Prevention (CDC) 2020 statistics, 1-2 per 1,000 adults in the United States are clinically diagnosed with VTE each year (CDC, 2020). Increased incidence is reported in the elderly (1 per 100) compared to young adults (1 per 10,000) (Henke et al., 2020).

    VTE is a known complication of hospitalization, frequently extending the length of stay and increasing hospital mortality (Maynard, 2016). Approximately 20% of VTE are associated with a surgical procedure (Henke et al., 2020). Hospitalized patients at high-risk for VTE may develop an asymptomatic DVT, and die from PE even before the diagnosis is suspected. The majority of fatal events occur as sudden or abrupt death, underscoring the importance of prevention as the most critical action step for reducing death from PE (Geerts et al., 2008).

    American Society of Hematology (ASH) 2018 VTE prophylaxis guidelines strongly recommend pharmacological prophylaxis using unfractionated heparin (UFH), low molecular weight heparin (LMWH) or fondaparinux for acutely and critically ill hospitalized medical patients, unless contraindicated. The use of mechanical prophylaxis is an acceptable alternative for patients with increased risk of bleeding and preferred over no prophylaxis. ASH 2019 guidelines for surgical patients similarly recommend pharmacological or mechanical prophylaxis over no VTE prophylaxis. (NOTE: Some select surgeries have previously been monitored in the Surgical Care Improvement Project; since performance on these surgeries has achieved very high levels, they are not included in this measure.)

    Despite its proven effectiveness, VTE prophylaxis remains underused or inappropriately used in both medical and surgical patients (Kahn et al., 2018). The ENDORSE study evaluated prophylaxis rates in 17,084 major surgery patients and found that more than one third of patients at risk for VTE (38%) did not receive prophylaxis with various rates reported for different types of surgery (Cohen et al., 2008). More recently, a systemic review of multiple randomized controlled trials found that system-wide interventions, such as computer alerts to physicians and other healthcare professionals, increased the use of appropriate VTE prophylaxis while reducing the number of symptomatic VTE at three months (Kahn et al., 2018).
    "/>
      <clinicalRecommendationStatement
                                       value="Failure to recognize and protect patients at risk for venous thromboembolism (VTE) increases the chances for acutely ill hospitalized patients at high risk for developing a deep vein thrombosis or dying from a pulmonary embolism. Screening all patients is the only evidence based practice in reducing incidence of disease. All hospitalized patients should be evaluated for primary VTE prophylaxis, and given appropriate prophylaxis when indicated.
    "/>
      <group id="Group_1">
        <extension
                   url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring">
          <valueCodeableConcept>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-scoring"/>
              <code value="proportion"/>
              <display value="Proportion"/>
            </coding>
          </valueCodeableConcept>
        </extension>
        <extension
                   url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis">
          <valueCode value="Encounter"/>
        </extension>
        <extension
                   url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-type">
          <valueCodeableConcept>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/measure-type"/>
              <code value="process"/>
              <display value="Process"/>
            </coding>
          </valueCodeableConcept>
        </extension>
        <extension
                   url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-rateAggregation">
          <valueString value="None
    "/>
        </extension>
        <extension
                   url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-improvementNotation">
          <valueCodeableConcept>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-improvement-notation"/>
              <code value="increase"/>
              <display value="Increased score indicates improvement"/>
            </coding>
          </valueCodeableConcept>
        </extension>
        <population id="InitialPopulation_1">
          <code>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-population"/>
              <code value="initial-population"/>
              <display value="Initial Population"/>
            </coding>
          </code>
          <description
                       value="Inpatient hospitalizations for patients age 18 and older, discharged from hospital inpatient acute care without a diagnosis of venous thromboembolism (VTE) or obstetrics that ends during the measurement period
    "/>
          <criteria>
            <language value="text/cql-identifier"/>
            <expression value="Initial Population"/>
          </criteria>
        </population>
        <population id="Denominator_1">
          <code>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-population"/>
              <code value="denominator"/>
              <display value="Denominator"/>
            </coding>
          </code>
          <description value="Equals Initial Population
    "/>
          <criteria>
            <language value="text/cql-identifier"/>
            <expression value="Denominator"/>
          </criteria>
        </population>
        <population id="DenominatorExclusion_1">
          <code>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-population"/>
              <code value="denominator-exclusion"/>
              <display value="Denominator Exclusion"/>
            </coding>
          </code>
          <description
                       value="* Inpatient hospitalizations for patients who have a length of stay less than 2 days
    * Inpatient hospitalizations for patients who are direct admits to intensive care unit (ICU), or transferred to ICU the day of or the day after hospital admission with ICU length of stay greater than or equal to one day
    * Inpatient hospitalizations for patients with a principal diagnosis of mental disorders or stroke
    * Inpatient hospitalizations for patients with a principal procedure of selected surgeries
    * Inpatient hospitalizations for patients with comfort measures documented anytime between the day of arrival and the day after hospital admission
    * Inpatient hospitalizations for patients with comfort measures documented by the day after surgery end date for surgeries that end the day after hospital admission
    "/>
          <criteria>
            <language value="text/cql-identifier"/>
            <expression value="Denominator Exclusions"/>
          </criteria>
        </population>
        <population id="Numerator_1">
          <code>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-population"/>
              <code value="numerator"/>
              <display value="Numerator"/>
            </coding>
          </code>
          <description
                       value="Inpatient hospitalizations for patients who received VTE prophylaxis:

    * between the day of arrival and the day after hospital admission
    * the day of or the day after surgery end date (for surgeries that end the day after hospital admission)

    Inpatient hospitalizations for patients who have documentation of a reason why no VTE prophylaxis was given:

    * between the day of arrival and the day after hospital admission
    * the day of or the day after surgery end date (for surgeries that end the day after hospital admission)
    "/>
          <criteria>
            <language value="text/cql-identifier"/>
            <expression value="Numerator"/>
          </criteria>
        </population>
      </group>
      <supplementalData id="sde-ethnicity">
        <usage>
          <coding>
            <system
                    value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
            <code value="supplemental-data"/>
          </coding>
        </usage>
        <description value="SDE Ethnicity
    "/>
        <criteria>
          <language value="text/cql-identifier"/>
          <expression value="SDE Ethnicity"/>
        </criteria>
      </supplementalData>
      <supplementalData id="sde-race">
        <usage>
          <coding>
            <system
                    value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
            <code value="supplemental-data"/>
          </coding>
        </usage>
        <description value="SDE Race
    "/>
        <criteria>
          <language value="text/cql-identifier"/>
          <expression value="SDE Race"/>
        </criteria>
      </supplementalData>
      <supplementalData id="sde-sex">
        <usage>
          <coding>
            <system
                    value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
            <code value="supplemental-data"/>
          </coding>
        </usage>
        <description value="SDE Sex
    "/>
        <criteria>
          <language value="text/cql-identifier"/>
          <expression value="SDE Sex"/>
        </criteria>
      </supplementalData>
      <supplementalData id="sde-payer">
        <usage>
          <coding>
            <system
                    value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
            <code value="supplemental-data"/>
          </coding>
        </usage>
        <description value="SDE Payer
    "/>
        <criteria>
          <language value="text/cql-identifier"/>
          <expression value="SDE Payer"/>
        </criteria>
      </supplementalData>
    </Measure>