Quality Measure Implementation Guide (STU3 Ballot)
2.1.0 - ballot

This page is part of the Quality Measure STU2 for FHIR R4 Implementation Guide (v2.1.0: STU3 Ballot 1) based on FHIR R4. The current version which supercedes this version is 3.0.0. For a full list of available versions, see the Directory of published versions

: Venous Thromboembolism Prophylaxis - XML Representation

Raw xml | Download



<Measure xmlns="http://hl7.org/fhir">
  <id value="measure-vte-1-FHIR"/>
  <meta>
    <profile
             value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/measure-cqfm"/>
    <profile
             value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm"/>
  </meta>
  <text>
    <status value="extensions"/>
    <div xmlns="http://www.w3.org/1999/xhtml">
    <table class="grid dict">
        
        <tr>
            <th scope="row"><b>Id: </b></th>
            <td style="padding-left: 4px;">measure-vte-1-FHIR</td>
        </tr>
        
        
        <tr>
            <th scope="row"><b>Url: </b></th>
            <td style="padding-left: 4px;">http://hl7.org/fhir/us/cqfmeasures/Measure/measure-vte-1-FHIR</td>
        </tr>
        
        
        <tr>
            <th scope="row"><b>Version: </b></th>
            <td style="padding-left: 4px;">8.2.000</td>
        </tr>
        
        
        <tr>
            <th scope="row"><b>Identifier: </b></th>
            <td style="padding-left: 4px;">
                
                
                <p style="margin-bottom: 5px;">
                    <b>value: </b> <span>108</span>
                </p>
                
            </td>
        </tr>
        
        <tr>
            <th scope="row"><b>Identifier: </b></th>
            <td style="padding-left: 4px;">
                
                
                <p style="margin-bottom: 5px;">
                    <b>value: </b> <span>0371</span>
                </p>
                
            </td>
        </tr>
        
        
        <tr>
            <th scope="row"><b>Name: </b></th>
            <td style="padding-left: 4px;">VTE_1_FHIR</td>
        </tr>
        
        
        <tr>
            <th scope="row"><b>Title: </b></th>
            <td style="padding-left: 4px;">Venous Thromboembolism Prophylaxis</td>
        </tr>
        
        
        
        <tr>
            <th scope="row"><b>Status: </b></th>
            <td style="padding-left: 4px;">active</td>
        </tr>
        
        
        <tr>
            <th scope="row"><b>Experimental: </b></th>
            <td style="padding-left: 4px;">true</td>
        </tr>
        
        
        <tr>
            <th scope="row"><b>Scoring: </b></th>
            <td style="padding-left: 4px;">
                
                    
                        
                        <p style="margin-bottom: 5px;">
                            <b>system: </b> <span>http://terminology.hl7.org/CodeSystem/measure-scoring</span>
                        </p>
                        
                        
                        <p style="margin-bottom: 5px;">
                            <b>code: </b> <span>proportion</span>
                        </p>
                        
                        
                        <p style="margin-bottom: 5px;">
                            <b>display: </b> <span>Proportion</span>
                        </p>
                        
                    
                
                
            </td>
        </tr>
        
        
        <tr>
            <th scope="row"><b>Improvement Notation: </b></th>
            <td style="padding-left: 4px;">
                
                    
                        
                        <p style="margin-bottom: 5px;">
                            <b>system: </b> <span>http://terminology.hl7.org/CodeSystem/measure-improvement-notation</span>
                        </p>
                        
                        
                        <p style="margin-bottom: 5px;">
                            <b>code: </b> <span>increase</span>
                        </p>
                        
                        
                        <p style="margin-bottom: 5px;">
                            <b>display: </b> <span>Increased score indicates improvement</span>
                        </p>
                        
                    
                
                
            </td>
        </tr>
        
        
        <tr>
            <th scope="row"><b>Type: </b></th>
            <td style="padding-left: 4px;">
                
                    
                        
                        <p style="margin-bottom: 5px;">
                            <b>system: </b> <span>http://terminology.hl7.org/CodeSystem/measure-type</span>
                        </p>
                        
                        
                        <p style="margin-bottom: 5px;">
                            <b>code: </b> <span>process</span>
                        </p>
                        
                        
                    
                
                
            </td>
        </tr>
        
        
        
        <tr>
            <th scope="row"><b>Date: </b></th>
            <td style="padding-left: 4px;">2021-04-03</td>
        </tr>
        
        
        <tr>
            <th scope="row"><b>Publisher: </b></th>
            <td style="padding-left: 4px;">Clinical Quality Information WG</td>
        </tr>
        
        
        <tr>
            <th scope="row"><b>Description: </b></th>
            <td style="padding-left: 4px;">This measure assesses the number of patients who received VTE prophylaxis or have documentation why no VTE prophylaxis was given the day of or the day after hospital admission or surgery end date for surgeries that start the day of or the day after hospital admission</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>use</b></th><th><b>min</b></th><th><b>max</b></th><th><b>type</b></th></tr>
                    
                    <tr>
                        <td>Measurement Period</td>
                        <td>in</td>
                        <td>0</td>
                        <td>1</td>
                        <td>Period</td>
                    </tr>
                    
                    <tr>
                        <td>SDE Sex</td>
                        <td>out</td>
                        <td>0</td>
                        <td>1</td>
                        <td>Coding</td>
                    </tr>
                    
                    <tr>
                        <td>Numerator</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>Encounter With VTE Prophylaxis Received on Day of or Day After Admission or Procedure</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>Inpatient Encounter</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>Admission Without VTE or Obstetrical Conditions</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>VTE Prophylaxis by Medication Administered or Device Applied</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Any</td>
                    </tr>
                    
                    <tr>
                        <td>Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>Encounter With Low Risk for VTE or Anticoagulant Administered</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>Is In Low Risk for VTE or On Anticoagulant</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Observation</td>
                    </tr>
                    
                    <tr>
                        <td>Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>Encounter With No VTE Prophylaxis Due to Medical Reason</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>No VTE Prophylaxis Medication Administered or Ordered</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Any</td>
                    </tr>
                    
                    <tr>
                        <td>No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>No VTE Prophylaxis Device Applied or Ordered</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Any</td>
                    </tr>
                    
                    <tr>
                        <td>No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>Encounter With No VTE Prophylaxis Due to Patient Refusal</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>No VTE Prophylaxis Medication or Device Due to Patient Refusal</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Any</td>
                    </tr>
                    
                    <tr>
                        <td>No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>Denominator</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>Initial Population</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>SDE Payer</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Any</td>
                    </tr>
                    
                    <tr>
                        <td>SDE Ethnicity</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Coding</td>
                    </tr>
                    
                    <tr>
                        <td>Patient</td>
                        <td>out</td>
                        <td>0</td>
                        <td>1</td>
                        <td>Patient</td>
                    </tr>
                    
                    <tr>
                        <td>Denominator Exclusion</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Any</td>
                    </tr>
                    
                    <tr>
                        <td>Encounter Less Than 2 Days</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>Encounter With ICU Location Stay 1 Day or More</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>Encounter With Principal Diagnosis of Mental Disorder or Stroke</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>Encounter With Principal Procedure of SCIP VTE Selected Surgery</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Any</td>
                    </tr>
                    
                    <tr>
                        <td>SCIP VTE Selected Surgery</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Procedure</td>
                    </tr>
                    
                    <tr>
                        <td>Encounter With Intervention Comfort Measures From Day of Start of Hospitalization To Day After Admission</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>Intervention Comfort Measures</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Any</td>
                    </tr>
                    
                    <tr>
                        <td>Encounter With Intervention Comfort Measures on Day of or Day After Procedure</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>SDE Race</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Coding</td>
                    </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>path</b></th><th><b>valueSet or system</b></th><th><b>code</b></th></tr>
                    
                        <tr>
                            <td>Encounter</td>
                            <td>type</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Patient</td>
                            <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Condition</td>
                            <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationAdministration</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationAdministration</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationAdministration</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationAdministration</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationAdministration</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationAdministration</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationAdministration</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationAdministration</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Procedure</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.48</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Procedure</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.48</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Procedure</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationAdministration</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.134</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Procedure</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationAdministration</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.134</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Condition</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.202</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Condition</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.279</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Procedure</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.259</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Procedure</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.261</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Observation</td>
                            <td>code</td>
                            
                            
                                <td></td>
                                <td>72136-5</td>
                            
                        </tr>
                    
                        <tr>
                            <td>Observation</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.213</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationAdministration</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.218</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationAdministration</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.205</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationAdministration</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.41</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Encounter</td>
                            <td>type</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Encounter</td>
                            <td>type</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Procedure</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationAdministration</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationAdministration</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationAdministration</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationAdministration</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationAdministration</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationAdministration</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationAdministration</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationAdministration</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationRequest</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationRequest</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationRequest</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationRequest</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationRequest</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationRequest</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationRequest</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationRequest</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>ServiceRequest</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.230</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>ServiceRequest</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.214</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>ServiceRequest</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.256</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>ServiceRequest</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.230</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>ServiceRequest</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.214</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>ServiceRequest</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.256</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Procedure</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.48</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Procedure</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.48</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Procedure</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Procedure</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Procedure</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Coverage</td>
                            <td>type</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Patient</td>
                            <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Location</td>
                            <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Condition</td>
                            <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Procedure</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.255</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Procedure</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.257</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Procedure</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.258</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Procedure</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.259</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Procedure</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.260</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Procedure</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.261</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Procedure</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.272</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>ServiceRequest</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>ServiceRequest</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Procedure</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Procedure</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Procedure</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743</td>
                                <td></td>
                            
                            
                        </tr>
                    
                </table>
          </td>
        </tr>
        
        
        <tr>
          <th scope="row"><b>Direct Reference Codes: </b></th>
          <td style="padding-left: 4px;">
                <table class="grid-dict">
                    <tr><th><b>display</b></th><th><b>code</b></th><th><b>system</b></th></tr>
                    
                        <tr>
                            <td></td>
                            <td>active</td>
                            <td></td>
                        </tr>
                    
                        <tr>
                            <td></td>
                            <td>recurrence</td>
                            <td></td>
                        </tr>
                    
                        <tr>
                            <td></td>
                            <td>relapse</td>
                            <td></td>
                        </tr>
                    
                        <tr>
                            <td></td>
                            <td>inactive</td>
                            <td></td>
                        </tr>
                    
                        <tr>
                            <td></td>
                            <td>remission</td>
                            <td></td>
                        </tr>
                    
                        <tr>
                            <td></td>
                            <td>resolved</td>
                            <td></td>
                        </tr>
                    
                        <tr>
                            <td>Risk for venous thromboembolism</td>
                            <td>72136-5</td>
                            <td></td>
                        </tr>
                    
                </table>
          </td>
        </tr>
        
        
            <tr>
                <th scope="row"><b>Supplemental Data: </b></th>
                <td style="padding-left: 4px;">
                    <table class="grid-dict">
                        <tr><th><b>expression</b></th><th><b>system</b></th></tr>
                        
                        <tr>
                            <td>SDE Ethnicity</td>
                            <td>http://terminology.hl7.org/CodeSystem/measure-data-usage</td>
                        </tr>
                        
                        <tr>
                            <td>SDE Payer</td>
                            <td>http://terminology.hl7.org/CodeSystem/measure-data-usage</td>
                        </tr>
                        
                        <tr>
                            <td>SDE Race</td>
                            <td>http://terminology.hl7.org/CodeSystem/measure-data-usage</td>
                        </tr>
                        
                        <tr>
                            <td>SDE Sex</td>
                            <td>http://terminology.hl7.org/CodeSystem/measure-data-usage</td>
                        </tr>
                        
                    </table>
                </td>
            </tr>
        
        
        <tr>
            <th scope="row"><b>Use Context: </b></th>
            <td style="padding-left: 4px;">
                <table class="grid-dict">
                    <tr><th><b>code</b></th><th><b>value</b></th></tr>
                    
                      <tr>
                        <td>program</td>
                        <td></td>
                      </tr>
                    
                </table>
            </td>
        </tr>
        
        
        <tr>
            <th scope="row"><b>Jurisdiction: </b></th>
            <td style="padding-left: 25px;">US</td>
        </tr>
        
        
        <tr>
            <th scope="row"><b>Topic: </b></th>
            <td style="padding-left: 25px;">57024-2</td>
        </tr>
        
        
        
        
        <tr>
            <th scope="row"><b>Copyright: </b></th>
            <td style="padding-left: 25px;">Measure specifications are in the Public Domain.

LOINC(R) is a registered trademark of the Regenstrief Institute.

This material contains SNOMED Clinical Terms(R) (SNOMED CT(C)) copyright 2004-2017 International Health Terminology Standards Development Organization. All rights reserved.</td>
        </tr>
        
        
        <tr>
            <th scope="row"><b>Disclaimer: </b></th>
            <td style="padding-left: 25px;">These performance measures are not clinical guidelines and do not establish a standard of medical care, and have not been tested for all potential applications. The measures and specifications are provided without warranty</td>
        </tr>
        
        
        <tr>
            <th scope="row"><b>Approval Date: </b></th>
            <td style="padding-left: 4px;">2019-03-08</td>
        </tr>
        
        
        <tr>
            <th scope="row"><b>Last Review Date: </b></th>
            <td style="padding-left: 4px;">2019-03-08</td>
        </tr>
        
        
        <tr>
            <th scope="row"><b>Effective Period: </b></th>
            <td style="padding-left: 4px;">2018-01-01..2018-12-31</td>
        </tr>
        
        
        <tr>
          <th scope="row"><b>Related Artifacts: </b></th>
          <td style="padding-left: 4px;">
            
            
            
            <p><b>Dependencies</b></p>
            <ul>
              
                <li>http://hl7.org/fhir/us/cqfmeasures/Library/SupplementalDataElements|2.0.000</li>
              
                <li>http://hl7.org/fhir/us/cqfmeasures/Library/MATGlobalCommonFunctions|5.0.000</li>
              
                <li>http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1</li>
              
                <li>http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1</li>
              
                <li>http://hl7.org/fhir/us/cqfmeasures/Library/TJCOverall|4.0.000</li>
              
                <li>http://hl7.org/fhir/us/cqfmeasures/Library/MATGlobalCommonFunctions|5.0.000</li>
              
                <li>http://hl7.org/fhir/us/cqfmeasures/Library/VTEICU|5.0.000</li>
              
                <li>http://hl7.org/fhir/us/cqfmeasures/Library/MATGlobalCommonFunctions|5.0.000</li>
              
                <li>http://terminology.hl7.org/CodeSystem/condition-clinical</li>
              
                <li>http://loinc.org</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.263</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.279</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.264</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.223</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.48</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.214</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.230</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.256</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.134</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.202</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.259</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.261</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.400</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.213</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.218</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.222</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.205</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.41</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.473</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.93</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.23</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.105.12.1004</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.212</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.247</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.255</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.257</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.258</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.260</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.272</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45</li>
              
            </ul>
            
            
            
            
            
          </td>
        </tr>
        
        
        
        
        
        <tr>
          <th scope="row"><b>Logic Definitions: </b></th>
          <td style="padding-left: 4px;">
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>SDE Sex</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "SDE Sex":
	SDE."SDE Sex"</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>SupplementalDataElements</td>
                        
                        
                            <td>SDE Sex</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "SDE Sex":
  case
      when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }
      when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }
      else null
    end</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>Numerator</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Numerator":
    "Encounter With VTE Prophylaxis Received on Day of or Day After Admission or Procedure"
    union ( "Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure"
    			  intersect ( "Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE"
    						    union "Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery"
    			            )
          )
    union "Encounter With Low Risk for VTE or Anticoagulant Administered"
    union "Encounter With No VTE Prophylaxis Due to Medical Reason"
    union "Encounter With No VTE Prophylaxis Due to Patient Refusal"</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>Encounter With VTE Prophylaxis Received on Day of or Day After Admission or Procedure</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Encounter With VTE Prophylaxis Received on Day of or Day After Admission or Procedure":
 	( from
   			"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter,
   			"VTE Prophylaxis by Medication Administered or Device Applied" VTEProphylaxis
  		where Coalesce(Global."Normalize Interval"(VTEProphylaxis.effective), Global."Normalize Interval"(VTEProphylaxis.performed)) starts during TJC."CalendarDayOfOrDayAfter"(start of QualifyingEncounter.period)
  		return QualifyingEncounter
 	)
 	union (
    from
  			"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter,
  			["Procedure": "General or Neuraxial Anesthesia"] AnesthesiaProcedure,
  			"VTE Prophylaxis by Medication Administered or Device Applied" VTEProphylaxis
			where Global."Normalize Interval"(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period
				and Coalesce(Global."Normalize Interval"(VTEProphylaxis.effective), Global."Normalize Interval"(VTEProphylaxis.performed)) starts during TJC."CalendarDayOfOrDayAfter"(end of Global."Normalize Interval"(AnesthesiaProcedure.performed))
			return QualifyingEncounter
	)</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">// Note: added FHIRHelpers.ToDate() in R4define "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions":
    ( Global."Inpatient Encounter" InpatientEncounter
    		with ["Patient"] BirthDate
    			such that Global."CalendarAgeInYearsAt"(FHIRHelpers.ToDate(BirthDate.birthDate), start of InpatientEncounter.period) &gt;= 18
    )
    intersect "Admission Without VTE or Obstetrical Conditions"</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>MATGlobalCommonFunctions</td>
                        
                        
                            <td>Inpatient Encounter</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Inpatient Encounter":
	[Encounter: "Encounter Inpatient"] EncounterInpatient
		where EncounterInpatient.status = 'finished'
		    and "LengthInDays"(EncounterInpatient.period) &lt;= 120
			and EncounterInpatient.period ends during "Measurement Period"</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>Admission Without VTE or Obstetrical Conditions</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Admission Without VTE or Obstetrical Conditions":
	  	Global."Inpatient Encounter" InpatientEncounter
		    where not (exists (Global.EncounterDiagnosis(InpatientEncounter)) EncounterDiagnosis
              where (EncounterDiagnosis.code in "Obstetrics"
								or EncounterDiagnosis.code in "Venous Thromboembolism"
								or EncounterDiagnosis.code in "Obstetrics VTE"
			         )
        )</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>VTE Prophylaxis by Medication Administered or Device Applied</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">// 10/29: Replaced DeviceUseStatement with Procedure with a new value set and procedure.usdCode for specifying devicesdefine "VTE Prophylaxis by Medication Administered or Device Applied":
  ( ["MedicationAdministration": medication in "Low Dose Unfractionated Heparin for VTE Prophylaxis"] VTEMedication
      where VTEMedication.status ='completed'
			     and VTEMedication.dosage.route in "Subcutaneous route"
  )
   union (["MedicationAdministration": medication in "Low Molecular Weight Heparin for VTE Prophylaxis"] LMWH where LMWH.status = 'completed')
    union (["MedicationAdministration": medication in "Injectable Factor Xa Inhibitor for VTE Prophylaxis"] FactorXa where FactorXa.status = 'completed')
     union (["MedicationAdministration": medication in "Warfarin"] Warfarin where Warfarin.status = 'completed')
      union (
          ["Procedure": "Device Application"] DeviceApplied
          where DeviceApplied.status = 'complete'
                and (DeviceApplied.usedCode in "Intermittent pneumatic compression devices (IPC)"
                    or DeviceApplied.usedCode in"Venous foot pumps (VFP)"
                    or DeviceApplied.usedCode in "Graduated compression stockings (GCS)"
                    )
          )</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure":
	( from
    		"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter,
  			["MedicationAdministration": medication in "Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment"] FactorXaMedication
    where FactorXaMedication.status = 'completed'
      and Global."Normalize Interval"(FactorXaMedication.effective) starts during TJC."CalendarDayOfOrDayAfter"(start of QualifyingEncounter.period)
    return QualifyingEncounter
    )
    union ( from
    				  "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter,
      				["Procedure": "General or Neuraxial Anesthesia"] AnesthesiaProcedure,
      				["MedicationAdministration": medication in "Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment"] FactorXaMedication
      			where FactorXaMedication.status = 'completed'
                and AnesthesiaProcedure.status = 'completed'
      			    and Global."Normalize Interval"(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period
      					and Global."Normalize Interval"(FactorXaMedication.effective) starts during TJC."CalendarDayOfOrDayAfter"(end of Global."Normalize Interval"(AnesthesiaProcedure.performed))
      			return QualifyingEncounter
      		)</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">/*NOTE: Feedback at Digitial Quality Summit 2019 indicates verificationStatus may be difficult for implementers to retrieve
        both condition.clinicalStatus and condition.verificationStatus = 'confirmed'
*/define "Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE":
	( "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter
		with ["Condition": code in "Atrial Fibrillation/Flutter"] AtrialFibrillation
		such that FHIRHelpers.ToConcept(AtrialFibrillation.clinicalStatus) in { Global."active", Global."recurrence", Global."relapse" }
			and Global."Normalize Interval"(AtrialFibrillation.onset) starts on or before end of QualifyingEncounter.period
    )
    union ( "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter
    				where Global.EncounterDiagnosis(QualifyingEncounter).code in "Atrial Fibrillation/Flutter"
    			)
    union ( "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter
    				with ["Condition": code in "Venous Thromboembolism"] VTEDiagnosis
    				such that  FHIRHelpers.ToConcept(VTEDiagnosis.clinicalStatus) in { Global."inactive", Global."remission", Global."resolved" }
      					//and VTEDiagnosis.verificationStatus = 'confirmed'
    				and Global."Normalize Interval"(VTEDiagnosis.onset) before start of QualifyingEncounter.period
      		)</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery":
	"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter
	with ( ["Procedure": "Hip Replacement Surgery"]
    			union ["Procedure": "Knee Replacement Surgery"] ) HipKneeProcedure
	such that HipKneeProcedure.status = 'completed'
	     and Global."Normalize Interval"(HipKneeProcedure.performed) starts on or before end of QualifyingEncounter.period</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>Encounter With Low Risk for VTE or Anticoagulant Administered</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Encounter With Low Risk for VTE or Anticoagulant Administered":
   "Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission"
   	 union "Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure"</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission":
 	"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter
    with "Is In Low Risk for VTE or On Anticoagulant" VTERiskAssessment
    such that Global."Normalize Interval"(VTERiskAssessment.effective) starts during VTEICU."FromDayOfStartOfHospitalizationToDayAfterAdmission"(QualifyingEncounter)</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>Is In Low Risk for VTE or On Anticoagulant</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Is In Low Risk for VTE or On Anticoagulant":
	  ( ["Observation": "Risk for venous thromboembolism"] VTERiskAssessment
			  where VTERiskAssessment.value in "Low Risk"
        and VTERiskAssessment.status in {'final','amended', 'corrected'}
	  )
  union ( ["Observation": "INR"] INRLabTest
        where INRLabTest.value as Quantity &gt; 3.0
            and INRLabTest.status in {'final','amended', 'corrected'}
        return "Observation" { id: INRLabTest.id, effective: INRLabTest.issued }
        )
  union ((( ["MedicationAdministration": "Unfractionated Heparin"] UnfractionatedHeparin
          where UnfractionatedHeparin.dosage.route in "Intravenous route"
         )
         union ["MedicationAdministration": "Direct Thrombin Inhibitor"]
         union ["MedicationAdministration": "Glycoprotein IIb/IIIa Inhibitors"] ) AnticoagulantMedication
         where AnticoagulantMedication.status = 'complete'
         return "Observation" { id: AnticoagulantMedication.id, effective: AnticoagulantMedication.effective }
      )</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure":
 	from
   		"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter,
   		["Procedure": "General or Neuraxial Anesthesia"] AnesthesiaProcedure,
   		"Is In Low Risk for VTE or On Anticoagulant" VTERiskAssessment
	where Global."Normalize Interval"(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period
 			and Global."Normalize Interval"(VTERiskAssessment.effective) starts during TJC."CalendarDayOfOrDayAfter"(end of Global."Normalize Interval"(AnesthesiaProcedure.performed))
	return QualifyingEncounter</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>Encounter With No VTE Prophylaxis Due to Medical Reason</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Encounter With No VTE Prophylaxis Due to Medical Reason":
   ( "No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission"
     intersect "No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission"
   )
   union ( "No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure"
       intersect "No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure"
       )</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission":
   	"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter
       with	"No VTE Prophylaxis Medication Administered or Ordered" NoVTEMedication
     	such that Coalesce(NoVTEMedication.statusReason,NoVTEMedication.reasonCode) in "Medical Reason"
      			and Coalesce(NoVTEMedication.authoredOn, start of Global."Normalize Interval"(NoVTEMedication.effective)) during VTEICU."FromDayOfStartOfHospitalizationToDayAfterAdmission"(QualifyingEncounter)</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>No VTE Prophylaxis Medication Administered or Ordered</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "No VTE Prophylaxis Medication Administered or Ordered":
   ((	["MedicationAdministration": medication in "Low Dose Unfractionated Heparin for VTE Prophylaxis"]
     union
	    ["MedicationAdministration": medication in "Low Molecular Weight Heparin for VTE Prophylaxis"]
     union
	    ["MedicationAdministration": medication in "Injectable Factor Xa Inhibitor for VTE Prophylaxis"]
     union
	    ["MedicationAdministration": medication in "Warfarin"]
       ) MedicationAdm
       where MedicationAdm.status = 'not-done'
        )
  union
	   ((	["MedicationRequest": medication in "Low Dose Unfractionated Heparin for VTE Prophylaxis"]
  	union
  	 ["MedicationRequest": medication in "Low Molecular Weight Heparin for VTE Prophylaxis"]
    union
    	["MedicationRequest": medication in "Injectable Factor Xa Inhibitor for VTE Prophylaxis"]
    union
    	["MedicationRequest": medication in "Warfarin"]
    ) 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
    )</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission":
  "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter
  	with "No VTE Prophylaxis Device Applied or Ordered" NoVTEDevice
      such that NoVTEDevice.requestStatusReason in "Medical Reason"
        and  NoVTEDevice.authoredOn during VTEICU."FromDayOfStartOfHospitalizationToDayAfterAdmission"(QualifyingEncounter)</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>No VTE Prophylaxis Device Applied or Ordered</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "No VTE Prophylaxis Device Applied or Ordered":
  ((
    ["ServiceRequest": "Venous foot pumps (VFP)"]
    union ["ServiceRequest": "Intermittent pneumatic compression devices (IPC)"]
    union ["ServiceRequest": "Graduated compression stockings (GCS)"]
    ) 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
    (
      ["Procedure": "Device Application"] DeviceApplied
      let DeviceNotDoneTiming: Global.GetExtension(DeviceApplied, 'qicore-recorded').value
      where (DeviceApplied.usedCode in "Intermittent pneumatic compression devices (IPC)"
            or DeviceApplied.usedCode in "Venous foot pumps (VFP)"
            or DeviceApplied.usedCode in "Graduated compression stockings (GCS)"
            )
         and  DeviceApplied.status = 'not-done'
         return {id: DeviceApplied.id, requestStatusReason: DeviceApplied.statusReason, authoredOn: DeviceNotDoneTiming}

    )</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure":
	from
  		"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter,
  		["Procedure": "General or Neuraxial Anesthesia"] AnesthesiaProcedure,
  		"No VTE Prophylaxis Medication Administered or Ordered" NoVTEMedication
	where Coalesce(NoVTEMedication.statusReason,NoVTEMedication.reasonCode) in "Medical Reason"
			and AnesthesiaProcedure.status = 'completed'
			and Global."Normalize Interval"(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period
			and Coalesce(NoVTEMedication.authoredOn, start of Global."Normalize Interval"(NoVTEMedication.effective)) during TJC."CalendarDayOfOrDayAfter"(end of Global."Normalize Interval"(AnesthesiaProcedure.performed))
  return QualifyingEncounter</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure":
  from
  		"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter,
  		["Procedure": "General or Neuraxial Anesthesia"] AnesthesiaProcedure,
  		"No VTE Prophylaxis Device Applied or Ordered" NoVTEDevice
  where  NoVTEDevice.requestStatusReason in "Medical Reason"
      and AnesthesiaProcedure.status = 'completed'
  		and Global."Normalize Interval"(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period
      and NoVTEDevice.authoredOn during TJC."CalendarDayOfOrDayAfter"(end of Global."Normalize Interval"(AnesthesiaProcedure.performed))
  return QualifyingEncounter</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>Encounter With No VTE Prophylaxis Due to Patient Refusal</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Encounter With No VTE Prophylaxis Due to Patient Refusal":
 "No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission"
 	union "No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure"</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission":
 	"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter
	 with "No VTE Prophylaxis Medication or Device Due to Patient Refusal" PatientRefusal
   such that Coalesce(start of Global."Normalize Interval"(PatientRefusal.effective), PatientRefusal.authoredOn)
         during VTEICU."FromDayOfStartOfHospitalizationToDayAfterAdmission"(QualifyingEncounter)</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>No VTE Prophylaxis Medication or Device Due to Patient Refusal</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "No VTE Prophylaxis Medication or Device Due to Patient Refusal":
    ( "No VTE Prophylaxis Medication Administered or Ordered" NoVTEMedication
        where Coalesce(NoVTEMedication.statusReason,NoVTEMedication.reasonCode) in "Patient Refusal"
    )
  union ("No VTE Prophylaxis Device Applied or Ordered" NoVTEDevice
           where NoVTEDevice.requestStatusReason in "Patient Refusal"
        )</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure":
 	from
   		"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter,
   		["Procedure": "General or Neuraxial Anesthesia"] AnesthesiaProcedure,
   		"No VTE Prophylaxis Medication or Device Due to Patient Refusal" PatientRefusal
	where Global."Normalize Interval"(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period
 			and Coalesce(start of Global."Normalize Interval"(PatientRefusal.effective), PatientRefusal.authoredOn)
             during TJC."CalendarDayOfOrDayAfter"(end of Global."Normalize Interval"(AnesthesiaProcedure.performed))
	return QualifyingEncounter</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>Denominator</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Denominator":
      "Initial Population"</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>Initial Population</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Initial Population":
  "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>SDE Payer</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "SDE Payer":
	SDE."SDE Payer"</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>SupplementalDataElements</td>
                        
                        
                            <td>SDE Payer</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "SDE Payer":
  [Coverage: type in "Payer"] Payer
        return {
          code: Payer.type,
          period: Payer.period
        }</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>Initial Population</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Initial Population":
  "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>SDE Ethnicity</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "SDE Ethnicity":
  SDE."SDE Ethnicity"</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>SupplementalDataElements</td>
                        
                        
                            <td>SDE Ethnicity</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "SDE Ethnicity":
  (flatten (
      Patient.extension Extension
        where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'
          return Extension.extension
    )) E
      where E.url = 'ombCategory'
        or E.url = 'detailed'
      return E.value as Coding</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>Denominator Exclusion</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Denominator Exclusion":
    "Encounter Less Than 2 Days"
     union "Encounter With ICU Location Stay 1 Day or More"
     union "Encounter With Principal Diagnosis of Mental Disorder or Stroke"
     union "Encounter With Principal Procedure of SCIP VTE Selected Surgery"
     union "Encounter With Intervention Comfort Measures From Day of Start of Hospitalization To Day After Admission"
     union "Encounter With Intervention Comfort Measures on Day of or Day After Procedure"</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>Encounter Less Than 2 Days</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Encounter Less Than 2 Days":
  "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter
  	where Global."LengthInDays"(QualifyingEncounter.period)&lt; 2</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>Encounter With ICU Location Stay 1 Day or More</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Encounter With ICU Location Stay 1 Day or More":
  "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter
    where exists ( QualifyingEncounter.location Location
    		where Global.GetLocation(Location.location).type in "Intensive Care Unit"
    			and Global."LengthInDays"(Location.period)&gt;= 1
    			and Location.period starts during TJC."CalendarDayOfOrDayAfter"(start of QualifyingEncounter.period)
	    )</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>Encounter With Principal Diagnosis of Mental Disorder or Stroke</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Encounter With Principal Diagnosis of Mental Disorder or Stroke":
  "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter
    where Global."PrincipalDiagnosis"(QualifyingEncounter).code in "Mental Health Diagnoses"
        or Global."PrincipalDiagnosis"(QualifyingEncounter).code in "Hemorrhagic Stroke"
        or Global."PrincipalDiagnosis"(QualifyingEncounter).code in "Ischemic Stroke"</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>Encounter With Principal Procedure of SCIP VTE Selected Surgery</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">/* NOTE: 2 options to express Principal Procedure to retrive "encounter Procedure as an url" and proedure "rank as extension" 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 "Encounter.procedure.code", "Encounter.procedure.sequence"
*/define "Encounter With Principal Procedure of SCIP VTE Selected Surgery":
  from
      "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter,
      "SCIP VTE Selected Surgery" 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."Normalize Interval"(SelectedProcedure.performed) during QualifyingEncounter.period</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>SCIP VTE Selected Surgery</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "SCIP VTE Selected Surgery":
  (	["Procedure": "General Surgery"]
    union ["Procedure": "Gynecological Surgery"]
    union ["Procedure": "Hip Fracture Surgery"]
    union ["Procedure": "Hip Replacement Surgery"]
    union ["Procedure": "Intracranial Neurosurgery"]
    union ["Procedure": "Knee Replacement Surgery"]
    union ["Procedure": "Urological Surgery"] ) Procedure
  where Procedure.status = 'completed'</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>Encounter With Intervention Comfort Measures From Day of Start of Hospitalization To Day After Admission</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Encounter With Intervention Comfort Measures From Day of Start of Hospitalization To Day After Admission":
	"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter
		with "Intervention Comfort Measures" ComfortMeasure
		such that Coalesce(start of Global."Normalize Interval"(ComfortMeasure.performed), ComfortMeasure.authoredOn) during VTEICU."FromDayOfStartOfHospitalizationToDayAfterAdmission"(QualifyingEncounter)</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>Intervention Comfort Measures</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Intervention Comfort Measures":
	(["ServiceRequest": "Comfort Measures"] P
    		where P.intent = 'order'
  )
  	union
    	(["Procedure": "Comfort Measures"] InterventionPerformed
      	where InterventionPerformed.status in {'completed', 'in-progress'})</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>Encounter With Intervention Comfort Measures on Day of or Day After Procedure</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Encounter With Intervention Comfort Measures on Day of or Day After Procedure":
  from
  		"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter,
  		["Procedure": "General or Neuraxial Anesthesia"] AnesthesiaProcedure,
  		"Intervention Comfort Measures" ComfortMeasure
		where AnesthesiaProcedure.status = 'completed'
				and Global."Normalize Interval"(AnesthesiaProcedure.performed) ends 1 day after day of start of QualifyingEncounter.period
        and Coalesce(start of Global."Normalize Interval"(ComfortMeasure.performed), ComfortMeasure.authoredOn) during TJC."CalendarDayOfOrDayAfter"(end of Global."Normalize Interval"(AnesthesiaProcedure.performed))
    return QualifyingEncounter</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>EXM108</td>
                        
                        
                            <td>SDE Race</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "SDE Race":
  SDE."SDE Race"</code></pre>
                
                <br/><br/>
            
                <table class="grid-dict">
                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
                    <tr>
                        
                            <td>SupplementalDataElements</td>
                        
                        
                            <td>SDE Race</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "SDE Race":
  (flatten (
      Patient.extension Extension
        where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'
          return Extension.extension
    )) E
      where E.url = 'ombCategory'
        or E.url = 'detailed'
      return E.value as Coding</code></pre>
                
                <br/><br/>
            
          </td>
        </tr>
        
    </table>
</div>
  </text>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis">
    <valueCode value="Encounter"/>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="Measurement Period"/>
      <use value="in"/>
      <min value="0"/>
      <max value="1"/>
      <type value="Period"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="SDE Sex"/>
      <use value="out"/>
      <min value="0"/>
      <max value="1"/>
      <type value="Coding"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="Numerator"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Encounter"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name
            value="Encounter With VTE Prophylaxis Received on Day of or Day After Admission or Procedure"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Encounter"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name
            value="Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Encounter"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="Inpatient Encounter"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Encounter"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="Admission Without VTE or Obstetrical Conditions"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Encounter"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="VTE Prophylaxis by Medication Administered or Device Applied"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Any"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name
            value="Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Encounter"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name
            value="Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Encounter"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name
            value="Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Encounter"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name
            value="Encounter With Low Risk for VTE or Anticoagulant Administered"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Encounter"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name
            value="Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Encounter"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="Is In Low Risk for VTE or On Anticoagulant"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Observation"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name
            value="Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Encounter"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="Encounter With No VTE Prophylaxis Due to Medical Reason"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Encounter"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name
            value="No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Encounter"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="No VTE Prophylaxis Medication Administered or Ordered"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Any"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name
            value="No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Encounter"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="No VTE Prophylaxis Device Applied or Ordered"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Any"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name
            value="No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Encounter"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name
            value="No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Encounter"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="Encounter With No VTE Prophylaxis Due to Patient Refusal"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Encounter"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name
            value="No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Encounter"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name
            value="No VTE Prophylaxis Medication or Device Due to Patient Refusal"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Any"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name
            value="No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Encounter"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="Denominator"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Encounter"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="Initial Population"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Encounter"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="SDE Payer"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Any"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="SDE Ethnicity"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Coding"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="Patient"/>
      <use value="out"/>
      <min value="0"/>
      <max value="1"/>
      <type value="Patient"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="Denominator Exclusion"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Any"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="Encounter Less Than 2 Days"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Encounter"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="Encounter With ICU Location Stay 1 Day or More"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Encounter"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name
            value="Encounter With Principal Diagnosis of Mental Disorder or Stroke"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Encounter"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name
            value="Encounter With Principal Procedure of SCIP VTE Selected Surgery"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Any"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="SCIP VTE Selected Surgery"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Procedure"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name
            value="Encounter With Intervention Comfort Measures From Day of Start of Hospitalization To Day After Admission"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Encounter"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="Intervention Comfort Measures"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Any"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name
            value="Encounter With Intervention Comfort Measures on Day of or Day After Procedure"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Encounter"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="SDE Race"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Coding"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Encounter"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
      <codeFilter>
        <path value="type"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"/>
      </codeFilter>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Patient"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Patient"/>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Condition"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Condition"/>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationAdministration"/>
      <profile
               value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
      <codeFilter>
        <path value="medication"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39"/>
      </codeFilter>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationAdministration"/>
      <profile
               value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationAdministration"/>
      <profile
               value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationAdministration"/>
      <profile
               value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationAdministration"/>
      <profile
               value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
      <codeFilter>
        <path value="medication"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39"/>
      </codeFilter>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationAdministration"/>
      <profile
               value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationAdministration"/>
      <profile
               value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationAdministration"/>
      <profile
               value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Procedure"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
      <codeFilter>
        <path value="code"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.48"/>
      </codeFilter>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Procedure"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
      <codeFilter>
        <path value="code"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.48"/>
      </codeFilter>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Procedure"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
      <codeFilter>
        <path value="code"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743"/>
      </codeFilter>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationAdministration"/>
      <profile
               value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Procedure"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
      <codeFilter>
        <path value="code"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743"/>
      </codeFilter>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationAdministration"/>
      <profile
               value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Condition"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Condition"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Condition"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Condition"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Procedure"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Procedure"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Observation"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Observation"/>
      <codeFilter>
        <path value="code"/>
        <code>
          <system value="http://loinc.org"/>
          <code value="72136-5"/>
          <display value="Risk for venous thromboembolism"/>
        </code>
      </codeFilter>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Observation"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Observation"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationAdministration"/>
      <profile
               value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationAdministration"/>
      <profile
               value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationAdministration"/>
      <profile
               value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
      <codeFilter>
        <path value="medication"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.41"/>
      </codeFilter>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Encounter"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
      <codeFilter>
        <path value="type"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143"/>
      </codeFilter>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Encounter"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Procedure"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
      <codeFilter>
        <path value="code"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743"/>
      </codeFilter>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationAdministration"/>
      <profile
               value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
      <codeFilter>
        <path value="medication"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39"/>
      </codeFilter>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationAdministration"/>
      <profile
               value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationAdministration"/>
      <profile
               value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationAdministration"/>
      <profile
               value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationAdministration"/>
      <profile
               value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
      <codeFilter>
        <path value="medication"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39"/>
      </codeFilter>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationAdministration"/>
      <profile
               value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationAdministration"/>
      <profile
               value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationAdministration"/>
      <profile
               value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationRequest"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
      <codeFilter>
        <path value="medication"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39"/>
      </codeFilter>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationRequest"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationRequest"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationRequest"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationRequest"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
      <codeFilter>
        <path value="medication"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39"/>
      </codeFilter>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationRequest"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationRequest"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationRequest"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="ServiceRequest"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="ServiceRequest"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="ServiceRequest"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="ServiceRequest"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="ServiceRequest"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="ServiceRequest"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Procedure"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
      <codeFilter>
        <path value="code"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.48"/>
      </codeFilter>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Procedure"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
      <codeFilter>
        <path value="code"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.48"/>
      </codeFilter>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Procedure"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
      <codeFilter>
        <path value="code"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743"/>
      </codeFilter>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Procedure"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
      <codeFilter>
        <path value="code"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743"/>
      </codeFilter>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Procedure"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
      <codeFilter>
        <path value="code"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743"/>
      </codeFilter>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Coverage"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Coverage"/>
      <codeFilter>
        <path value="type"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"/>
      </codeFilter>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Patient"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Patient"/>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Location"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Location"/>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Condition"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Condition"/>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Procedure"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Procedure"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Procedure"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Procedure"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Procedure"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Procedure"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Procedure"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="ServiceRequest"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="ServiceRequest"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Procedure"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Procedure"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
      <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>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="Procedure"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
      <codeFilter>
        <path value="code"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743"/>
      </codeFilter>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
    <valueCoding>
      <system value="http://terminology.hl7.org/CodeSystem/condition-clinical"/>
      <code value="active"/>
    </valueCoding>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
    <valueCoding>
      <system value="http://terminology.hl7.org/CodeSystem/condition-clinical"/>
      <code value="recurrence"/>
    </valueCoding>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
    <valueCoding>
      <system value="http://terminology.hl7.org/CodeSystem/condition-clinical"/>
      <code value="relapse"/>
    </valueCoding>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
    <valueCoding>
      <system value="http://terminology.hl7.org/CodeSystem/condition-clinical"/>
      <code value="inactive"/>
    </valueCoding>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
    <valueCoding>
      <system value="http://terminology.hl7.org/CodeSystem/condition-clinical"/>
      <code value="remission"/>
    </valueCoding>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
    <valueCoding>
      <system value="http://terminology.hl7.org/CodeSystem/condition-clinical"/>
      <code value="resolved"/>
    </valueCoding>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-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/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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="0"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-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 = &#39;male&#39; then Code { code: &#39;M&#39;, system: &#39;http://hl7.org/fhir/v3/AdministrativeGender&#39;, display: &#39;Male&#39; }
      when Patient.gender = &#39;female&#39; then Code { code: &#39;F&#39;, system: &#39;http://hl7.org/fhir/v3/AdministrativeGender&#39;, display: &#39;Female&#39; }
      else null
    end"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="1"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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="2"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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="3"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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 R4define &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/us/cqfmeasures/StructureDefinition/cqfm-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 = &#39;finished&#39;
		    and &quot;LengthInDays&quot;(EncounterInpatient.period) &lt;= 120
			and EncounterInpatient.period ends during &quot;Measurement Period&quot;"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="5"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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="6"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-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 devicesdefine &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 =&#39;completed&#39;
			     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 = &#39;completed&#39;)
    union ([&quot;MedicationAdministration&quot;: medication in &quot;Injectable Factor Xa Inhibitor for VTE Prophylaxis&quot;] FactorXa where FactorXa.status = &#39;completed&#39;)
     union ([&quot;MedicationAdministration&quot;: medication in &quot;Warfarin&quot;] Warfarin where Warfarin.status = &#39;completed&#39;)
      union (
          [&quot;Procedure&quot;: &quot;Device Application&quot;] DeviceApplied
          where DeviceApplied.status = &#39;complete&#39;
                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="7"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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 = &#39;completed&#39;
      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 = &#39;completed&#39;
                and AnesthesiaProcedure.status = &#39;completed&#39;
      			    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="8"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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 = &#39;confirmed&#39;
*/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 = &#39;confirmed&#39;
    				and Global.&quot;Normalize Interval&quot;(VTEDiagnosis.onset) before start of QualifyingEncounter.period
      		)"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="9"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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 = &#39;completed&#39;
	     and Global.&quot;Normalize Interval&quot;(HipKneeProcedure.performed) starts on or before end of QualifyingEncounter.period"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="10"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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="11"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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="12"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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 {&#39;final&#39;,&#39;amended&#39;, &#39;corrected&#39;}
	  )
  union ( [&quot;Observation&quot;: &quot;INR&quot;] INRLabTest
        where INRLabTest.value as Quantity &gt; 3.0
            and INRLabTest.status in {&#39;final&#39;,&#39;amended&#39;, &#39;corrected&#39;}
        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 = &#39;complete&#39;
         return &quot;Observation&quot; { id: AnticoagulantMedication.id, effective: AnticoagulantMedication.effective }
      )"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="13"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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="14"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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="15"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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="16"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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 = &#39;not-done&#39;
        )
  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 {&#39;completed&#39;, &#39;cancelled&#39;}
        //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="17"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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="18"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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 = &#39;completed&#39;
    //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, &#39;qicore-recorded&#39;).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 = &#39;not-done&#39;
         return {id: DeviceApplied.id, requestStatusReason: DeviceApplied.statusReason, authoredOn: DeviceNotDoneTiming}

    )"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="19"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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 = &#39;completed&#39;
			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="20"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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 = &#39;completed&#39;
  		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="21"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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="22"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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="23"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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="24"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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="25"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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="26"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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="27"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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="28"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-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="29"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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="30"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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/us/cqfmeasures/StructureDefinition/cqfm-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 = &#39;http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity&#39;
          return Extension.extension
    )) E
      where E.url = &#39;ombCategory&#39;
        or E.url = &#39;detailed&#39;
      return E.value as Coding"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="32"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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="33"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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="34"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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="35"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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="36"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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, &#39;qicore-encounter-procedure&#39;)
  where FHIRHelpers.ToInteger(Global.GetExtension(EncounterProcedure, &#39;rank&#39;).value as FHIR.positiveInt) = 1
      and Global.GetId(FHIRHelpers.ToString((Global.GetExtension(EncounterProcedure, &#39;procedure&#39;).value as FHIR.Reference).reference)) = SelectedProcedure.id
      and Global.&quot;Normalize Interval&quot;(SelectedProcedure.performed) during QualifyingEncounter.period"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="37"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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 = &#39;completed&#39;"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="38"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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="39"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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 = &#39;order&#39;
  )
  	union
    	([&quot;Procedure&quot;: &quot;Comfort Measures&quot;] InterventionPerformed
      	where InterventionPerformed.status in {&#39;completed&#39;, &#39;in-progress&#39;})"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="40"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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 = &#39;completed&#39;
				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="41"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="EXM108"/>
    </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/us/cqfmeasures/StructureDefinition/cqfm-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 = &#39;http://hl7.org/fhir/us/core/StructureDefinition/us-core-race&#39;
          return Extension.extension
    )) E
      where E.url = &#39;ombCategory&#39;
        or E.url = &#39;detailed&#39;
      return E.value as Coding"/>
    </extension>
    <extension url="displaySequence">
      <valueInteger value="43"/>
    </extension>
  </extension>
  <url value="http://hl7.org/fhir/us/cqfmeasures/Measure/measure-vte-1-FHIR"/>
  <identifier>
    <use value="official"/>
    <system value="http://example.org/fhir/cqi/ecqm/Measure/Identifier/cms"/>
    <value value="108"/>
  </identifier>
  <identifier>
    <use value="official"/>
    <system value="http://example.org/fhir/cqi/ecqm/Measure/Identifier/nqf"/>
    <value value="0371"/>
  </identifier>
  <version value="8.2.000"/>
  <name value="VTE_1_FHIR"/>
  <title value="Venous Thromboembolism Prophylaxis"/>
  <status value="active"/>
  <experimental value="true"/>
  <date value="2021-04-03"/>
  <publisher value="Clinical Quality Information WG"/>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org/Special/committees/cqi/index.cfm"/>
    </telecom>
  </contact>
  <description
               value="This measure assesses the number of patients who received VTE prophylaxis or have documentation why no VTE prophylaxis was given the day of or the day after hospital admission or surgery end date for surgeries that start the day of or the day after hospital admission"/>
  <useContext>
    <code>
      <system value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
      <code value="program"/>
    </code>
    <valueCodeableConcept>
      <coding>
        <system
                value="http://hl7.org/fhir/us/cqfmeasures/CodeSystem/quality-programs"/>
        <code value="eh-cah"/>
        <display value="EH/CAH"/>
      </coding>
    </valueCodeableConcept>
  </useContext>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="US"/>
    </coding>
  </jurisdiction>
  <copyright
             value="Measure specifications are in the Public Domain.

LOINC(R) is a registered trademark of the Regenstrief Institute.

This material contains SNOMED Clinical Terms(R) (SNOMED CT(C)) copyright 2004-2017 International Health Terminology Standards Development Organization. All rights reserved."/>
  <approvalDate value="2019-03-08"/>
  <lastReviewDate value="2019-03-08"/>
  <effectivePeriod>
    <start value="2018-01-01"/>
    <end value="2018-12-31"/>
  </effectivePeriod>
  <topic>
    <coding>
      <system value="http://loinc.org"/>
      <code value="57024-2"/>
      <display value="Health Quality Measure Document"/>
    </coding>
  </topic>
  <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 Global"/>
    <resource
              value="http://hl7.org/fhir/us/cqfmeasures/Library/MATGlobalCommonFunctions|5.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 FHIRHelpers"/>
    <resource
              value="http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1"/>
  </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 Global"/>
    <resource
              value="http://hl7.org/fhir/us/cqfmeasures/Library/MATGlobalCommonFunctions|5.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="Library Global"/>
    <resource
              value="http://hl7.org/fhir/us/cqfmeasures/Library/MATGlobalCommonFunctions|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>
  <library value="http://hl7.org/fhir/us/cqfmeasures/Library/EXM108"/>
  <disclaimer
              value="These performance measures are not clinical guidelines and do not establish a standard of medical care, and have not been tested for all potential applications. The measures and specifications are provided without warranty"/>
  <scoring>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/measure-scoring"/>
      <code value="proportion"/>
      <display value="Proportion"/>
    </coding>
  </scoring>
  <type>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/measure-type"/>
      <code value="process"/>
    </coding>
  </type>
  <rationale
             value="Hospitalized patients at high-risk for VTE may develop an asymptomatic deep vein thrombosis (DVT), and die from pulmonary embolism (PE) even before the diagnosis is suspected. The majority of fatal events occur as sudden or abrupt death, underscoring the importance of prevention as the most critical action step for reducing death from PE (Geerts, et al, 2008).

The estimated annual incidence of deep-vein thrombosis (DVT) and pulmonary embolism (PE), known collectively as venous thromboembolism (VTE), is approximately 900,000 (Geerts, et al, 2008). Approximately two-thirds of cases of DVT or PE are associated with recent hospitalization. This is consistent with the 2001 report by The Agency for Healthcare Research and Quality (AHRQ). AHRQ indicates that &quot;the appropriate application of effective preventive measures in hospitals has major potential for improving patient safety by reducing the incidence of venous thromboembolism&quot; (Shojania, 2001).

Despite its proven effectiveness, rates of appropriate thromboprophylaxis remain low in both medical and surgical patients. A recent analysis from the ENDORSE survey, which evaluated prophylaxis rates in 17,084 major surgery patients, found that more than one third of patients at risk for VTE (38%) did not receive prophylaxis and that rates varied by surgery type (Cohen, et al., 2008).

In a review of evidence-based patient safety practices, the Agency for Healthcare Research and Quality defined thromboprophylaxis against VTE as the &quot;number one patient safety practice&quot; for hospitalized patients (Shojania, 2001). Updated &quot;safe practices&quot; published by the National Quality Forum (NQF) recommend routine evaluation of hospitalized patients for risk of VTE and use of appropriate prophylaxis (National Quality Forum. National Voluntary Consensus Standards for Prevention and Care of Venous Thromboembolism, 2006).

As noted by the ACCP, a vast number of randomized clinical trials provide irrefutable evidence that thromboprophylaxis reduces VTE events, and there are studies that have also shown that fatal PE is prevented by thromboprophylaxis (Geerts, et al. 2008).

Some select surgeries have previously been monitored in the Surgical Care Improvement Project; since performance on these surgeries has achieved very high levels, they are not included in this measure."/>
  <clinicalRecommendationStatement
                                   value="Failure to recognize and protect patients at risk for venous thromboembolism (VTE) increases the chances for acutely ill hospitalized patients at high risk for developing a deep vein thrombosis or dying from a pulmonary emboli. Screening all patients is the only evidence based practice in reducing incidence of disease.  All hospitalized patients should be evaluated for primary VTE prophylaxis, and given appropriate prophylaxis when indicated."/>
  <improvementNotation>
    <coding>
      <system
              value="http://terminology.hl7.org/CodeSystem/measure-improvement-notation"/>
      <code value="increase"/>
      <display value="Increased score indicates improvement"/>
    </coding>
  </improvementNotation>
  <guidance
            value="When low dose unfractionated heparin is administered for VTE Prophylaxis, the intended administration route for low dose unfractionated heparin is subcutaneous.

Reasons for no pharmacological and no mechanical VTE prophylaxis must be explicitly documented by the MD/APN/PA or pharmacist and linked with VTE prophylaxis. Ambulation alone is not a sufficient reason for not administering VTE prophylaxis. In order for ambulation/patient ambulating to be considered as an acceptable reason, there needs to be explicit documentation, e.g., &quot;patient out of bed and ambulating in halls - no VTE prophylaxis needed.&quot;"/>
  <group>
    <population>
      <code>
        <coding>
          <system
                  value="http://terminology.hl7.org/CodeSystem/measure-population"/>
          <code value="initial-population"/>
          <display value="Initial Population"/>
        </coding>
      </code>
      <description
                   value="Patients age 18 and older discharged from hospital inpatient acute care without a diagnosis of venous thromboembolism (VTE) or obstetrics with a length of stay less than or equal to 120 days that ends during the measurement period"/>
      <criteria>
        <language value="text/cql.identifier"/>
        <expression value="Initial Population"/>
      </criteria>
    </population>
    <population>
      <code>
        <coding>
          <system
                  value="http://terminology.hl7.org/CodeSystem/measure-population"/>
          <code value="numerator"/>
          <display value="Numerator"/>
        </coding>
      </code>
      <description
                   value="Patients who received VTE prophylaxis:
- the day of or the day after hospital admission
- the day of or the day after surgery end date for surgeries that end the day of or the day after hospital admission

Patients who have documentation of a reason why no VTE prophylaxis was given:
- between arrival and hospital admission
- the day of or the day after hospital admission
- the day of or the day after surgery end date (for surgeries that end the day of or the day after hospital admission)"/>
      <criteria>
        <language value="text/cql.identifier"/>
        <expression value="Numerator"/>
      </criteria>
    </population>
    <population>
      <code>
        <coding>
          <system
                  value="http://terminology.hl7.org/CodeSystem/measure-population"/>
          <code value="denominator"/>
          <display value="Denominator"/>
        </coding>
      </code>
      <description value="All patients in the initial population"/>
      <criteria>
        <language value="text/cql.identifier"/>
        <expression value="Denominator"/>
      </criteria>
    </population>
    <population>
      <code>
        <coding>
          <system
                  value="http://terminology.hl7.org/CodeSystem/measure-population"/>
          <code value="denominator-exclusion"/>
          <display value="Denominator Exclusion"/>
        </coding>
      </code>
      <description
                   value="* Patients who have a length of stay less than 2 days
* Patients with comfort measures documented anytime between arrival and the day after hospital admission
* Patients with comfort measures documented by the day after surgery end date for surgeries that start the day of or the day after hospital admission
* Patients who are direct admits to intensive care unit (ICU), or transferred to ICU the day of or the day after hospital admission with ICU length of stay greater than or equal to one day
* Patients with a principal diagnosis of mental disorders or stroke
* Patients with a principal procedure of Surgical Care Improvement Project (SCIP) VTE selected surgeries"/>
      <criteria>
        <language value="text/cql.identifier"/>
        <expression value="Denominator Exclusion"/>
      </criteria>
    </population>
  </group>
  <supplementalData>
    <usage>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
        <code value="supplemental-data"/>
      </coding>
    </usage>
    <criteria>
      <language value="text/cql.identifier"/>
      <expression value="SDE Ethnicity"/>
    </criteria>
  </supplementalData>
  <supplementalData>
    <usage>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
        <code value="supplemental-data"/>
      </coding>
    </usage>
    <criteria>
      <language value="text/cql.identifier"/>
      <expression value="SDE Payer"/>
    </criteria>
  </supplementalData>
  <supplementalData>
    <usage>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
        <code value="supplemental-data"/>
      </coding>
    </usage>
    <criteria>
      <language value="text/cql.identifier"/>
      <expression value="SDE Race"/>
    </criteria>
  </supplementalData>
  <supplementalData>
    <usage>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
        <code value="supplemental-data"/>
      </coding>
    </usage>
    <criteria>
      <language value="text/cql.identifier"/>
      <expression value="SDE Sex"/>
    </criteria>
  </supplementalData>
</Measure>