Quality Measure Implementation Guide
1.0.0 - STU 1

Quality Measure Implementation Guide - Downloaded Version null See the Directory of published versions

## : Preventive Care and Screening: Screening for High Blood Pressure and Follow-Up Documented - XML Representation

Page standards status: Informative

Raw xml | Download

    <Measure xmlns="http://hl7.org/fhir">
      <id value="HBPComponent"/>
      <meta>
        <profile
                 value="http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-publishablemeasure"/>
        <profile
                 value="http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-computablemeasure"/>
        <profile
                 value="http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-proportionmeasure"/>
      </meta>
      <language value="en"/>
      <text>
        <status value="extensions"/>
        <div xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
      <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">Preventive Care and Screening: Screening for High Blood Pressure and Follow-Up Documented</td>
    </tr>

    <tr>

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

    <td class="content-container">0.0.001</td>
    </tr>

    <tr>

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

    <td class="content-container">High Blood Pressure Screening</td>
    </tr>

    <tr>

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

    <td class="content-container">http://example.org/fhir/us/cqm/Measure/HBPComponent</td>
    </tr>

    <tr>

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

    <td class="content-container">http://example.org/fhir/us/cqm/Measure/22v11</td>
    </tr>

    <tr>

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

    <td class="content-container">urn:oid:2.16.840.1.113883.4.642.40.61.29.11</td>
    </tr>

    <tr>

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

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

    <tr>

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

    <td class="content-container">true</td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Use Context</th>

    <td class="content-container"><span title="{http://terminology.hl7.org/CodeSystem/usage-context-type venue}">Clinical Venue</span> = <span title="Codes:{http://hl7.org/fhir/uv/cqm/CodeSystem/intended-venue-codes ec}">EC</span></td>
    </tr>

    <tr>

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

    <td class="content-container"><span title="Codes:{http://unstats.un.org/unsd/methods/m49/m49.htm 001}">Global (Whole world)</span></td>
    </tr>

    <tr>

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

    <td class="content-container">HL7 International / Clinical Quality Information</td>
    </tr>

    <tr>

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

    <td class="content-container"><div><p>This is an example only.</p>
    </div></td>
    </tr>

    <tr>

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

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

    <tr>

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

    <td class="content-container"><span title="Codes:{http://terminology.hl7.org/CodeSystem/measure-scoring proportion}">Proportion</span></td>
    </tr>

    <tr>

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

    <td class="content-container"><span title="Codes:{http://terminology.hl7.org/CodeSystem/measure-type process}">Process</span></td>
    </tr>

    <tr>

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

    <td class="content-container"><span title="Codes:{http://terminology.hl7.org/CodeSystem/measure-improvement-notation increase}">Increased score indicates improvement</span></td>
    </tr>

        <tr>

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

    </tr>

        <tr>

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

          <td class="content-container">

            <em>ID</em>: primary-hbpcomponent-initial-population
            <br/>

              <em>Description</em>: No description provided

                  <em>Criteria</em>: <a href="#primary-primary-hbpcomponent-initial-population">Initial Population</a>

          </td>
        </tr>

        <tr>

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

          <td class="content-container">

            <em>ID</em>: primary-hbpcomponent-denominator
            <br/>

              <em>Description</em>: No description provided

                  <em>Criteria</em>: <a href="#primary-primary-hbpcomponent-denominator">Denominator</a>

          </td>
        </tr>

        <tr>

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

          <td class="content-container">

            <em>ID</em>: primary-hbpcomponent-denominator-exclusion
            <br/>

              <em>Description</em>: No description provided

                  <em>Criteria</em>: <a href="#primary-primary-hbpcomponent-denominator-exclusion">Denominator Exclusions</a>

          </td>
        </tr>

        <tr>

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

          <td class="content-container">

            <em>ID</em>: primary-hbpcomponent-denominator-exception
            <br/>

              <em>Description</em>: No description provided

                  <em>Criteria</em>: <a href="#primary-primary-hbpcomponent-denominator-exception">Denominator Exceptions</a>

          </td>
        </tr>

        <tr>

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

          <td class="content-container">

            <em>ID</em>: primary-hbpcomponent-numerator
            <br/>

              <em>Description</em>: No description provided

                  <em>Criteria</em>: <a href="#primary-primary-hbpcomponent-numerator">Numerator</a>

          </td>
        </tr>

    <tr>

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

    <td class="content-container"><div><p>This guidance provides instructions on how to collect and report supplemental data elements for this measure.</p>
    </div></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>: cd02ebb6-a0bf-4196-90f9-80f2a8a79bbf

          <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>: No description provided

            <br/>

              <em>Logic Definition</em>: <a href="#hbpcomponent-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>: a67a3fc7-cedd-4d78-b7b0-4718fa7f3e2b

          <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>: No description provided

            <br/>

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

      </td>
    </tr>

    <tr>

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

      <td class="content-container">

          <em>ID</em>: 3dc8840d-cc30-44af-a233-3b2b6c602060

          <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>: No description provided

            <br/>

              <em>Logic Definition</em>: <a href="#hbpcomponent-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>: 5a4e95aa-f8b3-400f-89b3-02555a361251

          <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>: No description provided

            <br/>

              <em>Logic Definition</em>: <a href="#hbpcomponent-sde-sex">SDE Sex</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-HBPComponent.html">HBP Component Library</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/>
      </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: primary)</th>

    </tr>

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

        Initial Population

      </th>
    </tr>
    <tr>

      <td>

          <a name="primary-primary-hbpcomponent-initial-population"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Initial Population&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       with [Patient] BirthDate         such that Global.&quot;CalendarAgeInYearsAt&quot; ( FHIRHelpers.ToDate ( BirthDate.birthDate ), start of &quot;Measurement Period&quot; ) &gt;= 18</code></pre>

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

      </td>

    </tr>

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

        Denominator

      </th>
    </tr>
    <tr>

      <td>

          <a name="primary-primary-hbpcomponent-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>

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

      </td>

    </tr>

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

        Denominator Exclusion

      </th>
    </tr>
    <tr>

      <td>

          <a name="primary-primary-hbpcomponent-denominator-exclusion"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Denominator Exclusions&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       with [Condition: &quot;Diagnosis of Hypertension&quot;] Hypertension         such that Global.&quot;Prevalence Period&quot; ( Hypertension ) overlaps before QualifyingEncounter.period</code></pre>

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

      </td>

    </tr>

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

        Denominator Exception

      </th>
    </tr>
    <tr>

      <td>

          <a name="primary-primary-hbpcomponent-denominator-exception"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Denominator Exceptions&quot;:   &quot;Encounter with Medical Reason for Not Obtaining or Patient Declined Blood Pressure Measurement&quot;       union &quot;Encounter with Order for Hypertension Follow Up Declined by Patient&quot;</code></pre>

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

      </td>

    </tr>

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

        Numerator

      </th>
    </tr>
    <tr>

      <td>

          <a name="primary-primary-hbpcomponent-numerator"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Numerator&quot;:   &quot;Encounter with Normal Blood Pressure Reading&quot;       union ( &quot;Encounter with Prehypertensive Blood Pressure Reading&quot;           intersect ( ( &quot;Encounter with Order for Intervention for Hypertension&quot;                 intersect &quot;Encounter with Order for Follow Up Within One Year&quot;             )               union &quot;Encounter with Referral to Alternate Provider for High Blood Pressure Reading&quot;           )       )       union ( &quot;Encounter with First Hypertensive Reading&quot;           intersect ( ( &quot;Encounter with Order for Intervention for Hypertension&quot;                 intersect &quot;Encounter with Order for Follow Up Within 4 Weeks&quot;             )               union &quot;Encounter with Referral to Alternate Provider for High Blood Pressure Reading&quot;           )       )       union ( &quot;Encounter with Second Hypertensive Reading&quot;           intersect ( ( &quot;Encounter with Order for Intervention for Hypertension&quot;                 intersect ( &quot;Encounter with Order for Laboratory Test for Hypertension&quot;                     union &quot;Encounter with Order for Electrocardiogram for Hypertension&quot;                     union &quot;Encounter with Order for Hypertension Medication&quot;                 )             )               union &quot;Encounter with Referral to Alternate Provider for High Blood Pressure Reading&quot;           )       )</code></pre>

          <a href="#hbpcomponent-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.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }       when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }       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;:   [Coverage: type in &quot;Payer&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;:   (flatten (       Patient.extension Extension         where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'           return Extension.extension     )) E       where E.url = 'ombCategory'         or E.url = 'detailed'       return E.value as Coding</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;:   (flatten (       Patient.extension Extension         where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'           return Extension.extension     )) E       where E.url = 'ombCategory'         or E.url = 'detailed'       return E.value as Coding</code></pre>
      </td>

    </tr>

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

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

    </tr>
    <tr>

      <td>

          <a name="matglobalcommonfunctions-calendarageinyearsat"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function &quot;CalendarAgeInYearsAt&quot;(BirthDateTime DateTime, AsOf DateTime):  years between ToDate(BirthDateTime)and ToDate(AsOf)</code></pre>
      </td>

    </tr>

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

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

    </tr>
    <tr>

      <td>

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

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function &quot;ToDate&quot;(Value DateTime):  DateTime(year from Value, month from Value, day from Value, 0, 0, 0, 0, timezoneoffset from 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> MATGlobalCommonFunctions</td>

    </tr>
    <tr>

      <td>

          <a name="matglobalcommonfunctions-prevalence-period"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function &quot;Prevalence Period&quot;(condition Condition):   Interval[start of &quot;Normalize Interval&quot;(condition.onset), end of &quot;Normalize Abatement&quot;(condition))</code></pre>
      </td>

    </tr>

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

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

    </tr>
    <tr>

      <td>

          <a name="matglobalcommonfunctions-normalize-abatement"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function &quot;Normalize Abatement&quot;(condition Condition):  if condition.abatement is FHIR.dateTime then    Interval[FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime), FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime)]  else if condition.abatement is FHIR.Period then    FHIRHelpers.ToInterval(condition.abatement as FHIR.Period)  else if condition.abatement is FHIR.string then     Message(null as Interval&lt;DateTime&gt;, true, '1', 'Error', 'Cannot compute an interval from a String value')  else if condition.abatement is FHIR.Age then   Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age),    FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age) + 1 year)  else if condition.abatement is FHIR.Range then    Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).low),     FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).high) + 1 year)  else if condition.abatement is FHIR.boolean then    Interval[end of &quot;Normalize Interval&quot;(condition.onset), condition.recordedDate)  else null</code></pre>
      </td>

    </tr>

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

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

    </tr>
    <tr>

      <td>

          <a name="hbpcomponent-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> HBPComponent</td>

    </tr>
    <tr>

      <td>

          <a name="hbpcomponent-qualifying-encounter-during-measurement-period"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Qualifying Encounter During Measurement Period&quot;:   [Encounter: &quot;Encounter to Screen for Blood Pressure&quot;] ValidEncounter       where ValidEncounter.period during &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> HBPComponent</td>

    </tr>
    <tr>

      <td>

          <a name="hbpcomponent-encounter-with-normal-blood-pressure-reading"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter with Normal Blood Pressure Reading&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       let EncounterLastSystolicBP: Last([Observation: &quot;Systolic blood pressure&quot;] SystolicBP           where SystolicBP.effective during QualifyingEncounter.period           sort by effective       ),       EncounterLastDiastolicBP: Last([Observation: &quot;Diastolic blood pressure&quot;] DiastolicBP           where DiastolicBP.effective during QualifyingEncounter.period           sort by effective       )       where EncounterLastSystolicBP.value included in Interval[1 'mm[Hg]', 120 'mm[Hg]' )         and EncounterLastDiastolicBP.value included in Interval[1 'mm[Hg]', 80 'mm[Hg]' )</code></pre>
      </td>

    </tr>

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

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

    </tr>
    <tr>

      <td>

          <a name="hbpcomponent-encounter-with-prehypertensive-blood-pressure-reading"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter with Prehypertensive Blood Pressure Reading&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       let EncounterLastSystolicBP: Last([Observation: &quot;Systolic blood pressure&quot;] SystolicBP           where SystolicBP.effective during QualifyingEncounter.period           sort by effective       ),       EncounterLastDiastolicBP: Last([Observation: &quot;Diastolic blood pressure&quot;] DiastolicBP           where DiastolicBP.effective during QualifyingEncounter.period           sort by effective       )       where EncounterLastSystolicBP.value included in Interval[1 'mm[Hg]', 140 'mm[Hg]' )         and EncounterLastDiastolicBP.value included in Interval[1 'mm[Hg]', 90 'mm[Hg]' )         and ( EncounterLastSystolicBP.value &gt;= 120 'mm[Hg]'             or EncounterLastDiastolicBP.value &gt;= 80 'mm[Hg]'         )</code></pre>
      </td>

    </tr>

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

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

    </tr>
    <tr>

      <td>

          <a name="hbpcomponent-encounter-with-order-for-intervention-for-hypertension"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter with Order for Intervention for Hypertension&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       with ( [ServiceRequest: &quot;Lifestyle Recommendation&quot;]         union [ServiceRequest: &quot;Weight Reduction Recommended&quot;]         union [ServiceRequest: &quot;Dietary Recommendations&quot;]         union [ServiceRequest: &quot;Recommendation to Increase Physical Activity&quot;]         union [ServiceRequest: &quot;Referral or Counseling for Alcohol Consumption&quot;] ) HighBloodPressureIntervention         such that HighBloodPressureIntervention.authoredOn same day as 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> HBPComponent</td>

    </tr>
    <tr>

      <td>

          <a name="hbpcomponent-encounter-with-order-for-follow-up-within-one-year"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter with Order for Follow Up Within One Year&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       with [ServiceRequest: &quot;Follow Up Within One Year&quot;] FollowupOneYear         such that FollowupOneYear.authoredOn same day as 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> HBPComponent</td>

    </tr>
    <tr>

      <td>

          <a name="hbpcomponent-encounter-with-referral-to-alternate-provider-for-high-blood-pressure-reading"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter with Referral to Alternate Provider for High Blood Pressure Reading&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       with [ServiceRequest: &quot;Referral to Primary Care or Alternate Provider&quot;] Referral         such that Referral.authoredOn same day as start of QualifyingEncounter.period           and Referral.reasonCode in &quot;Finding of Elevated Blood Pressure or Hypertension&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> HBPComponent</td>

    </tr>
    <tr>

      <td>

          <a name="hbpcomponent-encounter-with-high-blood-pressure-reading"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter with High Blood Pressure Reading&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       let EncounterLastSystolicBP: Last([Observation: &quot;Systolic blood pressure&quot;] SystolicBP           where SystolicBP.effective during QualifyingEncounter.period           sort by effective       ),       EncounterLastDiastolicBP: Last([Observation: &quot;Diastolic blood pressure&quot;] DiastolicBP           where DiastolicBP.effective during QualifyingEncounter.period           sort by effective       )       where EncounterLastSystolicBP.value &gt; 0 'mm[Hg]'         and EncounterLastDiastolicBP.value &gt; 0 'mm[Hg]'         and ( EncounterLastSystolicBP.value &gt;= 140 'mm[Hg]'             or EncounterLastDiastolicBP.value &gt;= 90 'mm[Hg]'         )</code></pre>
      </td>

    </tr>

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

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

    </tr>
    <tr>

      <td>

          <a name="hbpcomponent-encounter-with-high-blood-pressure-reading-within-year-prior"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter with High Blood Pressure Reading Within Year Prior&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       let EncounterLastSystolicBP: Last([Observation: &quot;Systolic blood pressure&quot;] SystolicBP           where SystolicBP.effective 1 year or less before start of QualifyingEncounter.period           sort by effective       ),       EncounterLastDiastolicBP: Last([Observation: &quot;Diastolic blood pressure&quot;] DiastolicBP           where DiastolicBP.effective 1 year or less before start of QualifyingEncounter.period           sort by effective       )       where EncounterLastSystolicBP.value &gt; 0 'mm[Hg]'         and EncounterLastDiastolicBP.value &gt; 0 'mm[Hg]'         and ( EncounterLastSystolicBP.value &gt;= 140 'mm[Hg]'             or EncounterLastDiastolicBP.value &gt;= 90 'mm[Hg]'         )</code></pre>
      </td>

    </tr>

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

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

    </tr>
    <tr>

      <td>

          <a name="hbpcomponent-encounter-with-first-hypertensive-reading"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter with First Hypertensive Reading&quot;:   &quot;Encounter with High Blood Pressure Reading&quot;       except &quot;Encounter with High Blood Pressure Reading Within Year Prior&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> HBPComponent</td>

    </tr>
    <tr>

      <td>

          <a name="hbpcomponent-encounter-with-order-for-follow-up-within-4-weeks"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter with Order for Follow Up Within 4 Weeks&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       with [ServiceRequest: &quot;Follow Up Within 4 Weeks&quot;] Followup4Weeks         such that Followup4Weeks.authoredOn same day as 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> HBPComponent</td>

    </tr>
    <tr>

      <td>

          <a name="hbpcomponent-encounter-with-second-hypertensive-reading"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter with Second Hypertensive Reading&quot;:   &quot;Encounter with High Blood Pressure Reading&quot;       intersect &quot;Encounter with High Blood Pressure Reading Within Year Prior&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> HBPComponent</td>

    </tr>
    <tr>

      <td>

          <a name="hbpcomponent-encounter-with-order-for-laboratory-test-for-hypertension"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter with Order for Laboratory Test for Hypertension&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       with [ServiceRequest: &quot;Laboratory Tests for Hypertension&quot;] HypertensionLabs         such that HypertensionLabs.authoredOn same day as 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> HBPComponent</td>

    </tr>
    <tr>

      <td>

          <a name="hbpcomponent-encounter-with-order-for-electrocardiogram-for-hypertension"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter with Order for Electrocardiogram for Hypertension&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       with ( [ServiceRequest: &quot;12 lead EKG panel&quot;]         union [ServiceRequest: &quot;EKG study&quot;] ) ECG         such that ECG.authoredOn same day as 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> HBPComponent</td>

    </tr>
    <tr>

      <td>

          <a name="hbpcomponent-encounter-with-order-for-hypertension-medication"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter with Order for Hypertension Medication&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       with [MedicationRequest: &quot;Pharmacologic Therapy for Hypertension&quot;] AntihypertensiveMedication         such that AntihypertensiveMedication.authoredOn same day as 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> HBPComponent</td>

    </tr>
    <tr>

      <td>

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

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Numerator&quot;:   &quot;Encounter with Normal Blood Pressure Reading&quot;       union ( &quot;Encounter with Prehypertensive Blood Pressure Reading&quot;           intersect ( ( &quot;Encounter with Order for Intervention for Hypertension&quot;                 intersect &quot;Encounter with Order for Follow Up Within One Year&quot;             )               union &quot;Encounter with Referral to Alternate Provider for High Blood Pressure Reading&quot;           )       )       union ( &quot;Encounter with First Hypertensive Reading&quot;           intersect ( ( &quot;Encounter with Order for Intervention for Hypertension&quot;                 intersect &quot;Encounter with Order for Follow Up Within 4 Weeks&quot;             )               union &quot;Encounter with Referral to Alternate Provider for High Blood Pressure Reading&quot;           )       )       union ( &quot;Encounter with Second Hypertensive Reading&quot;           intersect ( ( &quot;Encounter with Order for Intervention for Hypertension&quot;                 intersect ( &quot;Encounter with Order for Laboratory Test for Hypertension&quot;                     union &quot;Encounter with Order for Electrocardiogram for Hypertension&quot;                     union &quot;Encounter with Order for Hypertension Medication&quot;                 )             )               union &quot;Encounter with Referral to Alternate Provider for High Blood Pressure Reading&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> HBPComponent</td>

    </tr>
    <tr>

      <td>

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

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Initial Population&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       with [Patient] BirthDate         such that Global.&quot;CalendarAgeInYearsAt&quot; ( FHIRHelpers.ToDate ( BirthDate.birthDate ), start of &quot;Measurement Period&quot; ) &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> HBPComponent</td>

    </tr>
    <tr>

      <td>

          <a name="hbpcomponent-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> HBPComponent</td>

    </tr>
    <tr>

      <td>

          <a name="hbpcomponent-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> HBPComponent</td>

    </tr>
    <tr>

      <td>

          <a name="hbpcomponent-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> HBPComponent</td>

    </tr>
    <tr>

      <td>

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

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Denominator Exclusions&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       with [Condition: &quot;Diagnosis of Hypertension&quot;] Hypertension         such that Global.&quot;Prevalence Period&quot; ( Hypertension ) overlaps before 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> HBPComponent</td>

    </tr>
    <tr>

      <td>

          <a name="hbpcomponent-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> HBPComponent</td>

    </tr>
    <tr>

      <td>

          <a name="hbpcomponent-encounter-with-medical-reason-for-not-obtaining-or-patient-declined-blood-pressure-measurement"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter with Medical Reason for Not Obtaining or Patient Declined Blood Pressure Measurement&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       with ( [Observation: &quot;Systolic blood pressure&quot;]         union [Observation: &quot;Diastolic blood pressure&quot;] ) NoBPScreen         such that ( NoBPScreen.code in &quot;Medical Reason&quot;             or NoBPScreen.code in &quot;Patient Declined&quot;         )           and NoBPScreen.effective same day as start of QualifyingEncounter.period           and &quot;Not Done&quot;(NoBPScreen)           and NoBPScreen.status = 'final'</code></pre>
      </td>

    </tr>

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

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

    </tr>
    <tr>

      <td>

          <a name="hbpcomponent-encounter-with-order-for-hypertension-follow-up-declined-by-patient"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter with Order for Hypertension Follow Up Declined by Patient&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       with ( [ServiceRequest: &quot;12 lead EKG panel&quot;]         union [ServiceRequest: &quot;EKG study&quot;]         union [ServiceRequest: &quot;Follow Up Within One Year&quot;]         union [ServiceRequest: &quot;Follow Up Within 4 Weeks&quot;]         union [ServiceRequest: &quot;Referral to Primary Care or Alternate Provider&quot;]         union [ServiceRequest: &quot;Lifestyle Recommendation&quot;]         union [ServiceRequest: &quot;Weight Reduction Recommended&quot;]         union [ServiceRequest: &quot;Dietary Recommendations&quot;]         union [ServiceRequest: &quot;Recommendation to Increase Physical Activity&quot;]         union [ServiceRequest: &quot;Referral or Counseling for Alcohol Consumption&quot;]         union [ServiceRequest: &quot;Laboratory Tests for Hypertension&quot;]         union [MedicationRequest: &quot;Pharmacologic Therapy for Hypertension&quot;] ) NoFollowUpOrdered         such that NoFollowUpOrdered.doNotPerform is true           and NoFollowUpOrdered.code in &quot;Patient Declined&quot;           and NoFollowUpOrdered.authoredOn same day as 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> HBPComponent</td>

    </tr>
    <tr>

      <td>

          <a name="hbpcomponent-denominator-exceptions"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Denominator Exceptions&quot;:   &quot;Encounter with Medical Reason for Not Obtaining or Patient Declined Blood Pressure Measurement&quot;       union &quot;Encounter with Order for Hypertension Follow Up Declined by Patient&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> HBPComponent</td>

    </tr>
    <tr>

      <td>

          <a name="hbpcomponent-not-done"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function &quot;Not Done&quot;(res DomainResource ):   if ( res R       where ( &quot;GetModiferExtension&quot;(R, 'http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDone').value = true )   ) is not null then true     else false</code></pre>
      </td>

    </tr>

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

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

    </tr>
    <tr>

      <td>

          <a name="hbpcomponent-getmodiferextension"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function &quot;GetModiferExtension&quot;(res DomainResource, url String ):   singleton from &quot;GetModifierExtensions&quot;(res, 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> HBPComponent</td>

    </tr>
    <tr>

      <td>

          <a name="hbpcomponent-getmodifierextensions"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function &quot;GetModifierExtensions&quot;(res DomainResource, url String ):   res.modifierExtension 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> 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 AdministrativeGender): 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-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-tointerval"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/* @description: Converts the given FHIR [Range](https://hl7.org/fhir/datatypes.html#Range) value to a CQL Interval of Quantity */ define function ToInterval(range FHIR.Range):     if range is null then         null     else         Interval[ToQuantity(range.low), ToQuantity(range.high)]</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-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-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-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 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-toboolean"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToBoolean(value boolean): 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 ObservationStatus): value.value</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 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">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Encounter to Screen for Blood Pressure

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.600.1920/expansion">Encounter to Screen for Blood Pressure</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1920</tt>

      </td>
    </tr>

    <tr>

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

      <td class="content-container">

        <em>Description</em>: Value set Lifestyle Recommendation

        <br/>

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

      </td>
    </tr>

    <tr>

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

      <td class="content-container">

        <em>Description</em>: Value set Weight Reduction Recommended

        <br/>

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

      </td>
    </tr>

    <tr>

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

      <td class="content-container">

        <em>Description</em>: Value set Dietary Recommendations

        <br/>

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

      </td>
    </tr>

    <tr>

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

      <td class="content-container">

        <em>Description</em>: Value set Recommendation to Increase Physical Activity

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.600.1518/expansion">Recommendation to Increase Physical Activity</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1518</tt>

      </td>
    </tr>

    <tr>

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

      <td class="content-container">

        <em>Description</em>: Value set Referral or Counseling for Alcohol Consumption

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1583/expansion">Referral or Counseling for Alcohol Consumption</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1583</tt>

      </td>
    </tr>

    <tr>

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

      <td class="content-container">

        <em>Description</em>: Value set Follow Up Within One Year

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1579/expansion">Follow Up Within One Year</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1579</tt>

      </td>
    </tr>

    <tr>

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

      <td class="content-container">

        <em>Description</em>: Value set Referral to Primary Care or Alternate Provider

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1580/expansion">Referral to Primary Care or Alternate Provider</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1580</tt>

      </td>
    </tr>

    <tr>

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

      <td class="content-container">

        <em>Description</em>: Value set Finding of Elevated Blood Pressure or Hypertension

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1047.514/expansion">Finding of Elevated Blood Pressure or Hypertension</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1047.514</tt>

      </td>
    </tr>

    <tr>

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

      <td class="content-container">

        <em>Description</em>: Value set Follow Up Within 4 Weeks

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1578/expansion">Follow Up Within 4 Weeks</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1578</tt>

      </td>
    </tr>

    <tr>

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

      <td class="content-container">

        <em>Description</em>: Value set Laboratory Tests for Hypertension

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.600.1482/expansion">Laboratory Tests for Hypertension</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1482</tt>

      </td>
    </tr>

    <tr>

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

      <td class="content-container">

        <em>Description</em>: Value set Pharmacologic Therapy for Hypertension

        <br/>

        <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.1577/expansion">Pharmacologic Therapy for Hypertension</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.1577</tt>

      </td>
    </tr>

    <tr>

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

      <td class="content-container">

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

        <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 Diagnosis of Hypertension

        <br/>

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

      </td>
    </tr>

    <tr>

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

      <td class="content-container">

        <em>Description</em>: Value set Medical Reason

        <br/>

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

      </td>
    </tr>

    <tr>

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

      <td class="content-container">

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

        <br/>

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

      </td>
    </tr>

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

            <em>Display</em>: Systolic blood pressure
            <br/>

          <em>Code</em>: 8480-6
          <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>: Diastolic blood pressure
            <br/>

          <em>Code</em>: 8462-4
          <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>: 12 lead EKG panel
            <br/>

          <em>Code</em>: 34534-8
          <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>: EKG study
            <br/>

          <em>Code</em>: 11524-6
          <br/>
          <em>System</em>: <tt>http://loinc.org</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>: Library SDE

        <br/>

        <em>Resource</em>: <a href="Library-SupplementalDataElements.html">Supplemental Data Elementsversion: null2.0.000)</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cqm/Library/SupplementalDataElements|2.0.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 Global

        <br/>

        <em>Resource</em>: <a href="Library-MATGlobalCommonFunctions.html">MAT Global Common Functions FHIR Libraryversion: null5.0.000)</a>
        <br/>
        <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cqm/Library/MATGlobalCommonFunctions|5.0.000</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>:

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

        <em>Must Support Elements</em>: birthDate, url, extension, value
        <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, 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.113883.3.600.1920/expansion">Encounter to Screen for Blood Pressure</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>:

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

        <em>Must Support Elements</em>: code, effective, status, value
        <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/8480-6">LOINC 8480-6</a>: Systolic blood pressure

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

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

        <em>Must Support Elements</em>: code, effective, status, value
        <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/8462-4">LOINC 8462-4</a>: Diastolic blood pressure

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

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

        <em>Must Support Elements</em>: code, authoredOn
        <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/34534-8">LOINC 34534-8</a>: 12 lead EKG panel

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

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

        <em>Must Support Elements</em>: code, authoredOn
        <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/11524-6">LOINC 11524-6</a>: EKG study

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

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

        <em>Must Support Elements</em>: code, 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.526.3.1579/expansion">Follow Up Within One Year</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, 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.526.3.1578/expansion">Follow Up Within 4 Weeks</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, authoredOn, reasonCode
        <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.526.3.1580/expansion">Referral to Primary Care or Alternate Provider</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, 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.526.3.1581/expansion">Lifestyle Recommendation</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, 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.600.1510/expansion">Weight Reduction Recommended</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, 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.600.1515/expansion">Dietary Recommendations</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, 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.600.1518/expansion">Recommendation to Increase Physical Activity</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, 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.526.3.1583/expansion">Referral or Counseling for Alcohol Consumption</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, 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.600.1482/expansion">Laboratory Tests for Hypertension</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, 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.526.1577/expansion">Pharmacologic Therapy for Hypertension</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, authoredOn
        <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/>

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

        <a href="http://hl7.org/fhir/R4/coverage.html">Coverage</a>
        <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>: Condition
        <br/>

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

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

        <em>Must Support Elements</em>: 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.600.263/expansion">Diagnosis of Hypertension</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th colspan="2" scope="row" class="row-header">Generated using version 0.4.9 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://loinc.org"/>
              <code value="8480-6"/>
              <display value="Systolic blood pressure"/>
            </valueCoding>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
              <system value="http://loinc.org"/>
              <code value="8462-4"/>
              <display value="Diastolic blood pressure"/>
            </valueCoding>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
              <system value="http://loinc.org"/>
              <code value="34534-8"/>
              <display value="12 lead EKG panel"/>
            </valueCoding>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
              <system value="http://loinc.org"/>
              <code value="11524-6"/>
              <display value="EKG study"/>
            </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.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }       when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }       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="HBPComponent"/>
            </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="HBPComponent"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Qualifying Encounter During Measurement Period"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Qualifying Encounter During Measurement Period&quot;:   [Encounter: &quot;Encounter to Screen for Blood Pressure&quot;] ValidEncounter       where ValidEncounter.period during &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="HBPComponent"/>
            </extension>
            <extension url="name">
              <valueString value="Encounter with Normal Blood Pressure Reading"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter with Normal Blood Pressure Reading&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       let EncounterLastSystolicBP: Last([Observation: &quot;Systolic blood pressure&quot;] SystolicBP           where SystolicBP.effective during QualifyingEncounter.period           sort by effective       ),       EncounterLastDiastolicBP: Last([Observation: &quot;Diastolic blood pressure&quot;] DiastolicBP           where DiastolicBP.effective during QualifyingEncounter.period           sort by effective       )       where EncounterLastSystolicBP.value included in Interval[1 'mm[Hg]', 120 'mm[Hg]' )         and EncounterLastDiastolicBP.value included in Interval[1 'mm[Hg]', 80 'mm[Hg]' )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="3"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="HBPComponent"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Encounter with Prehypertensive Blood Pressure Reading"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter with Prehypertensive Blood Pressure Reading&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       let EncounterLastSystolicBP: Last([Observation: &quot;Systolic blood pressure&quot;] SystolicBP           where SystolicBP.effective during QualifyingEncounter.period           sort by effective       ),       EncounterLastDiastolicBP: Last([Observation: &quot;Diastolic blood pressure&quot;] DiastolicBP           where DiastolicBP.effective during QualifyingEncounter.period           sort by effective       )       where EncounterLastSystolicBP.value included in Interval[1 'mm[Hg]', 140 'mm[Hg]' )         and EncounterLastDiastolicBP.value included in Interval[1 'mm[Hg]', 90 'mm[Hg]' )         and ( EncounterLastSystolicBP.value &gt;= 120 'mm[Hg]'             or EncounterLastDiastolicBP.value &gt;= 80 'mm[Hg]'         )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="4"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="HBPComponent"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Encounter with Order for Intervention for Hypertension"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter with Order for Intervention for Hypertension&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       with ( [ServiceRequest: &quot;Lifestyle Recommendation&quot;]         union [ServiceRequest: &quot;Weight Reduction Recommended&quot;]         union [ServiceRequest: &quot;Dietary Recommendations&quot;]         union [ServiceRequest: &quot;Recommendation to Increase Physical Activity&quot;]         union [ServiceRequest: &quot;Referral or Counseling for Alcohol Consumption&quot;] ) HighBloodPressureIntervention         such that HighBloodPressureIntervention.authoredOn same day as start of QualifyingEncounter.period"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="5"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="HBPComponent"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Encounter with Order for Follow Up Within One Year"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter with Order for Follow Up Within One Year&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       with [ServiceRequest: &quot;Follow Up Within One Year&quot;] FollowupOneYear         such that FollowupOneYear.authoredOn same day as start of QualifyingEncounter.period"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="6"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="HBPComponent"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Encounter with Referral to Alternate Provider for High Blood Pressure Reading"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter with Referral to Alternate Provider for High Blood Pressure Reading&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       with [ServiceRequest: &quot;Referral to Primary Care or Alternate Provider&quot;] Referral         such that Referral.authoredOn same day as start of QualifyingEncounter.period           and Referral.reasonCode in &quot;Finding of Elevated Blood Pressure or Hypertension&quot;"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="7"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="HBPComponent"/>
            </extension>
            <extension url="name">
              <valueString value="Encounter with High Blood Pressure Reading"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter with High Blood Pressure Reading&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       let EncounterLastSystolicBP: Last([Observation: &quot;Systolic blood pressure&quot;] SystolicBP           where SystolicBP.effective during QualifyingEncounter.period           sort by effective       ),       EncounterLastDiastolicBP: Last([Observation: &quot;Diastolic blood pressure&quot;] DiastolicBP           where DiastolicBP.effective during QualifyingEncounter.period           sort by effective       )       where EncounterLastSystolicBP.value &gt; 0 'mm[Hg]'         and EncounterLastDiastolicBP.value &gt; 0 'mm[Hg]'         and ( EncounterLastSystolicBP.value &gt;= 140 'mm[Hg]'             or EncounterLastDiastolicBP.value &gt;= 90 'mm[Hg]'         )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="8"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="HBPComponent"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Encounter with High Blood Pressure Reading Within Year Prior"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter with High Blood Pressure Reading Within Year Prior&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       let EncounterLastSystolicBP: Last([Observation: &quot;Systolic blood pressure&quot;] SystolicBP           where SystolicBP.effective 1 year or less before start of QualifyingEncounter.period           sort by effective       ),       EncounterLastDiastolicBP: Last([Observation: &quot;Diastolic blood pressure&quot;] DiastolicBP           where DiastolicBP.effective 1 year or less before start of QualifyingEncounter.period           sort by effective       )       where EncounterLastSystolicBP.value &gt; 0 'mm[Hg]'         and EncounterLastDiastolicBP.value &gt; 0 'mm[Hg]'         and ( EncounterLastSystolicBP.value &gt;= 140 'mm[Hg]'             or EncounterLastDiastolicBP.value &gt;= 90 'mm[Hg]'         )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="9"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="HBPComponent"/>
            </extension>
            <extension url="name">
              <valueString value="Encounter with First Hypertensive Reading"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter with First Hypertensive Reading&quot;:   &quot;Encounter with High Blood Pressure Reading&quot;       except &quot;Encounter with High Blood Pressure Reading Within Year Prior&quot;"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="10"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="HBPComponent"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Encounter with Order for Follow Up Within 4 Weeks"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter with Order for Follow Up Within 4 Weeks&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       with [ServiceRequest: &quot;Follow Up Within 4 Weeks&quot;] Followup4Weeks         such that Followup4Weeks.authoredOn same day as start of QualifyingEncounter.period"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="11"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="HBPComponent"/>
            </extension>
            <extension url="name">
              <valueString value="Encounter with Second Hypertensive Reading"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter with Second Hypertensive Reading&quot;:   &quot;Encounter with High Blood Pressure Reading&quot;       intersect &quot;Encounter with High Blood Pressure Reading Within Year Prior&quot;"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="12"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="HBPComponent"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Encounter with Order for Laboratory Test for Hypertension"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter with Order for Laboratory Test for Hypertension&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       with [ServiceRequest: &quot;Laboratory Tests for Hypertension&quot;] HypertensionLabs         such that HypertensionLabs.authoredOn same day as start of QualifyingEncounter.period"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="13"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="HBPComponent"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Encounter with Order for Electrocardiogram for Hypertension"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter with Order for Electrocardiogram for Hypertension&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       with ( [ServiceRequest: &quot;12 lead EKG panel&quot;]         union [ServiceRequest: &quot;EKG study&quot;] ) ECG         such that ECG.authoredOn same day as start of QualifyingEncounter.period"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="14"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="HBPComponent"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Encounter with Order for Hypertension Medication"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter with Order for Hypertension Medication&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       with [MedicationRequest: &quot;Pharmacologic Therapy for Hypertension&quot;] AntihypertensiveMedication         such that AntihypertensiveMedication.authoredOn same day as start of QualifyingEncounter.period"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="15"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="HBPComponent"/>
            </extension>
            <extension url="name">
              <valueString value="Numerator"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Numerator&quot;:   &quot;Encounter with Normal Blood Pressure Reading&quot;       union ( &quot;Encounter with Prehypertensive Blood Pressure Reading&quot;           intersect ( ( &quot;Encounter with Order for Intervention for Hypertension&quot;                 intersect &quot;Encounter with Order for Follow Up Within One Year&quot;             )               union &quot;Encounter with Referral to Alternate Provider for High Blood Pressure Reading&quot;           )       )       union ( &quot;Encounter with First Hypertensive Reading&quot;           intersect ( ( &quot;Encounter with Order for Intervention for Hypertension&quot;                 intersect &quot;Encounter with Order for Follow Up Within 4 Weeks&quot;             )               union &quot;Encounter with Referral to Alternate Provider for High Blood Pressure Reading&quot;           )       )       union ( &quot;Encounter with Second Hypertensive Reading&quot;           intersect ( ( &quot;Encounter with Order for Intervention for Hypertension&quot;                 intersect ( &quot;Encounter with Order for Laboratory Test for Hypertension&quot;                     union &quot;Encounter with Order for Electrocardiogram for Hypertension&quot;                     union &quot;Encounter with Order for Hypertension Medication&quot;                 )             )               union &quot;Encounter with Referral to Alternate Provider for High Blood Pressure Reading&quot;           )       )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="16"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="HBPComponent"/>
            </extension>
            <extension url="name">
              <valueString value="Initial Population"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Initial Population&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       with [Patient] BirthDate         such that Global.&quot;CalendarAgeInYearsAt&quot; ( FHIRHelpers.ToDate ( BirthDate.birthDate ), start of &quot;Measurement Period&quot; ) &gt;= 18"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="17"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="HBPComponent"/>
            </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="18"/>
            </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;:   [Coverage: type in &quot;Payer&quot;] Payer         return {           code: Payer.type,           period: Payer.period         }"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="19"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="HBPComponent"/>
            </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="20"/>
            </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;:   (flatten (       Patient.extension Extension         where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'           return Extension.extension     )) E       where E.url = 'ombCategory'         or E.url = 'detailed'       return E.value as Coding"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="21"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="HBPComponent"/>
            </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="22"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="HBPComponent"/>
            </extension>
            <extension url="name">
              <valueString value="Denominator Exclusions"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Denominator Exclusions&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       with [Condition: &quot;Diagnosis of Hypertension&quot;] Hypertension         such that Global.&quot;Prevalence Period&quot; ( Hypertension ) overlaps before QualifyingEncounter.period"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="23"/>
            </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;:   (flatten (       Patient.extension Extension         where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'           return Extension.extension     )) E       where E.url = 'ombCategory'         or E.url = 'detailed'       return E.value as Coding"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="24"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="HBPComponent"/>
            </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="25"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="HBPComponent"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Encounter with Medical Reason for Not Obtaining or Patient Declined Blood Pressure Measurement"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter with Medical Reason for Not Obtaining or Patient Declined Blood Pressure Measurement&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       with ( [Observation: &quot;Systolic blood pressure&quot;]         union [Observation: &quot;Diastolic blood pressure&quot;] ) NoBPScreen         such that ( NoBPScreen.code in &quot;Medical Reason&quot;             or NoBPScreen.code in &quot;Patient Declined&quot;         )           and NoBPScreen.effective same day as start of QualifyingEncounter.period           and &quot;Not Done&quot;(NoBPScreen)           and NoBPScreen.status = 'final'"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="26"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="HBPComponent"/>
            </extension>
            <extension url="name">
              <valueString
                           value="Encounter with Order for Hypertension Follow Up Declined by Patient"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter with Order for Hypertension Follow Up Declined by Patient&quot;:   &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter       with ( [ServiceRequest: &quot;12 lead EKG panel&quot;]         union [ServiceRequest: &quot;EKG study&quot;]         union [ServiceRequest: &quot;Follow Up Within One Year&quot;]         union [ServiceRequest: &quot;Follow Up Within 4 Weeks&quot;]         union [ServiceRequest: &quot;Referral to Primary Care or Alternate Provider&quot;]         union [ServiceRequest: &quot;Lifestyle Recommendation&quot;]         union [ServiceRequest: &quot;Weight Reduction Recommended&quot;]         union [ServiceRequest: &quot;Dietary Recommendations&quot;]         union [ServiceRequest: &quot;Recommendation to Increase Physical Activity&quot;]         union [ServiceRequest: &quot;Referral or Counseling for Alcohol Consumption&quot;]         union [ServiceRequest: &quot;Laboratory Tests for Hypertension&quot;]         union [MedicationRequest: &quot;Pharmacologic Therapy for Hypertension&quot;] ) NoFollowUpOrdered         such that NoFollowUpOrdered.doNotPerform is true           and NoFollowUpOrdered.code in &quot;Patient Declined&quot;           and NoFollowUpOrdered.authoredOn same day as start of QualifyingEncounter.period"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="27"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="HBPComponent"/>
            </extension>
            <extension url="name">
              <valueString value="Denominator Exceptions"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Denominator Exceptions&quot;:   &quot;Encounter with Medical Reason for Not Obtaining or Patient Declined Blood Pressure Measurement&quot;       union &quot;Encounter with Order for Hypertension Follow Up Declined by Patient&quot;"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="28"/>
            </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 AdministrativeGender): value.value"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="29"/>
            </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="30"/>
            </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="31"/>
            </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="32"/>
            </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 FHIR [Range](https://hl7.org/fhir/datatypes.html#Range) value to a CQL Interval of Quantity */ define function ToInterval(range FHIR.Range):     if range is null then         null     else         Interval[ToQuantity(range.low), ToQuantity(range.high)]"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="33"/>
            </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="34"/>
            </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="35"/>
            </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="36"/>
            </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="37"/>
            </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="38"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="MATGlobalCommonFunctions"/>
            </extension>
            <extension url="name">
              <valueString value="CalendarAgeInYearsAt"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function &quot;CalendarAgeInYearsAt&quot;(BirthDateTime DateTime, AsOf DateTime):  years between ToDate(BirthDateTime)and ToDate(AsOf)"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="39"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="MATGlobalCommonFunctions"/>
            </extension>
            <extension url="name">
              <valueString value="ToDate"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function &quot;ToDate&quot;(Value DateTime):  DateTime(year from Value, month from Value, day from Value, 0, 0, 0, 0, timezoneoffset from Value)"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="40"/>
            </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="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 uri): 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="MATGlobalCommonFunctions"/>
            </extension>
            <extension url="name">
              <valueString value="Prevalence Period"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function &quot;Prevalence Period&quot;(condition Condition):   Interval[start of &quot;Normalize Interval&quot;(condition.onset), end of &quot;Normalize Abatement&quot;(condition))"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="43"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="MATGlobalCommonFunctions"/>
            </extension>
            <extension url="name">
              <valueString value="Normalize Abatement"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function &quot;Normalize Abatement&quot;(condition Condition):  if condition.abatement is FHIR.dateTime then    Interval[FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime), FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime)]  else if condition.abatement is FHIR.Period then    FHIRHelpers.ToInterval(condition.abatement as FHIR.Period)  else if condition.abatement is FHIR.string then     Message(null as Interval&lt;DateTime&gt;, true, '1', 'Error', 'Cannot compute an interval from a String value')  else if condition.abatement is FHIR.Age then   Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age),    FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age) + 1 year)  else if condition.abatement is FHIR.Range then    Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).low),     FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).high) + 1 year)  else if condition.abatement is FHIR.boolean then    Interval[end of &quot;Normalize Interval&quot;(condition.onset), condition.recordedDate)  else null"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="44"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="HBPComponent"/>
            </extension>
            <extension url="name">
              <valueString value="Not Done"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function &quot;Not Done&quot;(res DomainResource ):   if ( res R       where ( &quot;GetModiferExtension&quot;(R, 'http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDone').value = true )   ) is not null then true     else false"/>
            </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="ToBoolean"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function ToBoolean(value boolean): 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="HBPComponent"/>
            </extension>
            <extension url="name">
              <valueString value="GetModiferExtension"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function &quot;GetModiferExtension&quot;(res DomainResource, url String ):   singleton from &quot;GetModifierExtensions&quot;(res, url)"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="47"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="HBPComponent"/>
            </extension>
            <extension url="name">
              <valueString value="GetModifierExtensions"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function &quot;GetModifierExtensions&quot;(res DomainResource, url String ):   res.modifierExtension E     where E.url = ( url )     return E"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="48"/>
            </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="49"/>
            </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="Library SDE"/>
            <resource
                      value="http://hl7.org/fhir/uv/cqm/Library/SupplementalDataElements|2.0.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 Global"/>
            <resource
                      value="http://hl7.org/fhir/uv/cqm/Library/MATGlobalCommonFunctions|5.0.000"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Code system LOINC"/>
            <resource value="http://loinc.org"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Encounter to Screen for Blood Pressure"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1920"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Lifestyle Recommendation"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1581"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Weight Reduction Recommended"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1510"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Dietary Recommendations"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1515"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display
                     value="Value set Recommendation to Increase Physical Activity"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1518"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display
                     value="Value set Referral or Counseling for Alcohol Consumption"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1583"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Follow Up Within One Year"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1579"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display
                     value="Value set Referral to Primary Care or Alternate Provider"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1580"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display
                     value="Value set Finding of Elevated Blood Pressure or Hypertension"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1047.514"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Follow Up Within 4 Weeks"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1578"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Laboratory Tests for Hypertension"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1482"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Pharmacologic Therapy for Hypertension"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.1577"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Payer"/>
            <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 Diagnosis of Hypertension"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.263"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Medical Reason"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1007"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Patient Declined"/>
            <resource
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1582"/>
          </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="*"/>
            <type value="Coding"/>
          </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="*"/>
            <type value="Coding"/>
          </parameter>
          <parameter>
            <name value="Denominator Exceptions"/>
            <use value="out"/>
            <min value="0"/>
            <max value="*"/>
            <type value="Encounter"/>
          </parameter>
          <dataRequirement>
            <type value="Patient"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Patient"/>
            <mustSupport value="birthDate"/>
            <mustSupport value="url"/>
            <mustSupport value="extension"/>
            <mustSupport value="value"/>
          </dataRequirement>
          <dataRequirement>
            <type value="Encounter"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
            <mustSupport value="type"/>
            <mustSupport value="period"/>
            <codeFilter>
              <path value="type"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1920"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Observation"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Observation"/>
            <mustSupport value="code"/>
            <mustSupport value="effective"/>
            <mustSupport value="status"/>
            <mustSupport value="value"/>
            <codeFilter>
              <path value="code"/>
              <code>
                <system value="http://loinc.org"/>
                <code value="8480-6"/>
                <display value="Systolic blood pressure"/>
              </code>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Observation"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Observation"/>
            <mustSupport value="code"/>
            <mustSupport value="effective"/>
            <mustSupport value="status"/>
            <mustSupport value="value"/>
            <codeFilter>
              <path value="code"/>
              <code>
                <system value="http://loinc.org"/>
                <code value="8462-4"/>
                <display value="Diastolic blood pressure"/>
              </code>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="ServiceRequest"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
            <mustSupport value="code"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="code"/>
              <code>
                <system value="http://loinc.org"/>
                <code value="34534-8"/>
                <display value="12 lead EKG panel"/>
              </code>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="ServiceRequest"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
            <mustSupport value="code"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="code"/>
              <code>
                <system value="http://loinc.org"/>
                <code value="11524-6"/>
                <display value="EKG study"/>
              </code>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="ServiceRequest"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
            <mustSupport value="code"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1579"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="ServiceRequest"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
            <mustSupport value="code"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1578"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="ServiceRequest"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
            <mustSupport value="code"/>
            <mustSupport value="authoredOn"/>
            <mustSupport value="reasonCode"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1580"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="ServiceRequest"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
            <mustSupport value="code"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1581"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="ServiceRequest"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
            <mustSupport value="code"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1510"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="ServiceRequest"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
            <mustSupport value="code"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1515"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="ServiceRequest"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
            <mustSupport value="code"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1518"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="ServiceRequest"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
            <mustSupport value="code"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1583"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="ServiceRequest"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
            <mustSupport value="code"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1482"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationRequest"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
            <mustSupport value="medication"/>
            <mustSupport value="authoredOn"/>
            <codeFilter>
              <path value="medication"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.1577"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="MedicationRequest"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
            <mustSupport value="medication.reference"/>
            <mustSupport value="authoredOn"/>
          </dataRequirement>
          <dataRequirement>
            <type value="Medication"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Medication"/>
            <mustSupport value="id"/>
            <mustSupport value="code"/>
          </dataRequirement>
          <dataRequirement>
            <type value="Coverage"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/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="Condition"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Condition"/>
            <mustSupport value="code"/>
            <codeFilter>
              <path value="code"/>
              <valueSet
                        value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.263"/>
            </codeFilter>
          </dataRequirement>
        </Library>
      </contained>
      <extension
                 url="http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-populationBasis">
        <valueCode value="Encounter"/>
      </extension>
      <extension
                 url="http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem">
        <valueReference>🔗
          <reference value="Device/software-system-example"/>
        </valueReference>
      </extension>
      <extension
                 url="http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-supplementalDataGuidance">
        <extension url="usage">
          <valueCodeableConcept>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
              <code value="supplemental-data"/>
            </coding>
          </valueCodeableConcept>
        </extension>
        <extension url="guidance">
          <valueMarkdown
                         value="This guidance provides instructions on how to collect and report supplemental data elements for this measure."/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements" id="effective-data-requirements">
        <valueCanonical value="#effective-data-requirements"/>
      </extension>
      <url value="http://hl7.org/fhir/uv/cqm/Measure/HBPComponent"/>
      <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="http://example.org/fhir/us/cqm/Measure/HBPComponent"/>
      </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="http://example.org/fhir/us/cqm/Measure/22v11"/>
      </identifier>
      <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>
        <value value="High Blood Pressure Screening"/>
      </identifier>
      <identifier>
        <system value="urn:ietf:rfc:3986"/>
        <value value="urn:oid:2.16.840.1.113883.4.642.40.61.29.11"/>
      </identifier>
      <version value="0.0.001"/>
      <name value="HBPComponent"/>
      <title
             value="Preventive Care and Screening: Screening for High Blood Pressure and Follow-Up Documented"/>
      <status value="active"/>
      <experimental value="true"/>
      <date value="2025-08-13T17:14:51-06:00"/>
      <publisher value="HL7 International / Clinical Quality Information"/>
      <contact>
        <telecom>
          <system value="url"/>
          <value value="http://www.hl7.org/Special/committees/cqi"/>
        </telecom>
      </contact>
      <description value="This is an example only."/>
      <useContext>
        <code>
          <system
                  value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
          <code value="venue"/>
          <display value="Clinical Venue"/>
        </code>
        <valueCodeableConcept>
          <coding>
            <system
                    value="http://hl7.org/fhir/uv/cqm/CodeSystem/intended-venue-codes"/>
            <code value="ec"/>
            <display value="EC"/>
          </coding>
        </valueCodeableConcept>
      </useContext>
      <jurisdiction>
        <coding>
          <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
          <code value="001"/>
        </coding>
      </jurisdiction>
      <effectivePeriod>
        <start value="2022-01-01"/>
        <end value="2022-12-31"/>
      </effectivePeriod>
      <library value="http://hl7.org/fhir/uv/cqm/Library/HBPComponent"/>
      <scoring>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/measure-scoring"/>
          <code value="proportion"/>
          <display value="Proportion"/>
        </coding>
      </scoring>
      <type>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/measure-type"/>
          <code value="process"/>
        </coding>
      </type>
      <improvementNotation>
        <coding>
          <system
                  value="http://terminology.hl7.org/CodeSystem/measure-improvement-notation"/>
          <code value="increase"/>
        </coding>
      </improvementNotation>
      <group>
        <extension
                   url="http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.linkId">
          <valueString value="primary"/>
        </extension>
        <population id="53248B01-E1CF-4C67-AE39-8483F8114CAE">
          <extension
                     url="http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId">
            <valueString value="primary-hbpcomponent-initial-population"/>
          </extension>
          <code>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-population"/>
              <code value="initial-population"/>
              <display value="Initial Population"/>
            </coding>
          </code>
          <criteria>
            <language value="text/cql-identifier"/>
            <expression value="Initial Population"/>
          </criteria>
        </population>
        <population id="9D2AB719-A4D5-41D3-8785-7DBE8CA10FD3">
          <extension
                     url="http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId">
            <valueString value="primary-hbpcomponent-denominator"/>
          </extension>
          <code>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-population"/>
              <code value="denominator"/>
              <display value="Denominator"/>
            </coding>
          </code>
          <criteria>
            <language value="text/cql-identifier"/>
            <expression value="Denominator"/>
          </criteria>
        </population>
        <population id="165DEA75-8DF1-4F2C-9F8A-BBEE1A02A5D6">
          <extension
                     url="http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId">
            <valueString value="primary-hbpcomponent-denominator-exclusion"/>
          </extension>
          <code>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-population"/>
              <code value="denominator-exclusion"/>
              <display value="Denominator Exclusion"/>
            </coding>
          </code>
          <criteria>
            <language value="text/cql-identifier"/>
            <expression value="Denominator Exclusions"/>
          </criteria>
        </population>
        <population id="BF70F2AC-568C-4587-AF54-E4F54E6FCC83">
          <extension
                     url="http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId">
            <valueString value="primary-hbpcomponent-denominator-exception"/>
          </extension>
          <code>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-population"/>
              <code value="denominator-exception"/>
              <display value="Denominator Exception"/>
            </coding>
          </code>
          <criteria>
            <language value="text/cql-identifier"/>
            <expression value="Denominator Exceptions"/>
          </criteria>
        </population>
        <population id="7B0319A6-913B-4F39-8D3C-04FA0A6B5C3A">
          <extension
                     url="http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId">
            <valueString value="primary-hbpcomponent-numerator"/>
          </extension>
          <code>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-population"/>
              <code value="numerator"/>
              <display value="Numerator"/>
            </coding>
          </code>
          <criteria>
            <language value="text/cql-identifier"/>
            <expression value="Numerator"/>
          </criteria>
        </population>
      </group>
      <supplementalData id="cd02ebb6-a0bf-4196-90f9-80f2a8a79bbf">
        <extension
                   url="http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId">
          <valueString value="hbpcomponent-sde-ethnicity"/>
        </extension>
        <usage>
          <coding>
            <system
                    value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
            <code value="supplemental-data"/>
          </coding>
        </usage>
        <criteria>
          <language value="text/cql-identifier"/>
          <expression value="SDE Ethnicity"/>
        </criteria>
      </supplementalData>
      <supplementalData id="a67a3fc7-cedd-4d78-b7b0-4718fa7f3e2b">
        <extension
                   url="http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId">
          <valueString value="hbpcomponent-sde-payer"/>
        </extension>
        <usage>
          <coding>
            <system
                    value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
            <code value="supplemental-data"/>
          </coding>
        </usage>
        <criteria>
          <language value="text/cql-identifier"/>
          <expression value="SDE Payer"/>
        </criteria>
      </supplementalData>
      <supplementalData id="3dc8840d-cc30-44af-a233-3b2b6c602060">
        <extension
                   url="http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId">
          <valueString value="hbpcomponent-sde-race"/>
        </extension>
        <usage>
          <coding>
            <system
                    value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
            <code value="supplemental-data"/>
          </coding>
        </usage>
        <criteria>
          <language value="text/cql-identifier"/>
          <expression value="SDE Race"/>
        </criteria>
      </supplementalData>
      <supplementalData id="5a4e95aa-f8b3-400f-89b3-02555a361251">
        <extension
                   url="http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId">
          <valueString value="ccscomponent-sde-sex"/>
        </extension>
        <usage>
          <coding>
            <system
                    value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
            <code value="supplemental-data"/>
          </coding>
        </usage>
        <criteria>
          <language value="text/cql-identifier"/>
          <expression value="SDE Sex"/>
        </criteria>
      </supplementalData>
    </Measure>