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

: Breast Cancer Screening - XML Representation

Raw xml | Download



<Measure xmlns="http://hl7.org/fhir">
  <id value="BCSComponent"/>
  <meta>
    <profile
             value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/proportion-measure-cqfm"/>
    <profile
             value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm"/>
  </meta>
  <language value="en"/>
  <text>
    <status value="extensions"/>
    <div xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <table class="grid dict">
        
        <tr>
            <th scope="row"><b>Id: </b></th>
            <td style="padding-left: 4px;">BCSComponent</td>
        </tr>
        
        
        <tr>
            <th scope="row"><b>Url: </b></th>
            <td style="padding-left: 4px;">http://hl7.org/fhir/us/cqfmeasures/Measure/BCSComponent</td>
        </tr>
        
        
        <tr>
            <th scope="row"><b>Version: </b></th>
            <td style="padding-left: 4px;">0.0.001</td>
        </tr>
        
        
        
        <tr>
            <th scope="row"><b>Name: </b></th>
            <td style="padding-left: 4px;">BCSComponent</td>
        </tr>
        
        
        <tr>
            <th scope="row"><b>Title: </b></th>
            <td style="padding-left: 4px;">Breast Cancer Screening</td>
        </tr>
        
        
        
        <tr>
            <th scope="row"><b>Status: </b></th>
            <td style="padding-left: 4px;">draft</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>
                        
                        
                    
                
                
            </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-03T13:00:06-06:00</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 is an example only.</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>1</td>
                        <td>boolean</td>
                    </tr>
                    
                    <tr>
                        <td>Denominator</td>
                        <td>out</td>
                        <td>0</td>
                        <td>1</td>
                        <td>boolean</td>
                    </tr>
                    
                    <tr>
                        <td>Initial Population</td>
                        <td>out</td>
                        <td>0</td>
                        <td>1</td>
                        <td>boolean</td>
                    </tr>
                    
                    <tr>
                        <td>Patient</td>
                        <td>out</td>
                        <td>0</td>
                        <td>1</td>
                        <td>Patient</td>
                    </tr>
                    
                    <tr>
                        <td>Qualifying Encounters</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>Denominator Exclusion</td>
                        <td>out</td>
                        <td>0</td>
                        <td>1</td>
                        <td>boolean</td>
                    </tr>
                    
                    <tr>
                        <td>Has Hospice</td>
                        <td>out</td>
                        <td>0</td>
                        <td>1</td>
                        <td>boolean</td>
                    </tr>
                    
                    <tr>
                        <td>Right Mastectomy Diagnosis</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Condition</td>
                    </tr>
                    
                    <tr>
                        <td>Right Mastectomy Procedure</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Procedure</td>
                    </tr>
                    
                    <tr>
                        <td>Left Mastectomy</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Condition</td>
                    </tr>
                    
                    <tr>
                        <td>Left Mastectomy Procedure</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Procedure</td>
                    </tr>
                    
                    <tr>
                        <td>Bilateral Mastectomy Diagnosis</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Condition</td>
                    </tr>
                    
                    <tr>
                        <td>Bilateral Mastectomy Procedure</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Procedure</td>
                    </tr>
                    
                    <tr>
                        <td>Advanced Illness and Frailty Exclusion Not Including Over Age 80</td>
                        <td>out</td>
                        <td>0</td>
                        <td>1</td>
                        <td>boolean</td>
                    </tr>
                    
                    <tr>
                        <td>Has Criteria Indicating Frailty</td>
                        <td>out</td>
                        <td>0</td>
                        <td>1</td>
                        <td>boolean</td>
                    </tr>
                    
                    <tr>
                        <td>Outpatient Encounters with Advanced Illness</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>Inpatient Encounter with Advanced Illness</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Encounter</td>
                    </tr>
                    
                    <tr>
                        <td>Dementia Medications In Year Before or During Measurement Period</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>MedicationDispense</td>
                    </tr>
                    
                    <tr>
                        <td>Long Term Care Periods Longer Than 90 Consecutive Days</td>
                        <td>out</td>
                        <td>0</td>
                        <td>1</td>
                        <td>boolean</td>
                    </tr>
                    
                    <tr>
                        <td>Long Term Care Periods During Measurement Period</td>
                        <td>out</td>
                        <td>0</td>
                        <td>*</td>
                        <td>Period</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>DiagnosticReport</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1018</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Patient</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.464.1003.101.12.1001</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.526.3.1240</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.464.1003.101.12.1025</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.464.1003.101.12.1023</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.464.1003.101.12.1016</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>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>ServiceRequest</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15</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.1108.15</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.464.1003.198.12.1070</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.464.1003.198.12.1071</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.464.1003.198.12.1134</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.464.1003.198.12.1069</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.464.1003.198.12.1071</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.464.1003.198.12.1133</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.464.1003.198.12.1068</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.464.1003.198.12.1005</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Patient</td>
                            <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>DeviceRequest</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.118.12.1300</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>DeviceUseStatement</td>
                            <td>device.code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.118.12.1300</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.464.1003.113.12.1074</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.464.1003.101.12.1088</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>Observation</td>
                            <td>code</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1075</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.464.1003.101.12.1087</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.464.1003.101.12.1086</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.464.1003.101.12.1085</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.464.1003.101.12.1084</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.464.1003.110.12.1082</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.464.1003.101.12.1083</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.464.1003.110.12.1082</td>
                                <td></td>
                            
                            
                        </tr>
                    
                        <tr>
                            <td>MedicationDispense</td>
                            <td>medication</td>
                            
                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.196.12.1510</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.464.1003.101.12.1014</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.464.1003.101.12.1012</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>Discharge to home for hospice care (procedure)</td>
                            <td>428361000124107</td>
                            <td>http://snomed.info/sct/731000124108/version/201709</td>
                        </tr>
                    
                        <tr>
                            <td>Discharge to healthcare facility for hospice care (procedure)</td>
                            <td>428371000124100</td>
                            <td>http://snomed.info/sct/731000124108/version/201709</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>Jurisdiction: </b></th>
            <td style="padding-left: 25px;">US</td>
        </tr>
        
        
        
        
        
        
        
        
        
        <tr>
            <th scope="row"><b>Effective Period: </b></th>
            <td style="padding-left: 4px;">2022-01-01..2022-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://hl7.org/fhir/us/cqfmeasures/Library/AdultOutpatientEncounters|2.0.000</li>
              
                <li>http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1</li>
              
                <li>http://hl7.org/fhir/us/cqfmeasures/Library/Hospice|2.0.000</li>
              
                <li>http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1</li>
              
                <li>http://hl7.org/fhir/us/cqfmeasures/Library/MATGlobalCommonFunctions|5.0.000</li>
              
                <li>http://hl7.org/fhir/us/cqfmeasures/Library/AdvancedIllnessandFrailtyExclusion|5.12.000</li>
              
                <li>http://hl7.org/fhir/us/cqfmeasures/Library/MATGlobalCommonFunctions|5.0.000</li>
              
                <li>http://snomed.info/sct|http://snomed.info/sct/731000124108/version/201709</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1018</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016</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.113883.3.666.5.307</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1070</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1071</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.122.12.1035</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1134</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1069</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.122.12.1036</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1133</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1068</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1005</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.118.12.1300</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1074</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1088</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1075</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1087</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1086</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1085</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1084</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1082</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1083</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.196.12.1510</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1014</li>
              
                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1012</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>BCSComponent</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>BCSComponent</td>
                        
                        
                            <td>Numerator</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Numerator":
  exists ( [DiagnosticReport: "Mammography"] Mammogram
        where ( Global."Normalize Interval" ( Mammogram.effective ) ends 27 months or less on or before
          end of "Measurement Period"
        )
          and Mammogram.status in { 'final', 'amended', 'corrected', 'appended' }
    )</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>BCSComponent</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>BCSComponent</td>
                        
                        
                            <td>Initial Population</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Initial Population":
  Patient.gender = 'female'
      and Global."CalendarAgeInYearsAt" ( FHIRHelpers.ToDate ( Patient.birthDate ), start of "Measurement Period" ) in Interval[51, 74 )
      and exists AdultOutpatientEncounters."Qualifying Encounters"</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>AdultOutpatientEncounters</td>
                        
                        
                            <td>Qualifying Encounters</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Qualifying Encounters":
	(
    [Encounter: "Office Visit"]
  		union [Encounter: "Annual Wellness Visit"]
  		union [Encounter: "Preventive Care Services - Established Office Visit, 18 and Up"]
  		union [Encounter: "Preventive Care Services-Initial Office Visit, 18 and Up"]
  		union [Encounter: "Home Healthcare Services"]
  ) ValidEncounter
		where ValidEncounter.period during "Measurement Period"
  		and ValidEncounter.status  = 'finished'</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>BCSComponent</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>BCSComponent</td>
                        
                        
                            <td>Initial Population</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Initial Population":
  Patient.gender = 'female'
      and Global."CalendarAgeInYearsAt" ( FHIRHelpers.ToDate ( Patient.birthDate ), start of "Measurement Period" ) in Interval[51, 74 )
      and exists AdultOutpatientEncounters."Qualifying Encounters"</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>BCSComponent</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>BCSComponent</td>
                        
                        
                            <td>Denominator Exclusion</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Denominator Exclusion":
  Hospice."Has Hospice"
      or ( ( exists "Right Mastectomy Diagnosis"
            or exists "Right Mastectomy Procedure"
        )
          and ( exists "Left Mastectomy"
              or exists "Left Mastectomy Procedure"
          )
      )
      or exists "Bilateral Mastectomy Diagnosis"
      or exists "Bilateral Mastectomy Procedure"
      or Frailty."Advanced Illness and Frailty Exclusion Not Including Over Age 80"
      or ( Global."CalendarAgeInYearsAt" ( FHIRHelpers.ToDate ( Patient.birthDate ), start of "Measurement Period" ) &gt;= 65
          and Frailty."Long Term Care Periods Longer Than 90 Consecutive Days"
      )</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>Hospice</td>
                        
                        
                            <td>Has Hospice</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Has Hospice":
	exists (
    [Encounter: "Encounter Inpatient"] DischargeHospice
			where DischargeHospice.status = 'finished'
		    and (
	        DischargeHospice.hospitalization.dischargeDisposition ~ "Discharge to home for hospice care (procedure)"
				    or DischargeHospice.hospitalization.dischargeDisposition ~ "Discharge to healthcare facility for hospice care (procedure)"
	    	)
				and DischargeHospice.period ends during "Measurement Period"
	)
    or exists (
      [ServiceRequest: "Hospice care ambulatory"] HospiceOrder
        where HospiceOrder.intent = 'order'
            and HospiceOrder.authoredOn in "Measurement Period"
    )
    or exists (
      [Procedure: "Hospice care ambulatory"] HospicePerformed
        where HospicePerformed.status = 'completed'
          and Global."Normalize Interval"(HospicePerformed.performed) overlaps "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>BCSComponent</td>
                        
                        
                            <td>Right Mastectomy Diagnosis</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Right Mastectomy Diagnosis":
  ( ( [Condition: "Status Post Right Mastectomy"] )
      union ( [Condition: "Unilateral Mastectomy, Unspecified Laterality"] UnilateralMastectomyDiagnosis
          where UnilateralMastectomyDiagnosis.bodySite in "Right"
      ) ) RightMastectomy
      where Global."Normalize Interval" ( RightMastectomy.onset ) starts on or before
      end of "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>BCSComponent</td>
                        
                        
                            <td>Right Mastectomy Procedure</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Right Mastectomy Procedure":
  [Procedure: "Unilateral Mastectomy Right"] UnilateralMastectomyRightPerformed
      where Global."Normalize Interval" ( UnilateralMastectomyRightPerformed.performed ) ends on or before
      end of "Measurement Period"
        and UnilateralMastectomyRightPerformed.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>BCSComponent</td>
                        
                        
                            <td>Left Mastectomy</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Left Mastectomy":
  ( ( [Condition: "Status Post Left Mastectomy"] )
      union ( [Condition: "Unilateral Mastectomy, Unspecified Laterality"] UnilateralMastectomyDiagnosis
          where UnilateralMastectomyDiagnosis.bodySite in "Left"
      ) ) LeftMastectomy
      where Global."Normalize Interval" ( LeftMastectomy.onset ) starts on or before
      end of "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>BCSComponent</td>
                        
                        
                            <td>Left Mastectomy Procedure</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Left Mastectomy Procedure":
  [Procedure: "Unilateral Mastectomy Left"] UnilateralMastectomyLeftPerformed
      where Global."Normalize Interval" ( UnilateralMastectomyLeftPerformed.performed ) ends on or before
      end of "Measurement Period"
        and UnilateralMastectomyLeftPerformed.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>BCSComponent</td>
                        
                        
                            <td>Bilateral Mastectomy Diagnosis</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Bilateral Mastectomy Diagnosis":
  [Condition: "History of bilateral mastectomy"] BilateralMastectomyHistory
      where Global."Normalize Interval" ( BilateralMastectomyHistory.onset ) starts on or before
      end of "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>BCSComponent</td>
                        
                        
                            <td>Bilateral Mastectomy Procedure</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Bilateral Mastectomy Procedure":
  [Procedure: "Bilateral Mastectomy"] BilateralMastectomyPerformed
      where Global."Normalize Interval" ( BilateralMastectomyPerformed.performed ) ends on or before
      end of "Measurement Period"
        and BilateralMastectomyPerformed.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>AdvancedIllnessandFrailtyExclusion</td>
                        
                        
                            <td>Advanced Illness and Frailty Exclusion Not Including Over Age 80</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Advanced Illness and Frailty Exclusion Not Including Over Age 80":
  //If the measure does NOT include populations age 80 and older, then use this logic:
      	Global."CalendarAgeInYearsAt"(FHIRHelpers.ToDate(Patient.birthDate), start of "Measurement Period")&gt;= 65
              and "Has Criteria Indicating Frailty"
              and ( Count("Outpatient Encounters with Advanced Illness")&gt;= 2
                  or exists ( "Inpatient Encounter with Advanced Illness" )
                  or exists "Dementia Medications In Year Before or 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>AdvancedIllnessandFrailtyExclusion</td>
                        
                        
                            <td>Has Criteria Indicating Frailty</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Has Criteria Indicating Frailty":
  //Ask Bryn about devices
      	exists ( [DeviceRequest: "Frailty Device"] FrailtyDeviceOrder
      			where FrailtyDeviceOrder.authoredOn during "Measurement Period"
      	)
      		or exists ( [DeviceUseStatement: "Frailty Device"] FrailtyDeviceUse
      				where Global."Normalize Interval"(FrailtyDeviceUse.timing) overlaps "Measurement Period"
      		)
      		or exists ( [Condition: "Frailty Diagnosis"] FrailtyDiagnosis
      				where Global."Prevalence Period"(FrailtyDiagnosis) overlaps "Measurement Period"
      		)
      		or exists ( [Encounter: "Frailty Encounter"] FrailtyEncounter
      				where FrailtyEncounter.period overlaps "Measurement Period"
      		)
      		or exists ( [Observation: "Frailty Symptom"] FrailtySymptomObservation
      				where Global."Normalize Interval"(FrailtySymptomObservation.effective) overlaps "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>AdvancedIllnessandFrailtyExclusion</td>
                        
                        
                            <td>Outpatient Encounters with Advanced Illness</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Outpatient Encounters with Advanced Illness":
  ( [Encounter: "Outpatient"]
      		union [Encounter: "Observation"]
      		union [Encounter: "ED"]
      		union [Encounter: "Nonacute Inpatient"] ) OutpatientEncounter
      		 with [Condition: "Advanced Illness"] AdvancedIllnessDiagnosis
                  such that exists (
                      OutpatientEncounter.diagnosis.condition EncounterDiagnosis
                          where EndsWith(EncounterDiagnosis.reference, AdvancedIllnessDiagnosis.id)
                  )
                  and OutpatientEncounter.period starts 2 years or less on or before
      			end of "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>AdvancedIllnessandFrailtyExclusion</td>
                        
                        
                            <td>Inpatient Encounter with Advanced Illness</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Inpatient Encounter with Advanced Illness":
  [Encounter: "Acute Inpatient"] InpatientEncounter
      		with [Condition: "Advanced Illness"] AdvancedIllnessDiagnosis
                  such that exists (
                      InpatientEncounter.diagnosis.condition EncounterDiagnosis
                          where EndsWith(EncounterDiagnosis.reference, AdvancedIllnessDiagnosis.id)
                  )
      			and InpatientEncounter.period starts 2 years or less on or before
      			end of "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>AdvancedIllnessandFrailtyExclusion</td>
                        
                        
                            <td>Dementia Medications In Year Before or During Measurement Period</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Dementia Medications In Year Before or During Measurement Period":
  ["MedicationDispense": "Dementia Medications"] DementiaMed
      		where DementiaMed.whenHandedOver during Interval[
                  ( start of "Measurement Period" - 1 year ), end of "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>AdvancedIllnessandFrailtyExclusion</td>
                        
                        
                            <td>Long Term Care Periods Longer Than 90 Consecutive Days</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">define "Long Term Care Periods Longer Than 90 Consecutive Days":
  exists ( "Long Term Care Periods During Measurement Period" LongTermCareDuringMP
        where duration in days of LongTermCareDuringMP &gt; 90
    )</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>AdvancedIllnessandFrailtyExclusion</td>
                        
                        
                            <td>Long Term Care Periods During Measurement Period</td>
                        
                        
                    </tr>
                </table>
                
                    <pre><code class="language-cql">// start heredefine "Long Term Care Periods During Measurement Period":
  ( [Encounter: "Care Services in Long-Term Residential Facility"]
              		union [Encounter: "Nursing Facility Visit"] ) LongTermFacilityEncounter
              		where LongTermFacilityEncounter.period overlaps "Measurement Period"
              		return LongTermFacilityEncounter.period
              			intersect "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>BCSComponent</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="boolean"/>
  </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="1"/>
      <type value="boolean"/>
    </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="1"/>
      <type value="boolean"/>
    </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="1"/>
      <type value="boolean"/>
    </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="Qualifying Encounters"/>
      <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="Denominator Exclusion"/>
      <use value="out"/>
      <min value="0"/>
      <max value="1"/>
      <type value="boolean"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="Has Hospice"/>
      <use value="out"/>
      <min value="0"/>
      <max value="1"/>
      <type value="boolean"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="Right Mastectomy Diagnosis"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Condition"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="Right Mastectomy Procedure"/>
      <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="Left Mastectomy"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Condition"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="Left Mastectomy Procedure"/>
      <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="Bilateral Mastectomy Diagnosis"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Condition"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="Bilateral Mastectomy Procedure"/>
      <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="Advanced Illness and Frailty Exclusion Not Including Over Age 80"/>
      <use value="out"/>
      <min value="0"/>
      <max value="1"/>
      <type value="boolean"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="Has Criteria Indicating Frailty"/>
      <use value="out"/>
      <min value="0"/>
      <max value="1"/>
      <type value="boolean"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="Outpatient Encounters with Advanced Illness"/>
      <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 with Advanced Illness"/>
      <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="Dementia Medications In Year Before or During Measurement Period"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="MedicationDispense"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="Long Term Care Periods Longer Than 90 Consecutive Days"/>
      <use value="out"/>
      <min value="0"/>
      <max value="1"/>
      <type value="boolean"/>
    </valueParameterDefinition>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter">
    <valueParameterDefinition>
      <name value="Long Term Care Periods During Measurement Period"/>
      <use value="out"/>
      <min value="0"/>
      <max value="*"/>
      <type value="Period"/>
    </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="DiagnosticReport"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport"/>
      <codeFilter>
        <path value="code"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1018"/>
      </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="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.464.1003.101.12.1001"/>
      </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.526.3.1240"/>
      </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.464.1003.101.12.1025"/>
      </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.464.1003.101.12.1023"/>
      </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.464.1003.101.12.1016"/>
      </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="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="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.113762.1.4.1108.15"/>
      </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.1108.15"/>
      </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.464.1003.198.12.1070"/>
      </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.464.1003.198.12.1071"/>
      </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.464.1003.198.12.1134"/>
      </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.464.1003.198.12.1069"/>
      </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.464.1003.198.12.1071"/>
      </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.464.1003.198.12.1133"/>
      </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.464.1003.198.12.1068"/>
      </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.464.1003.198.12.1005"/>
      </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="DeviceRequest"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/DeviceRequest"/>
      <codeFilter>
        <path value="code"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.118.12.1300"/>
      </codeFilter>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="DeviceUseStatement"/>
      <profile
               value="http://hl7.org/fhir/StructureDefinition/DeviceUseStatement"/>
      <codeFilter>
        <path value="device.code"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.118.12.1300"/>
      </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.464.1003.113.12.1074"/>
      </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.464.1003.101.12.1088"/>
      </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.464.1003.113.12.1075"/>
      </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.464.1003.101.12.1087"/>
      </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.464.1003.101.12.1086"/>
      </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.464.1003.101.12.1085"/>
      </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.464.1003.101.12.1084"/>
      </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.464.1003.110.12.1082"/>
      </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.464.1003.101.12.1083"/>
      </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.464.1003.110.12.1082"/>
      </codeFilter>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement">
    <valueDataRequirement>
      <type value="MedicationDispense"/>
      <profile
               value="http://hl7.org/fhir/StructureDefinition/MedicationDispense"/>
      <codeFilter>
        <path value="medication"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.196.12.1510"/>
      </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.464.1003.101.12.1014"/>
      </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.464.1003.101.12.1012"/>
      </codeFilter>
    </valueDataRequirement>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
    <valueCoding>
      <system value="http://snomed.info/sct"/>
      <version value="http://snomed.info/sct/731000124108/version/201709"/>
      <code value="428361000124107"/>
      <display value="Discharge to home for hospice care (procedure)"/>
    </valueCoding>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
    <valueCoding>
      <system value="http://snomed.info/sct"/>
      <version value="http://snomed.info/sct/731000124108/version/201709"/>
      <code value="428371000124100"/>
      <display
               value="Discharge to healthcare facility for hospice care (procedure)"/>
    </valueCoding>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="BCSComponent"/>
    </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="BCSComponent"/>
    </extension>
    <extension url="name">
      <valueString value="Numerator"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Numerator&quot;:
  exists ( [DiagnosticReport: &quot;Mammography&quot;] Mammogram
        where ( Global.&quot;Normalize Interval&quot; ( Mammogram.effective ) ends 27 months or less on or before
          end of &quot;Measurement Period&quot;
        )
          and Mammogram.status in { &#39;final&#39;, &#39;amended&#39;, &#39;corrected&#39;, &#39;appended&#39; }
    )"/>
    </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="BCSComponent"/>
    </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="3"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="BCSComponent"/>
    </extension>
    <extension url="name">
      <valueString value="Initial Population"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Initial Population&quot;:
  Patient.gender = &#39;female&#39;
      and Global.&quot;CalendarAgeInYearsAt&quot; ( FHIRHelpers.ToDate ( Patient.birthDate ), start of &quot;Measurement Period&quot; ) in Interval[51, 74 )
      and exists AdultOutpatientEncounters.&quot;Qualifying Encounters&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="AdultOutpatientEncounters"/>
    </extension>
    <extension url="name">
      <valueString value="Qualifying Encounters"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Qualifying Encounters&quot;:
	(
    [Encounter: &quot;Office Visit&quot;]
  		union [Encounter: &quot;Annual Wellness Visit&quot;]
  		union [Encounter: &quot;Preventive Care Services - Established Office Visit, 18 and Up&quot;]
  		union [Encounter: &quot;Preventive Care Services-Initial Office Visit, 18 and Up&quot;]
  		union [Encounter: &quot;Home Healthcare Services&quot;]
  ) ValidEncounter
		where ValidEncounter.period during &quot;Measurement Period&quot;
  		and ValidEncounter.status  = &#39;finished&#39;"/>
    </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="BCSComponent"/>
    </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="6"/>
    </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="7"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="BCSComponent"/>
    </extension>
    <extension url="name">
      <valueString value="Initial Population"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Initial Population&quot;:
  Patient.gender = &#39;female&#39;
      and Global.&quot;CalendarAgeInYearsAt&quot; ( FHIRHelpers.ToDate ( Patient.birthDate ), start of &quot;Measurement Period&quot; ) in Interval[51, 74 )
      and exists AdultOutpatientEncounters.&quot;Qualifying Encounters&quot;"/>
    </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="BCSComponent"/>
    </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="9"/>
    </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="10"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
    <extension url="libraryName">
      <valueString value="BCSComponent"/>
    </extension>
    <extension url="name">
      <valueString value="Denominator Exclusion"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Denominator Exclusion&quot;:
  Hospice.&quot;Has Hospice&quot;
      or ( ( exists &quot;Right Mastectomy Diagnosis&quot;
            or exists &quot;Right Mastectomy Procedure&quot;
        )
          and ( exists &quot;Left Mastectomy&quot;
              or exists &quot;Left Mastectomy Procedure&quot;
          )
      )
      or exists &quot;Bilateral Mastectomy Diagnosis&quot;
      or exists &quot;Bilateral Mastectomy Procedure&quot;
      or Frailty.&quot;Advanced Illness and Frailty Exclusion Not Including Over Age 80&quot;
      or ( Global.&quot;CalendarAgeInYearsAt&quot; ( FHIRHelpers.ToDate ( Patient.birthDate ), start of &quot;Measurement Period&quot; ) &gt;= 65
          and Frailty.&quot;Long Term Care Periods Longer Than 90 Consecutive Days&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="Hospice"/>
    </extension>
    <extension url="name">
      <valueString value="Has Hospice"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Has Hospice&quot;:
	exists (
    [Encounter: &quot;Encounter Inpatient&quot;] DischargeHospice
			where DischargeHospice.status = &#39;finished&#39;
		    and (
	        DischargeHospice.hospitalization.dischargeDisposition ~ &quot;Discharge to home for hospice care (procedure)&quot;
				    or DischargeHospice.hospitalization.dischargeDisposition ~ &quot;Discharge to healthcare facility for hospice care (procedure)&quot;
	    	)
				and DischargeHospice.period ends during &quot;Measurement Period&quot;
	)
    or exists (
      [ServiceRequest: &quot;Hospice care ambulatory&quot;] HospiceOrder
        where HospiceOrder.intent = &#39;order&#39;
            and HospiceOrder.authoredOn in &quot;Measurement Period&quot;
    )
    or exists (
      [Procedure: &quot;Hospice care ambulatory&quot;] HospicePerformed
        where HospicePerformed.status = &#39;completed&#39;
          and Global.&quot;Normalize Interval&quot;(HospicePerformed.performed) overlaps &quot;Measurement Period&quot;
    )"/>
    </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="BCSComponent"/>
    </extension>
    <extension url="name">
      <valueString value="Right Mastectomy Diagnosis"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Right Mastectomy Diagnosis&quot;:
  ( ( [Condition: &quot;Status Post Right Mastectomy&quot;] )
      union ( [Condition: &quot;Unilateral Mastectomy, Unspecified Laterality&quot;] UnilateralMastectomyDiagnosis
          where UnilateralMastectomyDiagnosis.bodySite in &quot;Right&quot;
      ) ) RightMastectomy
      where Global.&quot;Normalize Interval&quot; ( RightMastectomy.onset ) starts on or before
      end of &quot;Measurement Period&quot;"/>
    </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="BCSComponent"/>
    </extension>
    <extension url="name">
      <valueString value="Right Mastectomy Procedure"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Right Mastectomy Procedure&quot;:
  [Procedure: &quot;Unilateral Mastectomy Right&quot;] UnilateralMastectomyRightPerformed
      where Global.&quot;Normalize Interval&quot; ( UnilateralMastectomyRightPerformed.performed ) ends on or before
      end of &quot;Measurement Period&quot;
        and UnilateralMastectomyRightPerformed.status = &#39;completed&#39;"/>
    </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="BCSComponent"/>
    </extension>
    <extension url="name">
      <valueString value="Left Mastectomy"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Left Mastectomy&quot;:
  ( ( [Condition: &quot;Status Post Left Mastectomy&quot;] )
      union ( [Condition: &quot;Unilateral Mastectomy, Unspecified Laterality&quot;] UnilateralMastectomyDiagnosis
          where UnilateralMastectomyDiagnosis.bodySite in &quot;Left&quot;
      ) ) LeftMastectomy
      where Global.&quot;Normalize Interval&quot; ( LeftMastectomy.onset ) starts on or before
      end of &quot;Measurement Period&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="BCSComponent"/>
    </extension>
    <extension url="name">
      <valueString value="Left Mastectomy Procedure"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Left Mastectomy Procedure&quot;:
  [Procedure: &quot;Unilateral Mastectomy Left&quot;] UnilateralMastectomyLeftPerformed
      where Global.&quot;Normalize Interval&quot; ( UnilateralMastectomyLeftPerformed.performed ) ends on or before
      end of &quot;Measurement Period&quot;
        and UnilateralMastectomyLeftPerformed.status = &#39;completed&#39;"/>
    </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="BCSComponent"/>
    </extension>
    <extension url="name">
      <valueString value="Bilateral Mastectomy Diagnosis"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Bilateral Mastectomy Diagnosis&quot;:
  [Condition: &quot;History of bilateral mastectomy&quot;] BilateralMastectomyHistory
      where Global.&quot;Normalize Interval&quot; ( BilateralMastectomyHistory.onset ) starts on or before
      end of &quot;Measurement Period&quot;"/>
    </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="BCSComponent"/>
    </extension>
    <extension url="name">
      <valueString value="Bilateral Mastectomy Procedure"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Bilateral Mastectomy Procedure&quot;:
  [Procedure: &quot;Bilateral Mastectomy&quot;] BilateralMastectomyPerformed
      where Global.&quot;Normalize Interval&quot; ( BilateralMastectomyPerformed.performed ) ends on or before
      end of &quot;Measurement Period&quot;
        and BilateralMastectomyPerformed.status = &#39;completed&#39;"/>
    </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="AdvancedIllnessandFrailtyExclusion"/>
    </extension>
    <extension url="name">
      <valueString
                   value="Advanced Illness and Frailty Exclusion Not Including Over Age 80"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Advanced Illness and Frailty Exclusion Not Including Over Age 80&quot;:
  //If the measure does NOT include populations age 80 and older, then use this logic:
      	Global.&quot;CalendarAgeInYearsAt&quot;(FHIRHelpers.ToDate(Patient.birthDate), start of &quot;Measurement Period&quot;)&gt;= 65
              and &quot;Has Criteria Indicating Frailty&quot;
              and ( Count(&quot;Outpatient Encounters with Advanced Illness&quot;)&gt;= 2
                  or exists ( &quot;Inpatient Encounter with Advanced Illness&quot; )
                  or exists &quot;Dementia Medications In Year Before or During Measurement Period&quot;
              )"/>
    </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="AdvancedIllnessandFrailtyExclusion"/>
    </extension>
    <extension url="name">
      <valueString value="Has Criteria Indicating Frailty"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Has Criteria Indicating Frailty&quot;:
  //Ask Bryn about devices
      	exists ( [DeviceRequest: &quot;Frailty Device&quot;] FrailtyDeviceOrder
      			where FrailtyDeviceOrder.authoredOn during &quot;Measurement Period&quot;
      	)
      		or exists ( [DeviceUseStatement: &quot;Frailty Device&quot;] FrailtyDeviceUse
      				where Global.&quot;Normalize Interval&quot;(FrailtyDeviceUse.timing) overlaps &quot;Measurement Period&quot;
      		)
      		or exists ( [Condition: &quot;Frailty Diagnosis&quot;] FrailtyDiagnosis
      				where Global.&quot;Prevalence Period&quot;(FrailtyDiagnosis) overlaps &quot;Measurement Period&quot;
      		)
      		or exists ( [Encounter: &quot;Frailty Encounter&quot;] FrailtyEncounter
      				where FrailtyEncounter.period overlaps &quot;Measurement Period&quot;
      		)
      		or exists ( [Observation: &quot;Frailty Symptom&quot;] FrailtySymptomObservation
      				where Global.&quot;Normalize Interval&quot;(FrailtySymptomObservation.effective) overlaps &quot;Measurement Period&quot;
      		)"/>
    </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="AdvancedIllnessandFrailtyExclusion"/>
    </extension>
    <extension url="name">
      <valueString value="Outpatient Encounters with Advanced Illness"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Outpatient Encounters with Advanced Illness&quot;:
  ( [Encounter: &quot;Outpatient&quot;]
      		union [Encounter: &quot;Observation&quot;]
      		union [Encounter: &quot;ED&quot;]
      		union [Encounter: &quot;Nonacute Inpatient&quot;] ) OutpatientEncounter
      		 with [Condition: &quot;Advanced Illness&quot;] AdvancedIllnessDiagnosis
                  such that exists (
                      OutpatientEncounter.diagnosis.condition EncounterDiagnosis
                          where EndsWith(EncounterDiagnosis.reference, AdvancedIllnessDiagnosis.id)
                  )
                  and OutpatientEncounter.period starts 2 years or less on or before
      			end of &quot;Measurement Period&quot;"/>
    </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="AdvancedIllnessandFrailtyExclusion"/>
    </extension>
    <extension url="name">
      <valueString value="Inpatient Encounter with Advanced Illness"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Inpatient Encounter with Advanced Illness&quot;:
  [Encounter: &quot;Acute Inpatient&quot;] InpatientEncounter
      		with [Condition: &quot;Advanced Illness&quot;] AdvancedIllnessDiagnosis
                  such that exists (
                      InpatientEncounter.diagnosis.condition EncounterDiagnosis
                          where EndsWith(EncounterDiagnosis.reference, AdvancedIllnessDiagnosis.id)
                  )
      			and InpatientEncounter.period starts 2 years or less on or before
      			end of &quot;Measurement Period&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="AdvancedIllnessandFrailtyExclusion"/>
    </extension>
    <extension url="name">
      <valueString
                   value="Dementia Medications In Year Before or During Measurement Period"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Dementia Medications In Year Before or During Measurement Period&quot;:
  [&quot;MedicationDispense&quot;: &quot;Dementia Medications&quot;] DementiaMed
      		where DementiaMed.whenHandedOver during Interval[
                  ( start of &quot;Measurement Period&quot; - 1 year ), end of &quot;Measurement Period&quot;
              ]"/>
    </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="AdvancedIllnessandFrailtyExclusion"/>
    </extension>
    <extension url="name">
      <valueString
                   value="Long Term Care Periods Longer Than 90 Consecutive Days"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="define &quot;Long Term Care Periods Longer Than 90 Consecutive Days&quot;:
  exists ( &quot;Long Term Care Periods During Measurement Period&quot; LongTermCareDuringMP
        where duration in days of LongTermCareDuringMP &gt; 90
    )"/>
    </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="AdvancedIllnessandFrailtyExclusion"/>
    </extension>
    <extension url="name">
      <valueString value="Long Term Care Periods During Measurement Period"/>
    </extension>
    <extension url="statement">
      <valueString
                   value="// start heredefine &quot;Long Term Care Periods During Measurement Period&quot;:
  ( [Encounter: &quot;Care Services in Long-Term Residential Facility&quot;]
              		union [Encounter: &quot;Nursing Facility Visit&quot;] ) LongTermFacilityEncounter
              		where LongTermFacilityEncounter.period overlaps &quot;Measurement Period&quot;
              		return LongTermFacilityEncounter.period
              			intersect &quot;Measurement Period&quot;"/>
    </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="BCSComponent"/>
    </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="26"/>
    </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="27"/>
    </extension>
  </extension>
  <url value="http://hl7.org/fhir/us/cqfmeasures/Measure/BCSComponent"/>
  <version value="0.0.001"/>
  <name value="BCSComponent"/>
  <title value="Breast Cancer Screening"/>
  <status value="draft"/>
  <experimental value="true"/>
  <date value="2021-04-03T13:00:06-06:00"/>
  <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 is an example only."/>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="US"/>
    </coding>
  </jurisdiction>
  <effectivePeriod>
    <start value="2022-01-01"/>
    <end value="2022-12-31"/>
  </effectivePeriod>
  <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 AdultOutpatientEncounters"/>
    <resource
              value="http://hl7.org/fhir/us/cqfmeasures/Library/AdultOutpatientEncounters|2.0.000"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Library FHIRHelpers"/>
    <resource
              value="http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Library Hospice"/>
    <resource value="http://hl7.org/fhir/us/cqfmeasures/Library/Hospice|2.0.000"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Library FHIRHelpers"/>
    <resource
              value="http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Library Global"/>
    <resource
              value="http://hl7.org/fhir/us/cqfmeasures/Library/MATGlobalCommonFunctions|5.0.000"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Library Frailty"/>
    <resource
              value="http://hl7.org/fhir/us/cqfmeasures/Library/AdvancedIllnessandFrailtyExclusion|5.12.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 SNOMEDCT:2017-09"/>
    <resource
              value="http://snomed.info/sct|http://snomed.info/sct/731000124108/version/201709"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Mammography"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1018"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Office Visit"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Annual Wellness Visit"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display
             value="Value set Preventive Care Services - Established Office Visit, 18 and Up"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display
             value="Value set Preventive Care Services-Initial Office Visit, 18 and Up"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Home Healthcare Services"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016"/>
  </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 Encounter Inpatient"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Hospice care ambulatory"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Status Post Right Mastectomy"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1070"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Unilateral Mastectomy, Unspecified Laterality"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1071"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Right"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.122.12.1035"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Unilateral Mastectomy Right"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1134"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Status Post Left Mastectomy"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1069"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Left"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.122.12.1036"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Unilateral Mastectomy Left"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1133"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set History of bilateral mastectomy"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1068"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Bilateral Mastectomy"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1005"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Frailty Device"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.118.12.1300"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Frailty Diagnosis"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1074"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Frailty Encounter"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1088"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Frailty Symptom"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1075"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Outpatient"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1087"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Observation"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1086"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set ED"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1085"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Nonacute Inpatient"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1084"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Advanced Illness"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1082"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Acute Inpatient"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1083"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Dementia Medications"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.196.12.1510"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Care Services in Long-Term Residential Facility"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1014"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Value set Nursing Facility Visit"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1012"/>
  </relatedArtifact>
  <library value="http://hl7.org/fhir/us/cqfmeasures/Library/BCSComponent"/>
  <scoring>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/measure-scoring"/>
      <code value="proportion"/>
      <display value="Proportion"/>
    </coding>
  </scoring>
  <type>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/measure-type"/>
      <code value="process"/>
    </coding>
  </type>
  <improvementNotation>
    <coding>
      <system
              value="http://terminology.hl7.org/CodeSystem/measure-improvement-notation"/>
      <code value="increase"/>
    </coding>
  </improvementNotation>
  <group>
    <population id="2851A1BA-FBF8-4945-812E-6273F881CE13">
      <code>
        <coding>
          <system
                  value="http://terminology.hl7.org/CodeSystem/measure-population"/>
          <code value="initial-population"/>
          <display value="Initial Population"/>
        </coding>
      </code>
      <criteria>
        <language value="text/cql.identifier"/>
        <expression value="Initial Population"/>
      </criteria>
    </population>
    <population id="349C20C9-EA7E-4311-9E2D-CF81F1EBCEEF">
      <code>
        <coding>
          <system
                  value="http://terminology.hl7.org/CodeSystem/measure-population"/>
          <code value="denominator"/>
          <display value="Denominator"/>
        </coding>
      </code>
      <criteria>
        <language value="text/cql.identifier"/>
        <expression value="Denominator"/>
      </criteria>
    </population>
    <population id="369D1C75-B5D3-43EC-AEFC-2FF7F462306C">
      <code>
        <coding>
          <system
                  value="http://terminology.hl7.org/CodeSystem/measure-population"/>
          <code value="denominator-exclusion"/>
          <display value="Denominator Exclusion"/>
        </coding>
      </code>
      <criteria>
        <language value="text/cql.identifier"/>
        <expression value="Denominator Exclusion"/>
      </criteria>
    </population>
    <population id="6F1617E3-99D7-47E4-8392-85107BAA5311">
      <code>
        <coding>
          <system
                  value="http://terminology.hl7.org/CodeSystem/measure-population"/>
          <code value="numerator"/>
          <display value="Numerator"/>
        </coding>
      </code>
      <criteria>
        <language value="text/cql.identifier"/>
        <expression value="Numerator"/>
      </criteria>
    </population>
  </group>
  <supplementalData id="3dbb0697-08d7-48db-bc89-bc7f5230c36f">
    <usage>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
        <code value="supplemental-data"/>
      </coding>
    </usage>
    <criteria>
      <language value="text/cql.identifier"/>
      <expression value="SDE Ethnicity"/>
    </criteria>
  </supplementalData>
  <supplementalData id="2865e9d5-f4e8-4c99-812b-5eff79b4b775">
    <usage>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
        <code value="supplemental-data"/>
      </coding>
    </usage>
    <criteria>
      <language value="text/cql.identifier"/>
      <expression value="SDE Payer"/>
    </criteria>
  </supplementalData>
  <supplementalData id="513368dc-dfea-4377-a05d-d358e7e04fbb">
    <usage>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
        <code value="supplemental-data"/>
      </coding>
    </usage>
    <criteria>
      <language value="text/cql.identifier"/>
      <expression value="SDE Race"/>
    </criteria>
  </supplementalData>
  <supplementalData id="25a16429-e866-438f-990a-3e3a5f2f8443">
    <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>