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 - JSON Representation

Raw json | Download


{
  "resourceType" : "Measure",
  "id" : "BCSComponent",
  "meta" : {
    "profile" : [
      "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/proportion-measure-cqfm",
      "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm"
    ]
  },
  "language" : "en",
  "text" : {
    "status" : "extensions",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n    <table class=\"grid dict\">\n        \n        <tr>\n            <th scope=\"row\"><b>Id: </b></th>\n            <td style=\"padding-left: 4px;\">BCSComponent</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Url: </b></th>\n            <td style=\"padding-left: 4px;\">http://hl7.org/fhir/us/cqfmeasures/Measure/BCSComponent</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Version: </b></th>\n            <td style=\"padding-left: 4px;\">0.0.001</td>\n        </tr>\n        \n        \n        \n        <tr>\n            <th scope=\"row\"><b>Name: </b></th>\n            <td style=\"padding-left: 4px;\">BCSComponent</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Title: </b></th>\n            <td style=\"padding-left: 4px;\">Breast Cancer Screening</td>\n        </tr>\n        \n        \n        \n        <tr>\n            <th scope=\"row\"><b>Status: </b></th>\n            <td style=\"padding-left: 4px;\">draft</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Experimental: </b></th>\n            <td style=\"padding-left: 4px;\">true</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Scoring: </b></th>\n            <td style=\"padding-left: 4px;\">\n                \n                    \n                        \n                        <p style=\"margin-bottom: 5px;\">\n                            <b>system: </b> <span>http://terminology.hl7.org/CodeSystem/measure-scoring</span>\n                        </p>\n                        \n                        \n                        <p style=\"margin-bottom: 5px;\">\n                            <b>code: </b> <span>proportion</span>\n                        </p>\n                        \n                        \n                        <p style=\"margin-bottom: 5px;\">\n                            <b>display: </b> <span>Proportion</span>\n                        </p>\n                        \n                    \n                \n                \n            </td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Improvement Notation: </b></th>\n            <td style=\"padding-left: 4px;\">\n                \n                    \n                        \n                        <p style=\"margin-bottom: 5px;\">\n                            <b>system: </b> <span>http://terminology.hl7.org/CodeSystem/measure-improvement-notation</span>\n                        </p>\n                        \n                        \n                        <p style=\"margin-bottom: 5px;\">\n                            <b>code: </b> <span>increase</span>\n                        </p>\n                        \n                        \n                    \n                \n                \n            </td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Type: </b></th>\n            <td style=\"padding-left: 4px;\">\n                \n                    \n                        \n                        <p style=\"margin-bottom: 5px;\">\n                            <b>system: </b> <span>http://terminology.hl7.org/CodeSystem/measure-type</span>\n                        </p>\n                        \n                        \n                        <p style=\"margin-bottom: 5px;\">\n                            <b>code: </b> <span>process</span>\n                        </p>\n                        \n                        \n                    \n                \n                \n            </td>\n        </tr>\n        \n        \n        \n        <tr>\n            <th scope=\"row\"><b>Date: </b></th>\n            <td style=\"padding-left: 4px;\">2021-04-03T13:00:06-06:00</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Publisher: </b></th>\n            <td style=\"padding-left: 4px;\">Clinical Quality Information WG</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Description: </b></th>\n            <td style=\"padding-left: 4px;\">This is an example only.</td>\n        </tr>\n        \n        \n        \n        \n        <tr>\n            <th scope=\"row\"><b>Parameters: </b></th>\n            <td style=\"padding-left: 4px;\">\n                <table class=\"grid-dict\">\n                    <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>\n                    \n                    <tr>\n                        <td>Measurement Period</td>\n                        <td>in</td>\n                        <td>0</td>\n                        <td>1</td>\n                        <td>Period</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>SDE Sex</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>1</td>\n                        <td>Coding</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>Numerator</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>1</td>\n                        <td>boolean</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>Denominator</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>1</td>\n                        <td>boolean</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>Initial Population</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>1</td>\n                        <td>boolean</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>Patient</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>1</td>\n                        <td>Patient</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>Qualifying Encounters</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>*</td>\n                        <td>Encounter</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>SDE Payer</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>*</td>\n                        <td>Any</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>SDE Ethnicity</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>*</td>\n                        <td>Coding</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>Denominator Exclusion</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>1</td>\n                        <td>boolean</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>Has Hospice</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>1</td>\n                        <td>boolean</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>Right Mastectomy Diagnosis</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>*</td>\n                        <td>Condition</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>Right Mastectomy Procedure</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>*</td>\n                        <td>Procedure</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>Left Mastectomy</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>*</td>\n                        <td>Condition</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>Left Mastectomy Procedure</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>*</td>\n                        <td>Procedure</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>Bilateral Mastectomy Diagnosis</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>*</td>\n                        <td>Condition</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>Bilateral Mastectomy Procedure</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>*</td>\n                        <td>Procedure</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>Advanced Illness and Frailty Exclusion Not Including Over Age 80</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>1</td>\n                        <td>boolean</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>Has Criteria Indicating Frailty</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>1</td>\n                        <td>boolean</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>Outpatient Encounters with Advanced Illness</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>*</td>\n                        <td>Encounter</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>Inpatient Encounter with Advanced Illness</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>*</td>\n                        <td>Encounter</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>Dementia Medications In Year Before or During Measurement Period</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>*</td>\n                        <td>MedicationDispense</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>Long Term Care Periods Longer Than 90 Consecutive Days</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>1</td>\n                        <td>boolean</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>Long Term Care Periods During Measurement Period</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>*</td>\n                        <td>Period</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>SDE Race</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>*</td>\n                        <td>Coding</td>\n                    </tr>\n                    \n                </table>\n            </td>\n        </tr>\n        \n        \n        <tr>\n          <th scope=\"row\"><b>Data Requirements: </b></th>\n          <td style=\"padding-left: 4px;\">\n                <table class=\"grid-dict\">\n                    <tr><th><b>type</b></th><th><b>path</b></th><th><b>valueSet or system</b></th><th><b>code</b></th></tr>\n                    \n                        <tr>\n                            <td>DiagnosticReport</td>\n                            <td>code</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1018</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Patient</td>\n                            <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Encounter</td>\n                            <td>type</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Encounter</td>\n                            <td>type</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Encounter</td>\n                            <td>type</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Encounter</td>\n                            <td>type</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Encounter</td>\n                            <td>type</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Coverage</td>\n                            <td>type</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Patient</td>\n                            <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Encounter</td>\n                            <td>type</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>ServiceRequest</td>\n                            <td>code</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Procedure</td>\n                            <td>code</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Condition</td>\n                            <td>code</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1070</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Condition</td>\n                            <td>code</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1071</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Procedure</td>\n                            <td>code</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1134</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Condition</td>\n                            <td>code</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1069</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Condition</td>\n                            <td>code</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1071</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Procedure</td>\n                            <td>code</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1133</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Condition</td>\n                            <td>code</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1068</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Procedure</td>\n                            <td>code</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1005</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Patient</td>\n                            <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>DeviceRequest</td>\n                            <td>code</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.118.12.1300</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>DeviceUseStatement</td>\n                            <td>device.code</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.118.12.1300</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Condition</td>\n                            <td>code</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1074</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Encounter</td>\n                            <td>type</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1088</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Observation</td>\n                            <td>code</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1075</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Encounter</td>\n                            <td>type</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1087</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Encounter</td>\n                            <td>type</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1086</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Encounter</td>\n                            <td>type</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1085</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Encounter</td>\n                            <td>type</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1084</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Condition</td>\n                            <td>code</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1082</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Encounter</td>\n                            <td>type</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1083</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Condition</td>\n                            <td>code</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1082</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>MedicationDispense</td>\n                            <td>medication</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.196.12.1510</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Encounter</td>\n                            <td>type</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1014</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                        <tr>\n                            <td>Encounter</td>\n                            <td>type</td>\n                            \n                                <td>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1012</td>\n                                <td></td>\n                            \n                            \n                        </tr>\n                    \n                </table>\n          </td>\n        </tr>\n        \n        \n        <tr>\n          <th scope=\"row\"><b>Direct Reference Codes: </b></th>\n          <td style=\"padding-left: 4px;\">\n                <table class=\"grid-dict\">\n                    <tr><th><b>display</b></th><th><b>code</b></th><th><b>system</b></th></tr>\n                    \n                        <tr>\n                            <td>Discharge to home for hospice care (procedure)</td>\n                            <td>428361000124107</td>\n                            <td>http://snomed.info/sct/731000124108/version/201709</td>\n                        </tr>\n                    \n                        <tr>\n                            <td>Discharge to healthcare facility for hospice care (procedure)</td>\n                            <td>428371000124100</td>\n                            <td>http://snomed.info/sct/731000124108/version/201709</td>\n                        </tr>\n                    \n                </table>\n          </td>\n        </tr>\n        \n        \n            <tr>\n                <th scope=\"row\"><b>Supplemental Data: </b></th>\n                <td style=\"padding-left: 4px;\">\n                    <table class=\"grid-dict\">\n                        <tr><th><b>expression</b></th><th><b>system</b></th></tr>\n                        \n                        <tr>\n                            <td>SDE Ethnicity</td>\n                            <td>http://terminology.hl7.org/CodeSystem/measure-data-usage</td>\n                        </tr>\n                        \n                        <tr>\n                            <td>SDE Payer</td>\n                            <td>http://terminology.hl7.org/CodeSystem/measure-data-usage</td>\n                        </tr>\n                        \n                        <tr>\n                            <td>SDE Race</td>\n                            <td>http://terminology.hl7.org/CodeSystem/measure-data-usage</td>\n                        </tr>\n                        \n                        <tr>\n                            <td>SDE Sex</td>\n                            <td>http://terminology.hl7.org/CodeSystem/measure-data-usage</td>\n                        </tr>\n                        \n                    </table>\n                </td>\n            </tr>\n        \n        \n        \n        <tr>\n            <th scope=\"row\"><b>Jurisdiction: </b></th>\n            <td style=\"padding-left: 25px;\">US</td>\n        </tr>\n        \n        \n        \n        \n        \n        \n        \n        \n        \n        <tr>\n            <th scope=\"row\"><b>Effective Period: </b></th>\n            <td style=\"padding-left: 4px;\">2022-01-01..2022-12-31</td>\n        </tr>\n        \n        \n        <tr>\n          <th scope=\"row\"><b>Related Artifacts: </b></th>\n          <td style=\"padding-left: 4px;\">\n            \n            \n            \n            <p><b>Dependencies</b></p>\n            <ul>\n              \n                <li>http://hl7.org/fhir/us/cqfmeasures/Library/SupplementalDataElements|2.0.000</li>\n              \n                <li>http://hl7.org/fhir/us/cqfmeasures/Library/MATGlobalCommonFunctions|5.0.000</li>\n              \n                <li>http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1</li>\n              \n                <li>http://hl7.org/fhir/us/cqfmeasures/Library/AdultOutpatientEncounters|2.0.000</li>\n              \n                <li>http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1</li>\n              \n                <li>http://hl7.org/fhir/us/cqfmeasures/Library/Hospice|2.0.000</li>\n              \n                <li>http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1</li>\n              \n                <li>http://hl7.org/fhir/us/cqfmeasures/Library/MATGlobalCommonFunctions|5.0.000</li>\n              \n                <li>http://hl7.org/fhir/us/cqfmeasures/Library/AdvancedIllnessandFrailtyExclusion|5.12.000</li>\n              \n                <li>http://hl7.org/fhir/us/cqfmeasures/Library/MATGlobalCommonFunctions|5.0.000</li>\n              \n                <li>http://snomed.info/sct|http://snomed.info/sct/731000124108/version/201709</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1018</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1070</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1071</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.122.12.1035</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1134</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1069</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.122.12.1036</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1133</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1068</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1005</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.118.12.1300</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1074</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1088</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1075</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1087</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1086</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1085</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1084</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1082</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1083</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.196.12.1510</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1014</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1012</li>\n              \n            </ul>\n            \n            \n            \n            \n            \n          </td>\n        </tr>\n        \n        \n        \n        \n        \n        <tr>\n          <th scope=\"row\"><b>Logic Definitions: </b></th>\n          <td style=\"padding-left: 4px;\">\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>BCSComponent</td>\n                        \n                        \n                            <td>SDE Sex</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"SDE Sex\":\n  SDE.\"SDE Sex\"</code></pre>\n                \n                <br/><br/>\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>SupplementalDataElements</td>\n                        \n                        \n                            <td>SDE Sex</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"SDE Sex\":\n  case\n      when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }\n      when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }\n      else null\n    end</code></pre>\n                \n                <br/><br/>\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>BCSComponent</td>\n                        \n                        \n                            <td>Numerator</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"Numerator\":\n  exists ( [DiagnosticReport: \"Mammography\"] Mammogram\n        where ( Global.\"Normalize Interval\" ( Mammogram.effective ) ends 27 months or less on or before\n          end of \"Measurement Period\"\n        )\n          and Mammogram.status in { 'final', 'amended', 'corrected', 'appended' }\n    )</code></pre>\n                \n                <br/><br/>\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>BCSComponent</td>\n                        \n                        \n                            <td>Denominator</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"Denominator\":\n  \"Initial Population\"</code></pre>\n                \n                <br/><br/>\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>BCSComponent</td>\n                        \n                        \n                            <td>Initial Population</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"Initial Population\":\n  Patient.gender = 'female'\n      and Global.\"CalendarAgeInYearsAt\" ( FHIRHelpers.ToDate ( Patient.birthDate ), start of \"Measurement Period\" ) in Interval[51, 74 )\n      and exists AdultOutpatientEncounters.\"Qualifying Encounters\"</code></pre>\n                \n                <br/><br/>\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>AdultOutpatientEncounters</td>\n                        \n                        \n                            <td>Qualifying Encounters</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"Qualifying Encounters\":\n\t(\n    [Encounter: \"Office Visit\"]\n  \t\tunion [Encounter: \"Annual Wellness Visit\"]\n  \t\tunion [Encounter: \"Preventive Care Services - Established Office Visit, 18 and Up\"]\n  \t\tunion [Encounter: \"Preventive Care Services-Initial Office Visit, 18 and Up\"]\n  \t\tunion [Encounter: \"Home Healthcare Services\"]\n  ) ValidEncounter\n\t\twhere ValidEncounter.period during \"Measurement Period\"\n  \t\tand ValidEncounter.status  = 'finished'</code></pre>\n                \n                <br/><br/>\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>BCSComponent</td>\n                        \n                        \n                            <td>SDE Payer</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"SDE Payer\":\n  SDE.\"SDE Payer\"</code></pre>\n                \n                <br/><br/>\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>SupplementalDataElements</td>\n                        \n                        \n                            <td>SDE Payer</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"SDE Payer\":\n  [Coverage: type in \"Payer\"] Payer\n        return {\n          code: Payer.type,\n          period: Payer.period\n        }</code></pre>\n                \n                <br/><br/>\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>BCSComponent</td>\n                        \n                        \n                            <td>Initial Population</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"Initial Population\":\n  Patient.gender = 'female'\n      and Global.\"CalendarAgeInYearsAt\" ( FHIRHelpers.ToDate ( Patient.birthDate ), start of \"Measurement Period\" ) in Interval[51, 74 )\n      and exists AdultOutpatientEncounters.\"Qualifying Encounters\"</code></pre>\n                \n                <br/><br/>\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>BCSComponent</td>\n                        \n                        \n                            <td>SDE Ethnicity</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"SDE Ethnicity\":\n  SDE.\"SDE Ethnicity\"</code></pre>\n                \n                <br/><br/>\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>SupplementalDataElements</td>\n                        \n                        \n                            <td>SDE Ethnicity</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"SDE Ethnicity\":\n  (flatten (\n      Patient.extension Extension\n        where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'\n          return Extension.extension\n    )) E\n      where E.url = 'ombCategory'\n        or E.url = 'detailed'\n      return E.value as Coding</code></pre>\n                \n                <br/><br/>\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>BCSComponent</td>\n                        \n                        \n                            <td>Denominator Exclusion</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"Denominator Exclusion\":\n  Hospice.\"Has Hospice\"\n      or ( ( exists \"Right Mastectomy Diagnosis\"\n            or exists \"Right Mastectomy Procedure\"\n        )\n          and ( exists \"Left Mastectomy\"\n              or exists \"Left Mastectomy Procedure\"\n          )\n      )\n      or exists \"Bilateral Mastectomy Diagnosis\"\n      or exists \"Bilateral Mastectomy Procedure\"\n      or Frailty.\"Advanced Illness and Frailty Exclusion Not Including Over Age 80\"\n      or ( Global.\"CalendarAgeInYearsAt\" ( FHIRHelpers.ToDate ( Patient.birthDate ), start of \"Measurement Period\" ) &gt;= 65\n          and Frailty.\"Long Term Care Periods Longer Than 90 Consecutive Days\"\n      )</code></pre>\n                \n                <br/><br/>\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>Hospice</td>\n                        \n                        \n                            <td>Has Hospice</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"Has Hospice\":\n\texists (\n    [Encounter: \"Encounter Inpatient\"] DischargeHospice\n\t\t\twhere DischargeHospice.status = 'finished'\n\t\t    and (\n\t        DischargeHospice.hospitalization.dischargeDisposition ~ \"Discharge to home for hospice care (procedure)\"\n\t\t\t\t    or DischargeHospice.hospitalization.dischargeDisposition ~ \"Discharge to healthcare facility for hospice care (procedure)\"\n\t    \t)\n\t\t\t\tand DischargeHospice.period ends during \"Measurement Period\"\n\t)\n    or exists (\n      [ServiceRequest: \"Hospice care ambulatory\"] HospiceOrder\n        where HospiceOrder.intent = 'order'\n            and HospiceOrder.authoredOn in \"Measurement Period\"\n    )\n    or exists (\n      [Procedure: \"Hospice care ambulatory\"] HospicePerformed\n        where HospicePerformed.status = 'completed'\n          and Global.\"Normalize Interval\"(HospicePerformed.performed) overlaps \"Measurement Period\"\n    )</code></pre>\n                \n                <br/><br/>\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>BCSComponent</td>\n                        \n                        \n                            <td>Right Mastectomy Diagnosis</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"Right Mastectomy Diagnosis\":\n  ( ( [Condition: \"Status Post Right Mastectomy\"] )\n      union ( [Condition: \"Unilateral Mastectomy, Unspecified Laterality\"] UnilateralMastectomyDiagnosis\n          where UnilateralMastectomyDiagnosis.bodySite in \"Right\"\n      ) ) RightMastectomy\n      where Global.\"Normalize Interval\" ( RightMastectomy.onset ) starts on or before\n      end of \"Measurement Period\"</code></pre>\n                \n                <br/><br/>\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>BCSComponent</td>\n                        \n                        \n                            <td>Right Mastectomy Procedure</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"Right Mastectomy Procedure\":\n  [Procedure: \"Unilateral Mastectomy Right\"] UnilateralMastectomyRightPerformed\n      where Global.\"Normalize Interval\" ( UnilateralMastectomyRightPerformed.performed ) ends on or before\n      end of \"Measurement Period\"\n        and UnilateralMastectomyRightPerformed.status = 'completed'</code></pre>\n                \n                <br/><br/>\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>BCSComponent</td>\n                        \n                        \n                            <td>Left Mastectomy</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"Left Mastectomy\":\n  ( ( [Condition: \"Status Post Left Mastectomy\"] )\n      union ( [Condition: \"Unilateral Mastectomy, Unspecified Laterality\"] UnilateralMastectomyDiagnosis\n          where UnilateralMastectomyDiagnosis.bodySite in \"Left\"\n      ) ) LeftMastectomy\n      where Global.\"Normalize Interval\" ( LeftMastectomy.onset ) starts on or before\n      end of \"Measurement Period\"</code></pre>\n                \n                <br/><br/>\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>BCSComponent</td>\n                        \n                        \n                            <td>Left Mastectomy Procedure</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"Left Mastectomy Procedure\":\n  [Procedure: \"Unilateral Mastectomy Left\"] UnilateralMastectomyLeftPerformed\n      where Global.\"Normalize Interval\" ( UnilateralMastectomyLeftPerformed.performed ) ends on or before\n      end of \"Measurement Period\"\n        and UnilateralMastectomyLeftPerformed.status = 'completed'</code></pre>\n                \n                <br/><br/>\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>BCSComponent</td>\n                        \n                        \n                            <td>Bilateral Mastectomy Diagnosis</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"Bilateral Mastectomy Diagnosis\":\n  [Condition: \"History of bilateral mastectomy\"] BilateralMastectomyHistory\n      where Global.\"Normalize Interval\" ( BilateralMastectomyHistory.onset ) starts on or before\n      end of \"Measurement Period\"</code></pre>\n                \n                <br/><br/>\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>BCSComponent</td>\n                        \n                        \n                            <td>Bilateral Mastectomy Procedure</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"Bilateral Mastectomy Procedure\":\n  [Procedure: \"Bilateral Mastectomy\"] BilateralMastectomyPerformed\n      where Global.\"Normalize Interval\" ( BilateralMastectomyPerformed.performed ) ends on or before\n      end of \"Measurement Period\"\n        and BilateralMastectomyPerformed.status = 'completed'</code></pre>\n                \n                <br/><br/>\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>AdvancedIllnessandFrailtyExclusion</td>\n                        \n                        \n                            <td>Advanced Illness and Frailty Exclusion Not Including Over Age 80</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"Advanced Illness and Frailty Exclusion Not Including Over Age 80\":\n  //If the measure does NOT include populations age 80 and older, then use this logic:\n      \tGlobal.\"CalendarAgeInYearsAt\"(FHIRHelpers.ToDate(Patient.birthDate), start of \"Measurement Period\")&gt;= 65\n              and \"Has Criteria Indicating Frailty\"\n              and ( Count(\"Outpatient Encounters with Advanced Illness\")&gt;= 2\n                  or exists ( \"Inpatient Encounter with Advanced Illness\" )\n                  or exists \"Dementia Medications In Year Before or During Measurement Period\"\n              )</code></pre>\n                \n                <br/><br/>\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>AdvancedIllnessandFrailtyExclusion</td>\n                        \n                        \n                            <td>Has Criteria Indicating Frailty</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"Has Criteria Indicating Frailty\":\n  //Ask Bryn about devices\n      \texists ( [DeviceRequest: \"Frailty Device\"] FrailtyDeviceOrder\n      \t\t\twhere FrailtyDeviceOrder.authoredOn during \"Measurement Period\"\n      \t)\n      \t\tor exists ( [DeviceUseStatement: \"Frailty Device\"] FrailtyDeviceUse\n      \t\t\t\twhere Global.\"Normalize Interval\"(FrailtyDeviceUse.timing) overlaps \"Measurement Period\"\n      \t\t)\n      \t\tor exists ( [Condition: \"Frailty Diagnosis\"] FrailtyDiagnosis\n      \t\t\t\twhere Global.\"Prevalence Period\"(FrailtyDiagnosis) overlaps \"Measurement Period\"\n      \t\t)\n      \t\tor exists ( [Encounter: \"Frailty Encounter\"] FrailtyEncounter\n      \t\t\t\twhere FrailtyEncounter.period overlaps \"Measurement Period\"\n      \t\t)\n      \t\tor exists ( [Observation: \"Frailty Symptom\"] FrailtySymptomObservation\n      \t\t\t\twhere Global.\"Normalize Interval\"(FrailtySymptomObservation.effective) overlaps \"Measurement Period\"\n      \t\t)</code></pre>\n                \n                <br/><br/>\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>AdvancedIllnessandFrailtyExclusion</td>\n                        \n                        \n                            <td>Outpatient Encounters with Advanced Illness</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"Outpatient Encounters with Advanced Illness\":\n  ( [Encounter: \"Outpatient\"]\n      \t\tunion [Encounter: \"Observation\"]\n      \t\tunion [Encounter: \"ED\"]\n      \t\tunion [Encounter: \"Nonacute Inpatient\"] ) OutpatientEncounter\n      \t\t with [Condition: \"Advanced Illness\"] AdvancedIllnessDiagnosis\n                  such that exists (\n                      OutpatientEncounter.diagnosis.condition EncounterDiagnosis\n                          where EndsWith(EncounterDiagnosis.reference, AdvancedIllnessDiagnosis.id)\n                  )\n                  and OutpatientEncounter.period starts 2 years or less on or before\n      \t\t\tend of \"Measurement Period\"</code></pre>\n                \n                <br/><br/>\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>AdvancedIllnessandFrailtyExclusion</td>\n                        \n                        \n                            <td>Inpatient Encounter with Advanced Illness</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"Inpatient Encounter with Advanced Illness\":\n  [Encounter: \"Acute Inpatient\"] InpatientEncounter\n      \t\twith [Condition: \"Advanced Illness\"] AdvancedIllnessDiagnosis\n                  such that exists (\n                      InpatientEncounter.diagnosis.condition EncounterDiagnosis\n                          where EndsWith(EncounterDiagnosis.reference, AdvancedIllnessDiagnosis.id)\n                  )\n      \t\t\tand InpatientEncounter.period starts 2 years or less on or before\n      \t\t\tend of \"Measurement Period\"</code></pre>\n                \n                <br/><br/>\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>AdvancedIllnessandFrailtyExclusion</td>\n                        \n                        \n                            <td>Dementia Medications In Year Before or During Measurement Period</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"Dementia Medications In Year Before or During Measurement Period\":\n  [\"MedicationDispense\": \"Dementia Medications\"] DementiaMed\n      \t\twhere DementiaMed.whenHandedOver during Interval[\n                  ( start of \"Measurement Period\" - 1 year ), end of \"Measurement Period\"\n              ]</code></pre>\n                \n                <br/><br/>\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>AdvancedIllnessandFrailtyExclusion</td>\n                        \n                        \n                            <td>Long Term Care Periods Longer Than 90 Consecutive Days</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"Long Term Care Periods Longer Than 90 Consecutive Days\":\n  exists ( \"Long Term Care Periods During Measurement Period\" LongTermCareDuringMP\n        where duration in days of LongTermCareDuringMP &gt; 90\n    )</code></pre>\n                \n                <br/><br/>\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>AdvancedIllnessandFrailtyExclusion</td>\n                        \n                        \n                            <td>Long Term Care Periods During Measurement Period</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">// start heredefine \"Long Term Care Periods During Measurement Period\":\n  ( [Encounter: \"Care Services in Long-Term Residential Facility\"]\n              \t\tunion [Encounter: \"Nursing Facility Visit\"] ) LongTermFacilityEncounter\n              \t\twhere LongTermFacilityEncounter.period overlaps \"Measurement Period\"\n              \t\treturn LongTermFacilityEncounter.period\n              \t\t\tintersect \"Measurement Period\"</code></pre>\n                \n                <br/><br/>\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>BCSComponent</td>\n                        \n                        \n                            <td>SDE Race</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"SDE Race\":\n  SDE.\"SDE Race\"</code></pre>\n                \n                <br/><br/>\n            \n                <table class=\"grid-dict\">\n                    <tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>\n                    <tr>\n                        \n                            <td>SupplementalDataElements</td>\n                        \n                        \n                            <td>SDE Race</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"SDE Race\":\n  (flatten (\n      Patient.extension Extension\n        where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'\n          return Extension.extension\n    )) E\n      where E.url = 'ombCategory'\n        or E.url = 'detailed'\n      return E.value as Coding</code></pre>\n                \n                <br/><br/>\n            \n          </td>\n        </tr>\n        \n    </table>\n</div>"
  },
  "extension" : [
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis",
      "valueCode" : "boolean"
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "Measurement Period",
        "use" : "in",
        "min" : 0,
        "max" : "1",
        "type" : "Period"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "SDE Sex",
        "use" : "out",
        "min" : 0,
        "max" : "1",
        "type" : "Coding"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "Numerator",
        "use" : "out",
        "min" : 0,
        "max" : "1",
        "type" : "boolean"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "Denominator",
        "use" : "out",
        "min" : 0,
        "max" : "1",
        "type" : "boolean"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "Initial Population",
        "use" : "out",
        "min" : 0,
        "max" : "1",
        "type" : "boolean"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "Patient",
        "use" : "out",
        "min" : 0,
        "max" : "1",
        "type" : "Patient"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "Qualifying Encounters",
        "use" : "out",
        "min" : 0,
        "max" : "*",
        "type" : "Encounter"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "SDE Payer",
        "use" : "out",
        "min" : 0,
        "max" : "*",
        "type" : "Any"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "SDE Ethnicity",
        "use" : "out",
        "min" : 0,
        "max" : "*",
        "type" : "Coding"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "Denominator Exclusion",
        "use" : "out",
        "min" : 0,
        "max" : "1",
        "type" : "boolean"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "Has Hospice",
        "use" : "out",
        "min" : 0,
        "max" : "1",
        "type" : "boolean"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "Right Mastectomy Diagnosis",
        "use" : "out",
        "min" : 0,
        "max" : "*",
        "type" : "Condition"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "Right Mastectomy Procedure",
        "use" : "out",
        "min" : 0,
        "max" : "*",
        "type" : "Procedure"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "Left Mastectomy",
        "use" : "out",
        "min" : 0,
        "max" : "*",
        "type" : "Condition"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "Left Mastectomy Procedure",
        "use" : "out",
        "min" : 0,
        "max" : "*",
        "type" : "Procedure"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "Bilateral Mastectomy Diagnosis",
        "use" : "out",
        "min" : 0,
        "max" : "*",
        "type" : "Condition"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "Bilateral Mastectomy Procedure",
        "use" : "out",
        "min" : 0,
        "max" : "*",
        "type" : "Procedure"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "Advanced Illness and Frailty Exclusion Not Including Over Age 80",
        "use" : "out",
        "min" : 0,
        "max" : "1",
        "type" : "boolean"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "Has Criteria Indicating Frailty",
        "use" : "out",
        "min" : 0,
        "max" : "1",
        "type" : "boolean"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "Outpatient Encounters with Advanced Illness",
        "use" : "out",
        "min" : 0,
        "max" : "*",
        "type" : "Encounter"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "Inpatient Encounter with Advanced Illness",
        "use" : "out",
        "min" : 0,
        "max" : "*",
        "type" : "Encounter"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "Dementia Medications In Year Before or During Measurement Period",
        "use" : "out",
        "min" : 0,
        "max" : "*",
        "type" : "MedicationDispense"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "Long Term Care Periods Longer Than 90 Consecutive Days",
        "use" : "out",
        "min" : 0,
        "max" : "1",
        "type" : "boolean"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "Long Term Care Periods During Measurement Period",
        "use" : "out",
        "min" : 0,
        "max" : "*",
        "type" : "Period"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "SDE Race",
        "use" : "out",
        "min" : 0,
        "max" : "*",
        "type" : "Coding"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "DiagnosticReport",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"
        ],
        "codeFilter" : [
          {
            "path" : "code",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1018"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Patient",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Patient"
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Encounter",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Encounter"
        ],
        "codeFilter" : [
          {
            "path" : "type",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Encounter",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Encounter"
        ],
        "codeFilter" : [
          {
            "path" : "type",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Encounter",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Encounter"
        ],
        "codeFilter" : [
          {
            "path" : "type",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Encounter",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Encounter"
        ],
        "codeFilter" : [
          {
            "path" : "type",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Encounter",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Encounter"
        ],
        "codeFilter" : [
          {
            "path" : "type",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Coverage",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Coverage"
        ],
        "codeFilter" : [
          {
            "path" : "type",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Patient",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Patient"
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Encounter",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Encounter"
        ],
        "codeFilter" : [
          {
            "path" : "type",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "ServiceRequest",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
        ],
        "codeFilter" : [
          {
            "path" : "code",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Procedure",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Procedure"
        ],
        "codeFilter" : [
          {
            "path" : "code",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Condition",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Condition"
        ],
        "codeFilter" : [
          {
            "path" : "code",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1070"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Condition",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Condition"
        ],
        "codeFilter" : [
          {
            "path" : "code",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1071"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Procedure",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Procedure"
        ],
        "codeFilter" : [
          {
            "path" : "code",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1134"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Condition",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Condition"
        ],
        "codeFilter" : [
          {
            "path" : "code",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1069"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Condition",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Condition"
        ],
        "codeFilter" : [
          {
            "path" : "code",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1071"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Procedure",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Procedure"
        ],
        "codeFilter" : [
          {
            "path" : "code",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1133"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Condition",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Condition"
        ],
        "codeFilter" : [
          {
            "path" : "code",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1068"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Procedure",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Procedure"
        ],
        "codeFilter" : [
          {
            "path" : "code",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1005"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Patient",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Patient"
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "DeviceRequest",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/DeviceRequest"
        ],
        "codeFilter" : [
          {
            "path" : "code",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.118.12.1300"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "DeviceUseStatement",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/DeviceUseStatement"
        ],
        "codeFilter" : [
          {
            "path" : "device.code",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.118.12.1300"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Condition",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Condition"
        ],
        "codeFilter" : [
          {
            "path" : "code",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1074"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Encounter",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Encounter"
        ],
        "codeFilter" : [
          {
            "path" : "type",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1088"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Observation",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Observation"
        ],
        "codeFilter" : [
          {
            "path" : "code",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1075"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Encounter",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Encounter"
        ],
        "codeFilter" : [
          {
            "path" : "type",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1087"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Encounter",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Encounter"
        ],
        "codeFilter" : [
          {
            "path" : "type",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1086"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Encounter",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Encounter"
        ],
        "codeFilter" : [
          {
            "path" : "type",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1085"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Encounter",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Encounter"
        ],
        "codeFilter" : [
          {
            "path" : "type",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1084"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Condition",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Condition"
        ],
        "codeFilter" : [
          {
            "path" : "code",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1082"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Encounter",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Encounter"
        ],
        "codeFilter" : [
          {
            "path" : "type",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1083"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Condition",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Condition"
        ],
        "codeFilter" : [
          {
            "path" : "code",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1082"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "MedicationDispense",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/MedicationDispense"
        ],
        "codeFilter" : [
          {
            "path" : "medication",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.196.12.1510"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Encounter",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Encounter"
        ],
        "codeFilter" : [
          {
            "path" : "type",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1014"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement",
      "valueDataRequirement" : {
        "type" : "Encounter",
        "profile" : [
          "http://hl7.org/fhir/StructureDefinition/Encounter"
        ],
        "codeFilter" : [
          {
            "path" : "type",
            "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1012"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode",
      "valueCoding" : {
        "system" : "http://snomed.info/sct",
        "version" : "http://snomed.info/sct/731000124108/version/201709",
        "code" : "428361000124107",
        "display" : "Discharge to home for hospice care (procedure)"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode",
      "valueCoding" : {
        "system" : "http://snomed.info/sct",
        "version" : "http://snomed.info/sct/731000124108/version/201709",
        "code" : "428371000124100",
        "display" : "Discharge to healthcare facility for hospice care (procedure)"
      }
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "BCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "SDE Sex"
        },
        {
          "url" : "statement",
          "valueString" : "define \"SDE Sex\":\n  SDE.\"SDE Sex\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 0
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "SupplementalDataElements"
        },
        {
          "url" : "name",
          "valueString" : "SDE Sex"
        },
        {
          "url" : "statement",
          "valueString" : "define \"SDE Sex\":\n  case\n      when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }\n      when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }\n      else null\n    end"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 1
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "BCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "Numerator"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Numerator\":\n  exists ( [DiagnosticReport: \"Mammography\"] Mammogram\n        where ( Global.\"Normalize Interval\" ( Mammogram.effective ) ends 27 months or less on or before\n          end of \"Measurement Period\"\n        )\n          and Mammogram.status in { 'final', 'amended', 'corrected', 'appended' }\n    )"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 2
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "BCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "Denominator"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Denominator\":\n  \"Initial Population\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 3
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "BCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "Initial Population"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Initial Population\":\n  Patient.gender = 'female'\n      and Global.\"CalendarAgeInYearsAt\" ( FHIRHelpers.ToDate ( Patient.birthDate ), start of \"Measurement Period\" ) in Interval[51, 74 )\n      and exists AdultOutpatientEncounters.\"Qualifying Encounters\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 4
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "AdultOutpatientEncounters"
        },
        {
          "url" : "name",
          "valueString" : "Qualifying Encounters"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Qualifying Encounters\":\n\t(\n    [Encounter: \"Office Visit\"]\n  \t\tunion [Encounter: \"Annual Wellness Visit\"]\n  \t\tunion [Encounter: \"Preventive Care Services - Established Office Visit, 18 and Up\"]\n  \t\tunion [Encounter: \"Preventive Care Services-Initial Office Visit, 18 and Up\"]\n  \t\tunion [Encounter: \"Home Healthcare Services\"]\n  ) ValidEncounter\n\t\twhere ValidEncounter.period during \"Measurement Period\"\n  \t\tand ValidEncounter.status  = 'finished'"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 5
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "BCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "SDE Payer"
        },
        {
          "url" : "statement",
          "valueString" : "define \"SDE Payer\":\n  SDE.\"SDE Payer\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 6
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "SupplementalDataElements"
        },
        {
          "url" : "name",
          "valueString" : "SDE Payer"
        },
        {
          "url" : "statement",
          "valueString" : "define \"SDE Payer\":\n  [Coverage: type in \"Payer\"] Payer\n        return {\n          code: Payer.type,\n          period: Payer.period\n        }"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 7
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "BCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "Initial Population"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Initial Population\":\n  Patient.gender = 'female'\n      and Global.\"CalendarAgeInYearsAt\" ( FHIRHelpers.ToDate ( Patient.birthDate ), start of \"Measurement Period\" ) in Interval[51, 74 )\n      and exists AdultOutpatientEncounters.\"Qualifying Encounters\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 8
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "BCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "SDE Ethnicity"
        },
        {
          "url" : "statement",
          "valueString" : "define \"SDE Ethnicity\":\n  SDE.\"SDE Ethnicity\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 9
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "SupplementalDataElements"
        },
        {
          "url" : "name",
          "valueString" : "SDE Ethnicity"
        },
        {
          "url" : "statement",
          "valueString" : "define \"SDE Ethnicity\":\n  (flatten (\n      Patient.extension Extension\n        where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'\n          return Extension.extension\n    )) E\n      where E.url = 'ombCategory'\n        or E.url = 'detailed'\n      return E.value as Coding"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 10
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "BCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "Denominator Exclusion"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Denominator Exclusion\":\n  Hospice.\"Has Hospice\"\n      or ( ( exists \"Right Mastectomy Diagnosis\"\n            or exists \"Right Mastectomy Procedure\"\n        )\n          and ( exists \"Left Mastectomy\"\n              or exists \"Left Mastectomy Procedure\"\n          )\n      )\n      or exists \"Bilateral Mastectomy Diagnosis\"\n      or exists \"Bilateral Mastectomy Procedure\"\n      or Frailty.\"Advanced Illness and Frailty Exclusion Not Including Over Age 80\"\n      or ( Global.\"CalendarAgeInYearsAt\" ( FHIRHelpers.ToDate ( Patient.birthDate ), start of \"Measurement Period\" ) >= 65\n          and Frailty.\"Long Term Care Periods Longer Than 90 Consecutive Days\"\n      )"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 11
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "Hospice"
        },
        {
          "url" : "name",
          "valueString" : "Has Hospice"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Has Hospice\":\n\texists (\n    [Encounter: \"Encounter Inpatient\"] DischargeHospice\n\t\t\twhere DischargeHospice.status = 'finished'\n\t\t    and (\n\t        DischargeHospice.hospitalization.dischargeDisposition ~ \"Discharge to home for hospice care (procedure)\"\n\t\t\t\t    or DischargeHospice.hospitalization.dischargeDisposition ~ \"Discharge to healthcare facility for hospice care (procedure)\"\n\t    \t)\n\t\t\t\tand DischargeHospice.period ends during \"Measurement Period\"\n\t)\n    or exists (\n      [ServiceRequest: \"Hospice care ambulatory\"] HospiceOrder\n        where HospiceOrder.intent = 'order'\n            and HospiceOrder.authoredOn in \"Measurement Period\"\n    )\n    or exists (\n      [Procedure: \"Hospice care ambulatory\"] HospicePerformed\n        where HospicePerformed.status = 'completed'\n          and Global.\"Normalize Interval\"(HospicePerformed.performed) overlaps \"Measurement Period\"\n    )"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 12
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "BCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "Right Mastectomy Diagnosis"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Right Mastectomy Diagnosis\":\n  ( ( [Condition: \"Status Post Right Mastectomy\"] )\n      union ( [Condition: \"Unilateral Mastectomy, Unspecified Laterality\"] UnilateralMastectomyDiagnosis\n          where UnilateralMastectomyDiagnosis.bodySite in \"Right\"\n      ) ) RightMastectomy\n      where Global.\"Normalize Interval\" ( RightMastectomy.onset ) starts on or before\n      end of \"Measurement Period\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 13
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "BCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "Right Mastectomy Procedure"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Right Mastectomy Procedure\":\n  [Procedure: \"Unilateral Mastectomy Right\"] UnilateralMastectomyRightPerformed\n      where Global.\"Normalize Interval\" ( UnilateralMastectomyRightPerformed.performed ) ends on or before\n      end of \"Measurement Period\"\n        and UnilateralMastectomyRightPerformed.status = 'completed'"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 14
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "BCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "Left Mastectomy"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Left Mastectomy\":\n  ( ( [Condition: \"Status Post Left Mastectomy\"] )\n      union ( [Condition: \"Unilateral Mastectomy, Unspecified Laterality\"] UnilateralMastectomyDiagnosis\n          where UnilateralMastectomyDiagnosis.bodySite in \"Left\"\n      ) ) LeftMastectomy\n      where Global.\"Normalize Interval\" ( LeftMastectomy.onset ) starts on or before\n      end of \"Measurement Period\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 15
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "BCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "Left Mastectomy Procedure"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Left Mastectomy Procedure\":\n  [Procedure: \"Unilateral Mastectomy Left\"] UnilateralMastectomyLeftPerformed\n      where Global.\"Normalize Interval\" ( UnilateralMastectomyLeftPerformed.performed ) ends on or before\n      end of \"Measurement Period\"\n        and UnilateralMastectomyLeftPerformed.status = 'completed'"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 16
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "BCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "Bilateral Mastectomy Diagnosis"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Bilateral Mastectomy Diagnosis\":\n  [Condition: \"History of bilateral mastectomy\"] BilateralMastectomyHistory\n      where Global.\"Normalize Interval\" ( BilateralMastectomyHistory.onset ) starts on or before\n      end of \"Measurement Period\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 17
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "BCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "Bilateral Mastectomy Procedure"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Bilateral Mastectomy Procedure\":\n  [Procedure: \"Bilateral Mastectomy\"] BilateralMastectomyPerformed\n      where Global.\"Normalize Interval\" ( BilateralMastectomyPerformed.performed ) ends on or before\n      end of \"Measurement Period\"\n        and BilateralMastectomyPerformed.status = 'completed'"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 18
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "AdvancedIllnessandFrailtyExclusion"
        },
        {
          "url" : "name",
          "valueString" : "Advanced Illness and Frailty Exclusion Not Including Over Age 80"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Advanced Illness and Frailty Exclusion Not Including Over Age 80\":\n  //If the measure does NOT include populations age 80 and older, then use this logic:\n      \tGlobal.\"CalendarAgeInYearsAt\"(FHIRHelpers.ToDate(Patient.birthDate), start of \"Measurement Period\")>= 65\n              and \"Has Criteria Indicating Frailty\"\n              and ( Count(\"Outpatient Encounters with Advanced Illness\")>= 2\n                  or exists ( \"Inpatient Encounter with Advanced Illness\" )\n                  or exists \"Dementia Medications In Year Before or During Measurement Period\"\n              )"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 19
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "AdvancedIllnessandFrailtyExclusion"
        },
        {
          "url" : "name",
          "valueString" : "Has Criteria Indicating Frailty"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Has Criteria Indicating Frailty\":\n  //Ask Bryn about devices\n      \texists ( [DeviceRequest: \"Frailty Device\"] FrailtyDeviceOrder\n      \t\t\twhere FrailtyDeviceOrder.authoredOn during \"Measurement Period\"\n      \t)\n      \t\tor exists ( [DeviceUseStatement: \"Frailty Device\"] FrailtyDeviceUse\n      \t\t\t\twhere Global.\"Normalize Interval\"(FrailtyDeviceUse.timing) overlaps \"Measurement Period\"\n      \t\t)\n      \t\tor exists ( [Condition: \"Frailty Diagnosis\"] FrailtyDiagnosis\n      \t\t\t\twhere Global.\"Prevalence Period\"(FrailtyDiagnosis) overlaps \"Measurement Period\"\n      \t\t)\n      \t\tor exists ( [Encounter: \"Frailty Encounter\"] FrailtyEncounter\n      \t\t\t\twhere FrailtyEncounter.period overlaps \"Measurement Period\"\n      \t\t)\n      \t\tor exists ( [Observation: \"Frailty Symptom\"] FrailtySymptomObservation\n      \t\t\t\twhere Global.\"Normalize Interval\"(FrailtySymptomObservation.effective) overlaps \"Measurement Period\"\n      \t\t)"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 20
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "AdvancedIllnessandFrailtyExclusion"
        },
        {
          "url" : "name",
          "valueString" : "Outpatient Encounters with Advanced Illness"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Outpatient Encounters with Advanced Illness\":\n  ( [Encounter: \"Outpatient\"]\n      \t\tunion [Encounter: \"Observation\"]\n      \t\tunion [Encounter: \"ED\"]\n      \t\tunion [Encounter: \"Nonacute Inpatient\"] ) OutpatientEncounter\n      \t\t with [Condition: \"Advanced Illness\"] AdvancedIllnessDiagnosis\n                  such that exists (\n                      OutpatientEncounter.diagnosis.condition EncounterDiagnosis\n                          where EndsWith(EncounterDiagnosis.reference, AdvancedIllnessDiagnosis.id)\n                  )\n                  and OutpatientEncounter.period starts 2 years or less on or before\n      \t\t\tend of \"Measurement Period\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 21
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "AdvancedIllnessandFrailtyExclusion"
        },
        {
          "url" : "name",
          "valueString" : "Inpatient Encounter with Advanced Illness"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Inpatient Encounter with Advanced Illness\":\n  [Encounter: \"Acute Inpatient\"] InpatientEncounter\n      \t\twith [Condition: \"Advanced Illness\"] AdvancedIllnessDiagnosis\n                  such that exists (\n                      InpatientEncounter.diagnosis.condition EncounterDiagnosis\n                          where EndsWith(EncounterDiagnosis.reference, AdvancedIllnessDiagnosis.id)\n                  )\n      \t\t\tand InpatientEncounter.period starts 2 years or less on or before\n      \t\t\tend of \"Measurement Period\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 22
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "AdvancedIllnessandFrailtyExclusion"
        },
        {
          "url" : "name",
          "valueString" : "Dementia Medications In Year Before or During Measurement Period"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Dementia Medications In Year Before or During Measurement Period\":\n  [\"MedicationDispense\": \"Dementia Medications\"] DementiaMed\n      \t\twhere DementiaMed.whenHandedOver during Interval[\n                  ( start of \"Measurement Period\" - 1 year ), end of \"Measurement Period\"\n              ]"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 23
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "AdvancedIllnessandFrailtyExclusion"
        },
        {
          "url" : "name",
          "valueString" : "Long Term Care Periods Longer Than 90 Consecutive Days"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Long Term Care Periods Longer Than 90 Consecutive Days\":\n  exists ( \"Long Term Care Periods During Measurement Period\" LongTermCareDuringMP\n        where duration in days of LongTermCareDuringMP > 90\n    )"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 24
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "AdvancedIllnessandFrailtyExclusion"
        },
        {
          "url" : "name",
          "valueString" : "Long Term Care Periods During Measurement Period"
        },
        {
          "url" : "statement",
          "valueString" : "// start heredefine \"Long Term Care Periods During Measurement Period\":\n  ( [Encounter: \"Care Services in Long-Term Residential Facility\"]\n              \t\tunion [Encounter: \"Nursing Facility Visit\"] ) LongTermFacilityEncounter\n              \t\twhere LongTermFacilityEncounter.period overlaps \"Measurement Period\"\n              \t\treturn LongTermFacilityEncounter.period\n              \t\t\tintersect \"Measurement Period\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 25
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "BCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "SDE Race"
        },
        {
          "url" : "statement",
          "valueString" : "define \"SDE Race\":\n  SDE.\"SDE Race\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 26
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "SupplementalDataElements"
        },
        {
          "url" : "name",
          "valueString" : "SDE Race"
        },
        {
          "url" : "statement",
          "valueString" : "define \"SDE Race\":\n  (flatten (\n      Patient.extension Extension\n        where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'\n          return Extension.extension\n    )) E\n      where E.url = 'ombCategory'\n        or E.url = 'detailed'\n      return E.value as Coding"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 27
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    }
  ],
  "url" : "http://hl7.org/fhir/us/cqfmeasures/Measure/BCSComponent",
  "version" : "0.0.001",
  "name" : "BCSComponent",
  "title" : "Breast Cancer Screening",
  "status" : "draft",
  "experimental" : true,
  "date" : "2021-04-03T13:00:06-06:00",
  "publisher" : "Clinical Quality Information WG",
  "contact" : [
    {
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/cqi/index.cfm"
        }
      ]
    }
  ],
  "description" : "This is an example only.",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "urn:iso:std:iso:3166",
          "code" : "US"
        }
      ]
    }
  ],
  "effectivePeriod" : {
    "start" : "2022-01-01",
    "end" : "2022-12-31"
  },
  "relatedArtifact" : [
    {
      "type" : "depends-on",
      "display" : "Library SDE",
      "resource" : "http://hl7.org/fhir/us/cqfmeasures/Library/SupplementalDataElements|2.0.000"
    },
    {
      "type" : "depends-on",
      "display" : "Library Global",
      "resource" : "http://hl7.org/fhir/us/cqfmeasures/Library/MATGlobalCommonFunctions|5.0.000"
    },
    {
      "type" : "depends-on",
      "display" : "Library FHIRHelpers",
      "resource" : "http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1"
    },
    {
      "type" : "depends-on",
      "display" : "Library AdultOutpatientEncounters",
      "resource" : "http://hl7.org/fhir/us/cqfmeasures/Library/AdultOutpatientEncounters|2.0.000"
    },
    {
      "type" : "depends-on",
      "display" : "Library FHIRHelpers",
      "resource" : "http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1"
    },
    {
      "type" : "depends-on",
      "display" : "Library Hospice",
      "resource" : "http://hl7.org/fhir/us/cqfmeasures/Library/Hospice|2.0.000"
    },
    {
      "type" : "depends-on",
      "display" : "Library FHIRHelpers",
      "resource" : "http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1"
    },
    {
      "type" : "depends-on",
      "display" : "Library Global",
      "resource" : "http://hl7.org/fhir/us/cqfmeasures/Library/MATGlobalCommonFunctions|5.0.000"
    },
    {
      "type" : "depends-on",
      "display" : "Library Frailty",
      "resource" : "http://hl7.org/fhir/us/cqfmeasures/Library/AdvancedIllnessandFrailtyExclusion|5.12.000"
    },
    {
      "type" : "depends-on",
      "display" : "Library Global",
      "resource" : "http://hl7.org/fhir/us/cqfmeasures/Library/MATGlobalCommonFunctions|5.0.000"
    },
    {
      "type" : "depends-on",
      "display" : "Code system SNOMEDCT:2017-09",
      "resource" : "http://snomed.info/sct|http://snomed.info/sct/731000124108/version/201709"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Mammography",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1018"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Office Visit",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Annual Wellness Visit",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Preventive Care Services - Established Office Visit, 18 and Up",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Preventive Care Services-Initial Office Visit, 18 and Up",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Home Healthcare Services",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Payer",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Encounter Inpatient",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Hospice care ambulatory",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Status Post Right Mastectomy",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1070"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Unilateral Mastectomy, Unspecified Laterality",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1071"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Right",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.122.12.1035"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Unilateral Mastectomy Right",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1134"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Status Post Left Mastectomy",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1069"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Left",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.122.12.1036"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Unilateral Mastectomy Left",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1133"
    },
    {
      "type" : "depends-on",
      "display" : "Value set History of bilateral mastectomy",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1068"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Bilateral Mastectomy",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1005"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Frailty Device",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.118.12.1300"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Frailty Diagnosis",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1074"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Frailty Encounter",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1088"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Frailty Symptom",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1075"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Outpatient",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1087"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Observation",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1086"
    },
    {
      "type" : "depends-on",
      "display" : "Value set ED",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1085"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Nonacute Inpatient",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1084"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Advanced Illness",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1082"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Acute Inpatient",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1083"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Dementia Medications",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.196.12.1510"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Care Services in Long-Term Residential Facility",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1014"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Nursing Facility Visit",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1012"
    }
  ],
  "library" : [
    "http://hl7.org/fhir/us/cqfmeasures/Library/BCSComponent"
  ],
  "scoring" : {
    "coding" : [
      {
        "system" : "http://terminology.hl7.org/CodeSystem/measure-scoring",
        "code" : "proportion",
        "display" : "Proportion"
      }
    ]
  },
  "type" : [
    {
      "coding" : [
        {
          "system" : "http://terminology.hl7.org/CodeSystem/measure-type",
          "code" : "process"
        }
      ]
    }
  ],
  "improvementNotation" : {
    "coding" : [
      {
        "system" : "http://terminology.hl7.org/CodeSystem/measure-improvement-notation",
        "code" : "increase"
      }
    ]
  },
  "group" : [
    {
      "population" : [
        {
          "id" : "2851A1BA-FBF8-4945-812E-6273F881CE13",
          "code" : {
            "coding" : [
              {
                "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
                "code" : "initial-population",
                "display" : "Initial Population"
              }
            ]
          },
          "criteria" : {
            "language" : "text/cql.identifier",
            "expression" : "Initial Population"
          }
        },
        {
          "id" : "349C20C9-EA7E-4311-9E2D-CF81F1EBCEEF",
          "code" : {
            "coding" : [
              {
                "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
                "code" : "denominator",
                "display" : "Denominator"
              }
            ]
          },
          "criteria" : {
            "language" : "text/cql.identifier",
            "expression" : "Denominator"
          }
        },
        {
          "id" : "369D1C75-B5D3-43EC-AEFC-2FF7F462306C",
          "code" : {
            "coding" : [
              {
                "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
                "code" : "denominator-exclusion",
                "display" : "Denominator Exclusion"
              }
            ]
          },
          "criteria" : {
            "language" : "text/cql.identifier",
            "expression" : "Denominator Exclusion"
          }
        },
        {
          "id" : "6F1617E3-99D7-47E4-8392-85107BAA5311",
          "code" : {
            "coding" : [
              {
                "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
                "code" : "numerator",
                "display" : "Numerator"
              }
            ]
          },
          "criteria" : {
            "language" : "text/cql.identifier",
            "expression" : "Numerator"
          }
        }
      ]
    }
  ],
  "supplementalData" : [
    {
      "id" : "3dbb0697-08d7-48db-bc89-bc7f5230c36f",
      "usage" : [
        {
          "coding" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code" : "supplemental-data"
            }
          ]
        }
      ],
      "criteria" : {
        "language" : "text/cql.identifier",
        "expression" : "SDE Ethnicity"
      }
    },
    {
      "id" : "2865e9d5-f4e8-4c99-812b-5eff79b4b775",
      "usage" : [
        {
          "coding" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code" : "supplemental-data"
            }
          ]
        }
      ],
      "criteria" : {
        "language" : "text/cql.identifier",
        "expression" : "SDE Payer"
      }
    },
    {
      "id" : "513368dc-dfea-4377-a05d-d358e7e04fbb",
      "usage" : [
        {
          "coding" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code" : "supplemental-data"
            }
          ]
        }
      ],
      "criteria" : {
        "language" : "text/cql.identifier",
        "expression" : "SDE Race"
      }
    },
    {
      "id" : "25a16429-e866-438f-990a-3e3a5f2f8443",
      "usage" : [
        {
          "coding" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code" : "supplemental-data"
            }
          ]
        }
      ],
      "criteria" : {
        "language" : "text/cql.identifier",
        "expression" : "SDE Sex"
      }
    }
  ]
}