Quality Measure Implementation Guide (STU5)
5.0.0-ballot2 - ballot United States of America flag

Quality Measure Implementation Guide (STU5), published by HL7 International / Clinical Quality Information. This guide is not an authorized publication; it is the continuous build for version 5.0.0-ballot2 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/cqf-measures/ and changes regularly. See the Directory of published versions

: Module Definition Library - EXM108 - XML Representation

Active as of 2022-02-22

Raw xml | Download



<Library xmlns="http://hl7.org/fhir">
  <id value="effective-data-requirements-exm108"/>
  <meta>
    <profile
             value="http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-moduledefinitionlibrary"/>
  </meta>
  <text>
    <status value="extensions"/>
    <div xmlns="http://www.w3.org/1999/xhtml">
    <table class="grid dict">
        
        
        <tr>
            <th scope="row"><b>Title: </b></th>
            <td style="padding-left: 4px;">Module Definition Library - EXM108</td>
        </tr>
        

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

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

        
        <tr>
            <th scope="row"><b>Url: </b></th>
            <td style="padding-left: 4px;"><a href="Library-effective-data-requirements-exm108.html">Module Definition Library - EXM108</a></td>
        </tr>
        

        

        

        

        

        
        <tr>
            <th scope="row"><b>Type: </b></th>
            <td style="padding-left: 4px;">
                
                    
                        
                        <p style="margin-bottom: 5px;">
                            <b>system: </b> <span><a href="http://terminology.hl7.org/5.5.0/CodeSystem-library-type.html">LibraryType</a></span>
                        </p>
                        
                        
                        <p style="margin-bottom: 5px;">
                            <b>code: </b> <span>module-definition</span>
                        </p>
                        
                        
                    
                
                
            </td>
        </tr>
        

        

        
        <tr>
            <th scope="row"><b>Date: </b></th>
            <td style="padding-left: 4px;">2022-02-22 10:37:04-0700</td>
        </tr>
        

        
        <tr>
            <th scope="row"><b>Publisher: </b></th>
            <td style="padding-left: 4px;">HL7 International / Clinical Quality Information</td>
        </tr>
        

        
        <tr>
            <th scope="row"><b>Description: </b></th>
            <td style="padding-left: 4px;"><div><p>This library is used as an example module definition in the FHIR Quality Measure Implementation Guide</p>
</div></td>
        </tr>
        

        

        

        

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

        

        

        

        

        

        

        

        
        <tr>
            <th scope="row"><b>Related Artifacts: </b></th>
            <td style="padding-left: 4px;">
                
                
                
                <p><b>Dependencies</b></p>
                <ul>
                  
                    <li><a href="Library-SupplementalDataElements.html">Supplemental Data Elements Library</a></li>
                  
                    <li><a href="http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1">http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1</a></li>
                  
                    <li><a href="Library-MATGlobalCommonFunctions.html">MAT Global Common Functions FHIR Library</a></li>
                  
                    <li><a href="Library-TJCOverall.html">TJC Overall Library</a></li>
                  
                    <li><a href="Library-VTEICU.html">VTE ICU Library</a></li>
                  
                    <li><a href="http://terminology.hl7.org/5.5.0/CodeSystem-condition-clinical.html">Condition Clinical Status Codes</a></li>
                  
                    <li><a href="http://terminology.hl7.org/5.3.0/CodeSystem-v3-loinc.html">Logical Observation Identifiers, Names and Codes (LOINC)</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.666.5.307/expansion">Encounter Inpatient</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.263/expansion">Obstetrical or Pregnancy Related Conditions</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.279/expansion">Venous Thromboembolism</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.264/expansion">Obstetrics VTE</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1045.39/expansion">Low Dose Unfractionated Heparin for VTE Prophylaxis</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.223/expansion">Subcutaneous route</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.219/expansion">Low Molecular Weight Heparin for VTE Prophylaxis</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.211/expansion">Injectable Factor Xa Inhibitor for VTE Prophylaxis</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.232/expansion">Warfarin</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1110.48/expansion">Device Application</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.214/expansion">Intermittent pneumatic compression devices</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.230/expansion">Venous foot pumps</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.256/expansion">Graduated compression stockings</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.666.5.1743/expansion">General or Neuraxial Anesthesia</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.134/expansion">Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.202/expansion">Atrial Fibrillation or Flutter</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.259/expansion">Hip Replacement Surgery</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.261/expansion">Knee Replacement Surgery</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.400/expansion">Low Risk</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.213/expansion">INR</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.218/expansion">Unfractionated Heparin</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.222/expansion">Intravenous route</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.205/expansion">Direct Thrombin Inhibitor</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1045.41/expansion">Glycoprotein IIb IIIa Inhibitors</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1111.143/expansion">Observation Services</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.292/expansion">Emergency Department Visit</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.473/expansion">Medical Reason For Not Providing Treatment</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.93/expansion">Patient Refusal</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.114222.4.11.3591/expansion">Payer Type</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1110.23/expansion">Intensive Care Unit</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.105.12.1004/expansion">Mental Health Diagnoses</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.212/expansion">Hemorrhagic Stroke</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.247/expansion">Ischemic Stroke</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.255/expansion">General Surgery</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.257/expansion">Gynecological Surgery</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.258/expansion">Hip Fracture Surgery</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.260/expansion">Intracranial Neurosurgery</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.272/expansion">Urological Surgery</a></li>
                  
                    <li><a href="https://vsac.nlm.nih.gov/valueset/1.3.6.1.4.1.33895.1.3.0.45/expansion">Comfort Measures</a></li>
                  
                </ul>
                
                
                
                
                
            </td>
        </tr>
        

        
        <tr>
          <th scope="row"><b>Parameters: </b></th>
          <td style="padding-left: 4px;">
            <table class="grid-dict">
              <tr><th><b>Name</b></th><th><b>Type</b></th><th><b>Min</b></th><th><b>Max</b></th><th><b>In/Out</b></th></tr>
              
                <tr><th>Measurement Period</th><th>Period</th><th>0</th><th>1</th><th>in</th></tr>
              
                <tr><th>SDE Sex</th><th>Coding</th><th>0</th><th>1</th><th>out</th></tr>
              
                <tr><th>Numerator</th><th>Encounter</th><th>0</th><th>*</th><th>out</th></tr>
              
                <tr><th>Denominator</th><th>Encounter</th><th>0</th><th>*</th><th>out</th></tr>
              
                <tr><th>SDE Payer</th><th>Resource</th><th>0</th><th>*</th><th>out</th></tr>
              
                <tr><th>Initial Population</th><th>Encounter</th><th>0</th><th>*</th><th>out</th></tr>
              
                <tr><th>SDE Ethnicity</th><th>Coding</th><th>0</th><th>*</th><th>out</th></tr>
              
                <tr><th>Denominator Exclusion</th><th>Resource</th><th>0</th><th>*</th><th>out</th></tr>
              
                <tr><th>SDE Race</th><th>Coding</th><th>0</th><th>*</th><th>out</th></tr>
              
            </table>
          </td>
        </tr>
        

        
        <tr>
          <th scope="row"><b>Data Requirements:</b></th>
          <td style="padding-left: 4px;">
            <table class="grid-dict">
              <tr><th><b>Type</b></th><th><b>Profile</b></th><th><b>MS</b></th><th><b>Code Filter</b></th></tr>
              
                <tr>
                  <th>Patient</th>
                  <th>http://hl7.org/fhir/StructureDefinition/Patient</th>
                  <th>;;;;</th>
                  <th>
                    
                  </th>
                </tr>
              
                <tr>
                  <th>Encounter</th>
                  <th>http://hl7.org/fhir/StructureDefinition/Encounter</th>
                  <th>;;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>type</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>Encounter</th>
                  <th>http://hl7.org/fhir/StructureDefinition/Encounter</th>
                  <th>;;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>type</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>Encounter</th>
                  <th>http://hl7.org/fhir/StructureDefinition/Encounter</th>
                  <th>;;;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>type</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>MedicationAdministration</th>
                  <th>http://hl7.org/fhir/StructureDefinition/MedicationAdministration</th>
                  <th>;;;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>medication</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.218</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>MedicationAdministration</th>
                  <th>http://hl7.org/fhir/StructureDefinition/MedicationAdministration</th>
                  <th>;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>medication</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.205</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>MedicationAdministration</th>
                  <th>http://hl7.org/fhir/StructureDefinition/MedicationAdministration</th>
                  <th>;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>medication</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.41</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>MedicationAdministration</th>
                  <th>http://hl7.org/fhir/StructureDefinition/MedicationAdministration</th>
                  <th>;;;;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>medication</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>MedicationAdministration</th>
                  <th>http://hl7.org/fhir/StructureDefinition/MedicationAdministration</th>
                  <th>;;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>medication</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>MedicationAdministration</th>
                  <th>http://hl7.org/fhir/StructureDefinition/MedicationAdministration</th>
                  <th>;;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>medication</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>MedicationAdministration</th>
                  <th>http://hl7.org/fhir/StructureDefinition/MedicationAdministration</th>
                  <th>;;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>medication</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>MedicationAdministration</th>
                  <th>http://hl7.org/fhir/StructureDefinition/MedicationAdministration</th>
                  <th>;;;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>medication</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.134</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>MedicationRequest</th>
                  <th>http://hl7.org/fhir/StructureDefinition/MedicationRequest</th>
                  <th>;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>medication</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>MedicationRequest</th>
                  <th>http://hl7.org/fhir/StructureDefinition/MedicationRequest</th>
                  <th>;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>medication</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>MedicationRequest</th>
                  <th>http://hl7.org/fhir/StructureDefinition/MedicationRequest</th>
                  <th>;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>medication</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>MedicationRequest</th>
                  <th>http://hl7.org/fhir/StructureDefinition/MedicationRequest</th>
                  <th>;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>medication</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>ServiceRequest</th>
                  <th>http://hl7.org/fhir/StructureDefinition/ServiceRequest</th>
                  <th>;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>code</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.230</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>ServiceRequest</th>
                  <th>http://hl7.org/fhir/StructureDefinition/ServiceRequest</th>
                  <th>;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>code</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.214</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>ServiceRequest</th>
                  <th>http://hl7.org/fhir/StructureDefinition/ServiceRequest</th>
                  <th>;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>code</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.256</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>ServiceRequest</th>
                  <th>http://hl7.org/fhir/StructureDefinition/ServiceRequest</th>
                  <th>;;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>code</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>Procedure</th>
                  <th>http://hl7.org/fhir/StructureDefinition/Procedure</th>
                  <th>;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>code</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.255</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>Procedure</th>
                  <th>http://hl7.org/fhir/StructureDefinition/Procedure</th>
                  <th>;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>code</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.257</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>Procedure</th>
                  <th>http://hl7.org/fhir/StructureDefinition/Procedure</th>
                  <th>;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>code</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.258</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>Procedure</th>
                  <th>http://hl7.org/fhir/StructureDefinition/Procedure</th>
                  <th>;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>code</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.260</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>Procedure</th>
                  <th>http://hl7.org/fhir/StructureDefinition/Procedure</th>
                  <th>;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>code</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.272</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>Procedure</th>
                  <th>http://hl7.org/fhir/StructureDefinition/Procedure</th>
                  <th>;;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>code</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>Procedure</th>
                  <th>http://hl7.org/fhir/StructureDefinition/Procedure</th>
                  <th>;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>code</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.259</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>Procedure</th>
                  <th>http://hl7.org/fhir/StructureDefinition/Procedure</th>
                  <th>;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>code</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.261</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>Procedure</th>
                  <th>http://hl7.org/fhir/StructureDefinition/Procedure</th>
                  <th>;;;;;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>code</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.48</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>Procedure</th>
                  <th>http://hl7.org/fhir/StructureDefinition/Procedure</th>
                  <th>;;;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>code</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>Condition</th>
                  <th>http://hl7.org/fhir/StructureDefinition/Condition</th>
                  <th>;</th>
                  <th>
                    
                  </th>
                </tr>
              
                <tr>
                  <th>Condition</th>
                  <th>http://hl7.org/fhir/StructureDefinition/Condition</th>
                  <th>;;;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>code</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.202</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>Condition</th>
                  <th>http://hl7.org/fhir/StructureDefinition/Condition</th>
                  <th>;;;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>code</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.279</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>Observation</th>
                  <th>http://hl7.org/fhir/StructureDefinition/Observation</th>
                  <th>;;;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>code</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      
                          
                          <p style="margin-bottom: 5px;">
                              <b>system: </b> <span><a href="http://terminology.hl7.org/5.3.0/CodeSystem-v3-loinc.html">Logical Observation Identifiers, Names and Codes (LOINC)</a></span>
                          </p>
                          
                          
                          <p style="margin-bottom: 5px;">
                              <b>code: </b> <span>72136-5</span>
                          </p>
                          
                          
                          <p style="margin-bottom: 5px;">
                              <b>display: </b> <span>Risk for venous thromboembolism</span>
                          </p>
                          
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>Observation</th>
                  <th>http://hl7.org/fhir/StructureDefinition/Observation</th>
                  <th>;;;;;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>code</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.213</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>Coverage</th>
                  <th>http://hl7.org/fhir/StructureDefinition/Coverage</th>
                  <th>;;</th>
                  <th>
                    
                      <b>code filter: </b>
                      
                      <br/>
                      
                      
                      <span style="padding-left: 4px;">
                          <b>path: </b><span>type</span>
                      </span>
                      
                      <br/>
                      
                      
                      
                      <span style="padding-left: 4px;">
                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591</span>
                      </span>
                      
                      
                    
                  </th>
                </tr>
              
                <tr>
                  <th>Location</th>
                  <th>http://hl7.org/fhir/StructureDefinition/Location</th>
                  <th>;</th>
                  <th>
                    
                  </th>
                </tr>
              
            </table>
          </td>
        </tr>
        

        
    </table>
</div>
  </text>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
    <valueCoding>
      <system
              value="http://terminology.hl7.org/CodeSystem/condition-clinical"/>
      <code value="active"/>
    </valueCoding>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
    <valueCoding>
      <system
              value="http://terminology.hl7.org/CodeSystem/condition-clinical"/>
      <code value="recurrence"/>
    </valueCoding>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
    <valueCoding>
      <system
              value="http://terminology.hl7.org/CodeSystem/condition-clinical"/>
      <code value="relapse"/>
    </valueCoding>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
    <valueCoding>
      <system
              value="http://terminology.hl7.org/CodeSystem/condition-clinical"/>
      <code value="inactive"/>
    </valueCoding>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
    <valueCoding>
      <system
              value="http://terminology.hl7.org/CodeSystem/condition-clinical"/>
      <code value="remission"/>
    </valueCoding>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
    <valueCoding>
      <system
              value="http://terminology.hl7.org/CodeSystem/condition-clinical"/>
      <code value="resolved"/>
    </valueCoding>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
    <valueCoding>
      <system value="http://loinc.org"/>
      <code value="72136-5"/>
      <display value="Risk for venous thromboembolism"/>
    </valueCoding>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-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="EXM108-FHIR"/>
    </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="MATGlobalCommonFunctions"/>
    </extension>
    <extension url="name">
      <valueString value="Inpatient Encounter"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Inpatient Encounter&quot;:
	[Encounter: &quot;Encounter Inpatient&quot;] EncounterInpatient
		where EncounterInpatient.status = 'finished'
		    and &quot;LengthInDays&quot;(EncounterInpatient.period) &lt;= 120
			and EncounterInpatient.period ends 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="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString value="Admission Without VTE or Obstetrical Conditions"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Admission Without VTE or Obstetrical Conditions&quot;:
	  	Global.&quot;Inpatient Encounter&quot; InpatientEncounter
		    where not (exists (Global.EncounterDiagnosis(InpatientEncounter)) EncounterDiagnosis
              where (EncounterDiagnosis.code in &quot;Obstetrics&quot;
								or EncounterDiagnosis.code in &quot;Venous Thromboembolism&quot;
								or EncounterDiagnosis.code in &quot;Obstetrics VTE&quot;
			         )
        )"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="3"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString
                   value="Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="// Note: added FHIRHelpers.ToDate() in R4
define &quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot;:
    ( Global.&quot;Inpatient Encounter&quot; InpatientEncounter
    		with [&quot;Patient&quot;] BirthDate
    			such that Global.&quot;CalendarAgeInYearsAt&quot;(FHIRHelpers.ToDate(BirthDate.birthDate), start of InpatientEncounter.period) &gt;= 18
    )
    intersect &quot;Admission Without VTE or Obstetrical Conditions&quot;"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="4"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </extension>
    <extension url="name">
      <valueString
                   value="VTE Prophylaxis by Medication Administered or Device Applied"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="// 10/29: Replaced DeviceUseStatement with Procedure with a new value set and procedure.usdCode for specifying devices
define &quot;VTE Prophylaxis by Medication Administered or Device Applied&quot;:
  ( [&quot;MedicationAdministration&quot;: medication in &quot;Low Dose Unfractionated Heparin for VTE Prophylaxis&quot;] VTEMedication
      where VTEMedication.status ='completed'
			     and VTEMedication.dosage.route in &quot;Subcutaneous route&quot;
  )
   union ([&quot;MedicationAdministration&quot;: medication in &quot;Low Molecular Weight Heparin for VTE Prophylaxis&quot;] LMWH where LMWH.status = 'completed')
    union ([&quot;MedicationAdministration&quot;: medication in &quot;Injectable Factor Xa Inhibitor for VTE Prophylaxis&quot;] FactorXa where FactorXa.status = 'completed')
     union ([&quot;MedicationAdministration&quot;: medication in &quot;Warfarin&quot;] Warfarin where Warfarin.status = 'completed')
      union (
          [&quot;Procedure&quot;: &quot;Device Application&quot;] DeviceApplied
          where DeviceApplied.status = 'complete'
                and (DeviceApplied.usedCode in &quot;Intermittent pneumatic compression devices (IPC)&quot;
                    or DeviceApplied.usedCode in&quot;Venous foot pumps (VFP)&quot;
                    or DeviceApplied.usedCode in &quot;Graduated compression stockings (GCS)&quot;
                    )
          )"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="5"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString
                   value="Encounter With VTE Prophylaxis Received on Day of or Day After Admission or Procedure"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Encounter With VTE Prophylaxis Received on Day of or Day After Admission or Procedure&quot;:
 	( from
   			&quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter,
   			&quot;VTE Prophylaxis by Medication Administered or Device Applied&quot; VTEProphylaxis
  		where Coalesce(Global.&quot;Normalize Interval&quot;(VTEProphylaxis.effective), Global.&quot;Normalize Interval&quot;(VTEProphylaxis.performed)) starts during TJC.&quot;CalendarDayOfOrDayAfter&quot;(start of QualifyingEncounter.period)
  		return QualifyingEncounter
 	)
 	union (
    from
  			&quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter,
  			[&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,
  			&quot;VTE Prophylaxis by Medication Administered or Device Applied&quot; VTEProphylaxis
			where Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period
				and Coalesce(Global.&quot;Normalize Interval&quot;(VTEProphylaxis.effective), Global.&quot;Normalize Interval&quot;(VTEProphylaxis.performed)) starts during TJC.&quot;CalendarDayOfOrDayAfter&quot;(end of Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed))
			return QualifyingEncounter
	)"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="6"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString
                   value="Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure&quot;:
	( from
    		&quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter,
  			[&quot;MedicationAdministration&quot;: medication in &quot;Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment&quot;] FactorXaMedication
    where FactorXaMedication.status = 'completed'
      and Global.&quot;Normalize Interval&quot;(FactorXaMedication.effective) starts during TJC.&quot;CalendarDayOfOrDayAfter&quot;(start of QualifyingEncounter.period)
    return QualifyingEncounter
    )
    union ( from
    				  &quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter,
      				[&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,
      				[&quot;MedicationAdministration&quot;: medication in &quot;Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment&quot;] FactorXaMedication
      			where FactorXaMedication.status = 'completed'
                and AnesthesiaProcedure.status = 'completed'
      			    and Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period
      					and Global.&quot;Normalize Interval&quot;(FactorXaMedication.effective) starts during TJC.&quot;CalendarDayOfOrDayAfter&quot;(end of Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed))
      			return QualifyingEncounter
      		)"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="7"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString
                   value="Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="/*NOTE: Feedback at Digitial Quality Summit 2019 indicates verificationStatus may be difficult for implementers to retrieve
        both condition.clinicalStatus and condition.verificationStatus = 'confirmed'
*/
define &quot;Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE&quot;:
	( &quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter
		with [&quot;Condition&quot;: code in &quot;Atrial Fibrillation/Flutter&quot;] AtrialFibrillation
		such that FHIRHelpers.ToConcept(AtrialFibrillation.clinicalStatus) in { Global.&quot;active&quot;, Global.&quot;recurrence&quot;, Global.&quot;relapse&quot; }
			and Global.&quot;Normalize Interval&quot;(AtrialFibrillation.onset) starts on or before end of QualifyingEncounter.period
    )
    union ( &quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter
    				where Global.EncounterDiagnosis(QualifyingEncounter).code in &quot;Atrial Fibrillation/Flutter&quot;
    			)
    union ( &quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter
    				with [&quot;Condition&quot;: code in &quot;Venous Thromboembolism&quot;] VTEDiagnosis
    				such that  FHIRHelpers.ToConcept(VTEDiagnosis.clinicalStatus) in { Global.&quot;inactive&quot;, Global.&quot;remission&quot;, Global.&quot;resolved&quot; }
      					//and VTEDiagnosis.verificationStatus = 'confirmed'
    				and Global.&quot;Normalize Interval&quot;(VTEDiagnosis.onset) before start of QualifyingEncounter.period
      		)"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="8"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString
                   value="Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery&quot;:
	&quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter
	with ( [&quot;Procedure&quot;: &quot;Hip Replacement Surgery&quot;]
    			union [&quot;Procedure&quot;: &quot;Knee Replacement Surgery&quot;] ) HipKneeProcedure
	such that HipKneeProcedure.status = 'completed'
	     and Global.&quot;Normalize Interval&quot;(HipKneeProcedure.performed) starts on or before end of QualifyingEncounter.period"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="9"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString value="Is In Low Risk for VTE or On Anticoagulant"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Is In Low Risk for VTE or On Anticoagulant&quot;:
	  ( [&quot;Observation&quot;: &quot;Risk for venous thromboembolism&quot;] VTERiskAssessment
			  where VTERiskAssessment.value in &quot;Low Risk&quot;
        and VTERiskAssessment.status in {'final','amended', 'corrected'}
	  )
  union ( [&quot;Observation&quot;: &quot;INR&quot;] INRLabTest
        where INRLabTest.value as Quantity &gt; 3.0
            and INRLabTest.status in {'final','amended', 'corrected'}
        return &quot;Observation&quot; { id: INRLabTest.id, effective: INRLabTest.issued }
        )
  union ((( [&quot;MedicationAdministration&quot;: &quot;Unfractionated Heparin&quot;] UnfractionatedHeparin
          where UnfractionatedHeparin.dosage.route in &quot;Intravenous route&quot;
         )
         union [&quot;MedicationAdministration&quot;: &quot;Direct Thrombin Inhibitor&quot;]
         union [&quot;MedicationAdministration&quot;: &quot;Glycoprotein IIb/IIIa Inhibitors&quot;] ) AnticoagulantMedication
         where AnticoagulantMedication.status = 'complete'
         return &quot;Observation&quot; { id: AnticoagulantMedication.id, effective: AnticoagulantMedication.effective }
      )"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="10"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString
                   value="Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission&quot;:
 	&quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter
    with &quot;Is In Low Risk for VTE or On Anticoagulant&quot; VTERiskAssessment
    such that Global.&quot;Normalize Interval&quot;(VTERiskAssessment.effective) starts during VTEICU.&quot;FromDayOfStartOfHospitalizationToDayAfterAdmission&quot;(QualifyingEncounter)"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="11"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString
                   value="Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure&quot;:
 	from
   		&quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter,
   		[&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,
   		&quot;Is In Low Risk for VTE or On Anticoagulant&quot; VTERiskAssessment
	where Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period
 			and Global.&quot;Normalize Interval&quot;(VTERiskAssessment.effective) starts during TJC.&quot;CalendarDayOfOrDayAfter&quot;(end of Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed))
	return QualifyingEncounter"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="12"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString
                   value="Encounter With Low Risk for VTE or Anticoagulant Administered"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Encounter With Low Risk for VTE or Anticoagulant Administered&quot;:
   &quot;Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission&quot;
   	 union &quot;Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure&quot;"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="13"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString
                   value="No VTE Prophylaxis Medication Administered or Ordered"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;No VTE Prophylaxis Medication Administered or Ordered&quot;:
   ((	[&quot;MedicationAdministration&quot;: medication in &quot;Low Dose Unfractionated Heparin for VTE Prophylaxis&quot;]
     union
	    [&quot;MedicationAdministration&quot;: medication in &quot;Low Molecular Weight Heparin for VTE Prophylaxis&quot;]
     union
	    [&quot;MedicationAdministration&quot;: medication in &quot;Injectable Factor Xa Inhibitor for VTE Prophylaxis&quot;]
     union
	    [&quot;MedicationAdministration&quot;: medication in &quot;Warfarin&quot;]
       ) MedicationAdm
       where MedicationAdm.status = 'not-done'
        )
  union
	   ((	[&quot;MedicationRequest&quot;: medication in &quot;Low Dose Unfractionated Heparin for VTE Prophylaxis&quot;]
  	union
  	 [&quot;MedicationRequest&quot;: medication in &quot;Low Molecular Weight Heparin for VTE Prophylaxis&quot;]
    union
    	[&quot;MedicationRequest&quot;: medication in &quot;Injectable Factor Xa Inhibitor for VTE Prophylaxis&quot;]
    union
    	[&quot;MedicationRequest&quot;: medication in &quot;Warfarin&quot;]
    ) MedicationOrder
    	where	MedicationOrder.doNotPerform is true
        and MedicationOrder.status in {'completed', 'cancelled'}
        //11/5 discussion: all expressions for QI-Core must include a status.
        //Therefore, we need ServiceRequest.status = completed; and MedicationRequest.status = cancelled (or completed, since cancelled indicates it was once ordered but intentionally never filled).
        //So the not done issue is handled by ServiceRequest.doNotPerform = True  Or MedicationRequest.doNotPerform = True
    )"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="14"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString
                   value="No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission&quot;:
   	&quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter
       with	&quot;No VTE Prophylaxis Medication Administered or Ordered&quot; NoVTEMedication
     	such that Coalesce(NoVTEMedication.statusReason,NoVTEMedication.reasonCode) in &quot;Medical Reason&quot;
      			and Coalesce(NoVTEMedication.authoredOn, start of Global.&quot;Normalize Interval&quot;(NoVTEMedication.effective)) during VTEICU.&quot;FromDayOfStartOfHospitalizationToDayAfterAdmission&quot;(QualifyingEncounter)"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="15"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString value="No VTE Prophylaxis Device Applied or Ordered"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;No VTE Prophylaxis Device Applied or Ordered&quot;:
  ((
    [&quot;ServiceRequest&quot;: &quot;Venous foot pumps (VFP)&quot;]
    union [&quot;ServiceRequest&quot;: &quot;Intermittent pneumatic compression devices (IPC)&quot;]
    union [&quot;ServiceRequest&quot;: &quot;Graduated compression stockings (GCS)&quot;]
    ) DeviceOrder
    where DeviceOrder.status = 'completed'
    //11/5 discussion: all expressions for QI-Core must include a status
    //ServiceRequest.status -  draft | active | suspended | completed | entered-in-error | cancelled
        and DeviceOrder.doNotPerform is true
    return {id: DeviceOrder.id, requestStatusReason: GetStatusReason(DeviceOrder), authoredOn: DeviceOrder.authoredOn}
    )
  union
    (
      [&quot;Procedure&quot;: &quot;Device Application&quot;] DeviceApplied
      let DeviceNotDoneTiming: Global.GetExtension(DeviceApplied, 'qicore-recorded').value
      where (DeviceApplied.usedCode in &quot;Intermittent pneumatic compression devices (IPC)&quot;
            or DeviceApplied.usedCode in &quot;Venous foot pumps (VFP)&quot;
            or DeviceApplied.usedCode in &quot;Graduated compression stockings (GCS)&quot;
            )
         and  DeviceApplied.status = 'not-done'
         return {id: DeviceApplied.id, requestStatusReason: DeviceApplied.statusReason, authoredOn: DeviceNotDoneTiming}

    )"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="16"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString
                   value="No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission&quot;:
  &quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter
  	with &quot;No VTE Prophylaxis Device Applied or Ordered&quot; NoVTEDevice
      such that NoVTEDevice.requestStatusReason in &quot;Medical Reason&quot;
        and  NoVTEDevice.authoredOn during VTEICU.&quot;FromDayOfStartOfHospitalizationToDayAfterAdmission&quot;(QualifyingEncounter)"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="17"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString
                   value="No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure&quot;:
	from
  		&quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter,
  		[&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,
  		&quot;No VTE Prophylaxis Medication Administered or Ordered&quot; NoVTEMedication
	where Coalesce(NoVTEMedication.statusReason,NoVTEMedication.reasonCode) in &quot;Medical Reason&quot;
			and AnesthesiaProcedure.status = 'completed'
			and Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period
			and Coalesce(NoVTEMedication.authoredOn, start of Global.&quot;Normalize Interval&quot;(NoVTEMedication.effective)) during TJC.&quot;CalendarDayOfOrDayAfter&quot;(end of Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed))
  return QualifyingEncounter"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="18"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString
                   value="No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure&quot;:
  from
  		&quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter,
  		[&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,
  		&quot;No VTE Prophylaxis Device Applied or Ordered&quot; NoVTEDevice
  where  NoVTEDevice.requestStatusReason in &quot;Medical Reason&quot;
      and AnesthesiaProcedure.status = 'completed'
  		and Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period
      and NoVTEDevice.authoredOn during TJC.&quot;CalendarDayOfOrDayAfter&quot;(end of Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed))
  return QualifyingEncounter"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="19"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString
                   value="Encounter With No VTE Prophylaxis Due to Medical Reason"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Encounter With No VTE Prophylaxis Due to Medical Reason&quot;:
   ( &quot;No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission&quot;
     intersect &quot;No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission&quot;
   )
   union ( &quot;No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure&quot;
       intersect &quot;No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure&quot;
       )"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="20"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString
                   value="No VTE Prophylaxis Medication or Device Due to Patient Refusal"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;No VTE Prophylaxis Medication or Device Due to Patient Refusal&quot;:
    ( &quot;No VTE Prophylaxis Medication Administered or Ordered&quot; NoVTEMedication
        where Coalesce(NoVTEMedication.statusReason,NoVTEMedication.reasonCode) in &quot;Patient Refusal&quot;
    )
  union (&quot;No VTE Prophylaxis Device Applied or Ordered&quot; NoVTEDevice
           where NoVTEDevice.requestStatusReason in &quot;Patient Refusal&quot;
        )"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="21"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString
                   value="No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission&quot;:
 	&quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter
	 with &quot;No VTE Prophylaxis Medication or Device Due to Patient Refusal&quot; PatientRefusal
   such that Coalesce(start of Global.&quot;Normalize Interval&quot;(PatientRefusal.effective), PatientRefusal.authoredOn)
         during VTEICU.&quot;FromDayOfStartOfHospitalizationToDayAfterAdmission&quot;(QualifyingEncounter)"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="22"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString
                   value="No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure&quot;:
 	from
   		&quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter,
   		[&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,
   		&quot;No VTE Prophylaxis Medication or Device Due to Patient Refusal&quot; PatientRefusal
	where Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period
 			and Coalesce(start of Global.&quot;Normalize Interval&quot;(PatientRefusal.effective), PatientRefusal.authoredOn)
             during TJC.&quot;CalendarDayOfOrDayAfter&quot;(end of Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed))
	return QualifyingEncounter"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="23"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString
                   value="Encounter With No VTE Prophylaxis Due to Patient Refusal"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Encounter With No VTE Prophylaxis Due to Patient Refusal&quot;:
 &quot;No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission&quot;
 	union &quot;No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure&quot;"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="24"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString value="Numerator"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Numerator&quot;:
    &quot;Encounter With VTE Prophylaxis Received on Day of or Day After Admission or Procedure&quot;
    union ( &quot;Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure&quot;
    			  intersect ( &quot;Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE&quot;
    						    union &quot;Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery&quot;
    			            )
          )
    union &quot;Encounter With Low Risk for VTE or Anticoagulant Administered&quot;
    union &quot;Encounter With No VTE Prophylaxis Due to Medical Reason&quot;
    union &quot;Encounter With No VTE Prophylaxis Due to Patient Refusal&quot;"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="25"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString value="Initial Population"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Initial Population&quot;:
  &quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot;"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="26"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString value="Denominator"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Denominator&quot;:
      &quot;Initial Population&quot;"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="27"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="SupplementalDataElements"/>
    </extension>
    <extension url="name">
      <valueString value="SDE Payer"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;SDE Payer&quot;:
  [Coverage: type in &quot;Payer&quot;] Payer
        return {
          code: Payer.type,
          period: Payer.period
        }"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="28"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString value="SDE Payer"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;SDE Payer&quot;:
	SDE.&quot;SDE Payer&quot;"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="29"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="SupplementalDataElements"/>
    </extension>
    <extension url="name">
      <valueString value="SDE Ethnicity"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;SDE Ethnicity&quot;:
  (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="30"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString value="SDE Ethnicity"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;SDE Ethnicity&quot;:
  SDE.&quot;SDE Ethnicity&quot;"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="31"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString value="Encounter Less Than 2 Days"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Encounter Less Than 2 Days&quot;:
  &quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter
  	where Global.&quot;LengthInDays&quot;(QualifyingEncounter.period)&lt; 2"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="32"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString value="Encounter With ICU Location Stay 1 Day or More"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Encounter With ICU Location Stay 1 Day or More&quot;:
  &quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter
    where exists ( QualifyingEncounter.location Location
    		where Global.GetLocation(Location.location).type in &quot;Intensive Care Unit&quot;
    			and Global.&quot;LengthInDays&quot;(Location.period)&gt;= 1
    			and Location.period starts during TJC.&quot;CalendarDayOfOrDayAfter&quot;(start of QualifyingEncounter.period)
	    )"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="33"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString
                   value="Encounter With Principal Diagnosis of Mental Disorder or Stroke"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Encounter With Principal Diagnosis of Mental Disorder or Stroke&quot;:
  &quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter
    where Global.&quot;PrincipalDiagnosis&quot;(QualifyingEncounter).code in &quot;Mental Health Diagnoses&quot;
        or Global.&quot;PrincipalDiagnosis&quot;(QualifyingEncounter).code in &quot;Hemorrhagic Stroke&quot;
        or Global.&quot;PrincipalDiagnosis&quot;(QualifyingEncounter).code in &quot;Ischemic Stroke&quot;"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="34"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString value="SCIP VTE Selected Surgery"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;SCIP VTE Selected Surgery&quot;:
  (	[&quot;Procedure&quot;: &quot;General Surgery&quot;]
    union [&quot;Procedure&quot;: &quot;Gynecological Surgery&quot;]
    union [&quot;Procedure&quot;: &quot;Hip Fracture Surgery&quot;]
    union [&quot;Procedure&quot;: &quot;Hip Replacement Surgery&quot;]
    union [&quot;Procedure&quot;: &quot;Intracranial Neurosurgery&quot;]
    union [&quot;Procedure&quot;: &quot;Knee Replacement Surgery&quot;]
    union [&quot;Procedure&quot;: &quot;Urological Surgery&quot;] ) Procedure
  where Procedure.status = 'completed'"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="35"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString
                   value="Encounter With Principal Procedure of SCIP VTE Selected Surgery"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="/* NOTE: 2 options to express Principal Procedure to retrive &quot;encounter Procedure as an url&quot; and proedure &quot;rank as extension&quot; in R4
          VTE-1 uses Option 1 - generic extension funtion
          VTE-2 uses Option 2 - Specific extension functions
  TODO:  Mapping Table needs revision on using &quot;Encounter.procedure.code&quot;, &quot;Encounter.procedure.sequence&quot;
*/
define &quot;Encounter With Principal Procedure of SCIP VTE Selected Surgery&quot;:
  from
      &quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter,
      &quot;SCIP VTE Selected Surgery&quot; SelectedProcedure
      let EncounterProcedure: Global.GetExtension(QualifyingEncounter, 'qicore-encounter-procedure')
  where FHIRHelpers.ToInteger(Global.GetExtension(EncounterProcedure, 'rank').value as FHIR.positiveInt) = 1
      and Global.GetId(FHIRHelpers.ToString((Global.GetExtension(EncounterProcedure, 'procedure').value as FHIR.Reference).reference)) = SelectedProcedure.id
      and Global.&quot;Normalize Interval&quot;(SelectedProcedure.performed) during QualifyingEncounter.period"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="36"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString value="Intervention Comfort Measures"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Intervention Comfort Measures&quot;:
	([&quot;ServiceRequest&quot;: &quot;Comfort Measures&quot;] P
    		where P.intent = 'order'
  )
  	union
    	([&quot;Procedure&quot;: &quot;Comfort Measures&quot;] InterventionPerformed
      	where InterventionPerformed.status in {'completed', 'in-progress'})"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="37"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString
                   value="Encounter With Intervention Comfort Measures From Day of Start of Hospitalization To Day After Admission"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Encounter With Intervention Comfort Measures From Day of Start of Hospitalization To Day After Admission&quot;:
	&quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter
		with &quot;Intervention Comfort Measures&quot; ComfortMeasure
		such that Coalesce(start of Global.&quot;Normalize Interval&quot;(ComfortMeasure.performed), ComfortMeasure.authoredOn) during VTEICU.&quot;FromDayOfStartOfHospitalizationToDayAfterAdmission&quot;(QualifyingEncounter)"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="38"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString
                   value="Encounter With Intervention Comfort Measures on Day of or Day After Procedure"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Encounter With Intervention Comfort Measures on Day of or Day After Procedure&quot;:
  from
  		&quot;Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions&quot; QualifyingEncounter,
  		[&quot;Procedure&quot;: &quot;General or Neuraxial Anesthesia&quot;] AnesthesiaProcedure,
  		&quot;Intervention Comfort Measures&quot; ComfortMeasure
		where AnesthesiaProcedure.status = 'completed'
				and Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period
        and Coalesce(start of Global.&quot;Normalize Interval&quot;(ComfortMeasure.performed), ComfortMeasure.authoredOn) during TJC.&quot;CalendarDayOfOrDayAfter&quot;(end of Global.&quot;Normalize Interval&quot;(AnesthesiaProcedure.performed))
    return QualifyingEncounter"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="39"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </extension>
    <extension url="name">
      <valueString value="Denominator Exclusion"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Denominator Exclusion&quot;:
    &quot;Encounter Less Than 2 Days&quot;
     union &quot;Encounter With ICU Location Stay 1 Day or More&quot;
     union &quot;Encounter With Principal Diagnosis of Mental Disorder or Stroke&quot;
     union &quot;Encounter With Principal Procedure of SCIP VTE Selected Surgery&quot;
     union &quot;Encounter With Intervention Comfort Measures From Day of Start of Hospitalization To Day After Admission&quot;
     union &quot;Encounter With Intervention Comfort Measures on Day of or Day After Procedure&quot;"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="40"/>
    </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="41"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108-FHIR"/>
    </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="42"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="cqi"/>
  </extension>
  <url
       value="http://hl7.org/fhir/us/cqfmeasures/Library/effective-data-requirements-exm108"/>
  <version value="1.0.0"/>
  <name value="EffectiveDataRequirements"/>
  <title value="Module Definition Library - EXM108"/>
  <status value="active"/>
  <type>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/library-type"/>
      <code value="module-definition"/>
    </coding>
  </type>
  <date value="2022-02-22T10:37:04-07: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 library is used as an example module definition in the FHIR Quality Measure Implementation Guide"/>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="US"/>
    </coding>
  </jurisdiction>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Library SDE"/>
    <resource
              value="http://hl7.org/fhir/us/cqfmeasures/Library/SupplementalDataElements|2.0.000"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Library FHIRHelpers"/>
    <resource
              value="http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Library Global"/>
    <resource
              value="http://hl7.org/fhir/us/cqfmeasures/Library/MATGlobalCommonFunctions|5.0.000"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Library TJC"/>
    <resource
              value="http://hl7.org/fhir/us/cqfmeasures/Library/TJCOverall|4.0.000"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Library VTEICU"/>
    <resource
              value="http://hl7.org/fhir/us/cqfmeasures/Library/VTEICU|5.0.000"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Code system ConditionClinicalStatusCodes"/>
    <resource
              value="http://terminology.hl7.org/CodeSystem/condition-clinical"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Code system LOINC"/>
    <resource value="http://loinc.org"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Encounter Inpatient"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Obstetrics"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.263"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Venous Thromboembolism"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.279"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Obstetrics VTE"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.264"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display
             value="Value set Low Dose Unfractionated Heparin for VTE Prophylaxis"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Subcutaneous route"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.223"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display
             value="Value set Low Molecular Weight Heparin for VTE Prophylaxis"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display
             value="Value set Injectable Factor Xa Inhibitor for VTE Prophylaxis"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Warfarin"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Device Application"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.48"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display
             value="Value set Intermittent pneumatic compression devices (IPC)"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.214"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Venous foot pumps (VFP)"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.230"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Graduated compression stockings (GCS)"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.256"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set General or Neuraxial Anesthesia"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display
             value="Value set Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.134"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Atrial Fibrillation/Flutter"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.202"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Hip Replacement Surgery"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.259"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Knee Replacement Surgery"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.261"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Low Risk"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.400"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set INR"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.213"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Unfractionated Heparin"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.218"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Intravenous route"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.222"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Direct Thrombin Inhibitor"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.205"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Glycoprotein IIb/IIIa Inhibitors"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.41"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Observation Services"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Emergency Department Visit"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Medical Reason"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.473"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Patient Refusal"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.93"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Payer"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Intensive Care Unit"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.23"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Mental Health Diagnoses"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.105.12.1004"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Hemorrhagic Stroke"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.212"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Ischemic Stroke"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.247"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set General Surgery"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.255"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Gynecological Surgery"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.257"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Hip Fracture Surgery"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.258"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Intracranial Neurosurgery"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.260"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Urological Surgery"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.272"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Comfort Measures"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45"/>
  </relatedArtifact>
  <parameter>
    <name value="Measurement Period"/>
    <use value="in"/>
    <min value="0"/>
    <max value="1"/>
    <type value="Period"/>
  </parameter>
  <parameter>
    <name value="SDE Sex"/>
    <use value="out"/>
    <min value="0"/>
    <max value="1"/>
    <type value="Coding"/>
  </parameter>
  <parameter>
    <name value="Numerator"/>
    <use value="out"/>
    <min value="0"/>
    <max value="*"/>
    <type value="Encounter"/>
  </parameter>
  <parameter>
    <name value="Denominator"/>
    <use value="out"/>
    <min value="0"/>
    <max value="*"/>
    <type value="Encounter"/>
  </parameter>
  <parameter>
    <name value="SDE Payer"/>
    <use value="out"/>
    <min value="0"/>
    <max value="*"/>
    <type value="Resource"/>
  </parameter>
  <parameter>
    <name value="Initial Population"/>
    <use value="out"/>
    <min value="0"/>
    <max value="*"/>
    <type value="Encounter"/>
  </parameter>
  <parameter>
    <name value="SDE Ethnicity"/>
    <use value="out"/>
    <min value="0"/>
    <max value="*"/>
    <type value="Coding"/>
  </parameter>
  <parameter>
    <name value="Denominator Exclusion"/>
    <use value="out"/>
    <min value="0"/>
    <max value="*"/>
    <type value="Resource"/>
  </parameter>
  <parameter>
    <name value="SDE Race"/>
    <use value="out"/>
    <min value="0"/>
    <max value="*"/>
    <type value="Coding"/>
  </parameter>
  <dataRequirement>
    <type value="Patient"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Patient"/>
    <mustSupport value="extension"/>
    <mustSupport value="value"/>
    <mustSupport value="birthDate"/>
    <mustSupport value="url"/>
  </dataRequirement>
  <dataRequirement>
    <type value="Encounter"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
    <mustSupport value="period"/>
    <mustSupport value="type"/>
    <codeFilter>
      <path value="type"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Encounter"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
    <mustSupport value="period"/>
    <mustSupport value="type"/>
    <codeFilter>
      <path value="type"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Encounter"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
    <mustSupport value="period"/>
    <mustSupport value="type"/>
    <mustSupport value="status"/>
    <codeFilter>
      <path value="type"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="MedicationAdministration"/>
    <profile
             value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
    <mustSupport value="dosage.route"/>
    <mustSupport value="dosage"/>
    <mustSupport value="medication"/>
    <codeFilter>
      <path value="medication"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.218"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="MedicationAdministration"/>
    <profile
             value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
    <mustSupport value="medication"/>
    <codeFilter>
      <path value="medication"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.205"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="MedicationAdministration"/>
    <profile
             value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
    <mustSupport value="medication"/>
    <codeFilter>
      <path value="medication"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.41"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="MedicationAdministration"/>
    <profile
             value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
    <mustSupport value="dosage.route"/>
    <mustSupport value="dosage"/>
    <mustSupport value="medication"/>
    <mustSupport value="status"/>
    <codeFilter>
      <path value="medication"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="MedicationAdministration"/>
    <profile
             value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
    <mustSupport value="medication"/>
    <mustSupport value="status"/>
    <codeFilter>
      <path value="medication"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="MedicationAdministration"/>
    <profile
             value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
    <mustSupport value="medication"/>
    <mustSupport value="status"/>
    <codeFilter>
      <path value="medication"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="MedicationAdministration"/>
    <profile
             value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
    <mustSupport value="medication"/>
    <mustSupport value="status"/>
    <codeFilter>
      <path value="medication"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="MedicationAdministration"/>
    <profile
             value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
    <mustSupport value="effective"/>
    <mustSupport value="medication"/>
    <mustSupport value="status"/>
    <codeFilter>
      <path value="medication"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.134"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="MedicationRequest"/>
    <profile
             value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
    <mustSupport value="medication"/>
    <codeFilter>
      <path value="medication"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="MedicationRequest"/>
    <profile
             value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
    <mustSupport value="medication"/>
    <codeFilter>
      <path value="medication"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="MedicationRequest"/>
    <profile
             value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
    <mustSupport value="medication"/>
    <codeFilter>
      <path value="medication"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="MedicationRequest"/>
    <profile
             value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
    <mustSupport value="medication"/>
    <codeFilter>
      <path value="medication"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="ServiceRequest"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
    <mustSupport value="code"/>
    <codeFilter>
      <path value="code"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.230"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="ServiceRequest"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
    <mustSupport value="code"/>
    <codeFilter>
      <path value="code"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.214"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="ServiceRequest"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
    <mustSupport value="code"/>
    <codeFilter>
      <path value="code"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.256"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="ServiceRequest"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
    <mustSupport value="code"/>
    <mustSupport value="intent"/>
    <codeFilter>
      <path value="code"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Procedure"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
    <mustSupport value="code"/>
    <codeFilter>
      <path value="code"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.255"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Procedure"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
    <mustSupport value="code"/>
    <codeFilter>
      <path value="code"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.257"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Procedure"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
    <mustSupport value="code"/>
    <codeFilter>
      <path value="code"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.258"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Procedure"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
    <mustSupport value="code"/>
    <codeFilter>
      <path value="code"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.260"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Procedure"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
    <mustSupport value="code"/>
    <codeFilter>
      <path value="code"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.272"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Procedure"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
    <mustSupport value="code"/>
    <mustSupport value="status"/>
    <codeFilter>
      <path value="code"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Procedure"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
    <mustSupport value="code"/>
    <codeFilter>
      <path value="code"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.259"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Procedure"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
    <mustSupport value="code"/>
    <codeFilter>
      <path value="code"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.261"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Procedure"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
    <mustSupport value="code"/>
    <mustSupport value="statusReason"/>
    <mustSupport value="usedCode"/>
    <mustSupport value="id"/>
    <mustSupport value="status"/>
    <codeFilter>
      <path value="code"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.48"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Procedure"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
    <mustSupport value="code"/>
    <mustSupport value="performed"/>
    <mustSupport value="status"/>
    <codeFilter>
      <path value="code"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Condition"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Condition"/>
    <mustSupport value="id"/>
  </dataRequirement>
  <dataRequirement>
    <type value="Condition"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Condition"/>
    <mustSupport value="code"/>
    <mustSupport value="clinicalStatus"/>
    <mustSupport value="onset"/>
    <codeFilter>
      <path value="code"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.202"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Condition"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Condition"/>
    <mustSupport value="code"/>
    <mustSupport value="clinicalStatus"/>
    <mustSupport value="onset"/>
    <codeFilter>
      <path value="code"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.279"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Observation"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Observation"/>
    <mustSupport value="code"/>
    <mustSupport value="value"/>
    <mustSupport value="status"/>
    <codeFilter>
      <path value="code"/>
      <code>
        <system value="http://loinc.org"/>
        <code value="72136-5"/>
        <display value="Risk for venous thromboembolism"/>
      </code>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Observation"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Observation"/>
    <mustSupport value="code"/>
    <mustSupport value="id"/>
    <mustSupport value="issued"/>
    <mustSupport value="value"/>
    <mustSupport value="status"/>
    <codeFilter>
      <path value="code"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.213"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Coverage"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Coverage"/>
    <mustSupport value="period"/>
    <mustSupport value="type"/>
    <codeFilter>
      <path value="type"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Location"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Location"/>
    <mustSupport value="id"/>
  </dataRequirement>
</Library>