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

: Colorectal Cancer Screening - JSON Representation

Raw json | Download


{
  "resourceType" : "Measure",
  "id" : "CCSComponent",
  "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;\">CCSComponent</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/CCSComponent</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;\">CCSComponent</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Title: </b></th>\n            <td style=\"padding-left: 4px;\">Colorectal 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 only an example.</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>Colonoscopy Performed</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>*</td>\n                        <td>Procedure</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>Fecal Occult Blood Test Performed</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>*</td>\n                        <td>Observation</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>Flexible Sigmoidoscopy Performed</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>*</td>\n                        <td>Procedure</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>Fecal Immunochemical Test DNA</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>*</td>\n                        <td>Observation</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>CT Colonography Performed</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>*</td>\n                        <td>Procedure</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>Malignant Neoplasm</td>\n                        <td>out</td>\n                        <td>0</td>\n                        <td>*</td>\n                        <td>Condition</td>\n                    </tr>\n                    \n                    <tr>\n                        <td>Total Colectomy Performed</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>Procedure</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.1020</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.198.12.1011</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.1010</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.108.12.1039</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.108.12.1038</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.108.12.1001</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.1019</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://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/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.1020</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1011</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1010</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1039</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1038</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.108.12.1001</li>\n              \n                <li>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1019</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>CCSComponent</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>CCSComponent</td>\n                        \n                        \n                            <td>Numerator</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"Numerator\":\n  exists \"Colonoscopy Performed\"\n      or exists \"Fecal Occult Blood Test Performed\"\n      or exists \"Flexible Sigmoidoscopy Performed\"\n      or exists \"Fecal Immunochemical Test DNA\"\n      or exists \"CT Colonography Performed\"</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>CCSComponent</td>\n                        \n                        \n                            <td>Colonoscopy Performed</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"Colonoscopy Performed\":\n  [Procedure: \"Colonoscopy\"] Colonoscopy\n      where Colonoscopy.status = 'completed'\n        and Global.\"Normalize Interval\" ( Colonoscopy.performed ) ends 10 years or less 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>CCSComponent</td>\n                        \n                        \n                            <td>Fecal Occult Blood Test Performed</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"Fecal Occult Blood Test Performed\":\n  [Observation: \"Fecal Occult Blood Test (FOBT)\"] FecalOccultResult\n      where FecalOccultResult.status in { 'final', 'amended', 'corrected', 'preliminary' }\n        and FecalOccultResult.value is not null\n        and Global.\"Normalize Interval\" ( FecalOccultResult.effective ) during day 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>CCSComponent</td>\n                        \n                        \n                            <td>Flexible Sigmoidoscopy Performed</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"Flexible Sigmoidoscopy Performed\":\n  [Procedure: \"Flexible Sigmoidoscopy\"] FlexibleSigmoidoscopy\n      where FlexibleSigmoidoscopy.status = 'completed'\n        and Global.\"Normalize Interval\" ( FlexibleSigmoidoscopy.performed ) ends 5 years or less 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>CCSComponent</td>\n                        \n                        \n                            <td>Fecal Immunochemical Test DNA</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"Fecal Immunochemical Test DNA\":\n  [Observation: \"FIT DNA\"] FitDNA\n      where FitDNA.status in { 'final', 'amended', 'corrected', 'preliminary' }\n        and FitDNA.value is not null\n        and Global.\"Normalize Interval\" ( FitDNA.effective ) occurs 3 years or less on or before day of\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>CCSComponent</td>\n                        \n                        \n                            <td>CT Colonography Performed</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"CT Colonography Performed\":\n  [Procedure: \"CT Colonography\"] Colonography\n      where Colonography.status = 'completed'\n        and Global.\"Normalize Interval\" ( Colonography.performed ) ends 5 years or less 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>CCSComponent</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>CCSComponent</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  Global.\"CalendarAgeInYearsAt\" ( FHIRHelpers.ToDate ( Patient.birthDate ), start of \"Measurement Period\" ) in Interval[50, 75]\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>CCSComponent</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>CCSComponent</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  Global.\"CalendarAgeInYearsAt\" ( FHIRHelpers.ToDate ( Patient.birthDate ), start of \"Measurement Period\" ) in Interval[50, 75]\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>CCSComponent</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>CCSComponent</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 \"Malignant Neoplasm\"\n      or exists \"Total Colectomy Performed\"\n      or Frailty.\"Advanced Illness and Frailty Exclusion Not Including Over Age 80\"\n        and Frailty.\"Long Term Care Periods Longer Than 90 Consecutive Days\"</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>CCSComponent</td>\n                        \n                        \n                            <td>Malignant Neoplasm</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"Malignant Neoplasm\":\n  [Condition: \"Malignant Neoplasm of Colon\"] ColorectalCancer\n      where Global.\"Prevalence Period\" ( ColorectalCancer ) 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>CCSComponent</td>\n                        \n                        \n                            <td>Total Colectomy Performed</td>\n                        \n                        \n                    </tr>\n                </table>\n                \n                    <pre><code class=\"language-cql\">define \"Total Colectomy Performed\":\n  [Procedure: \"Total Colectomy\"] Colectomy\n      where Colectomy.status = 'completed'\n        and Global.\"Normalize Interval\" ( Colectomy.performed ) 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>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>CCSComponent</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" : "Colonoscopy Performed",
        "use" : "out",
        "min" : 0,
        "max" : "*",
        "type" : "Procedure"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "Fecal Occult Blood Test Performed",
        "use" : "out",
        "min" : 0,
        "max" : "*",
        "type" : "Observation"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "Flexible Sigmoidoscopy Performed",
        "use" : "out",
        "min" : 0,
        "max" : "*",
        "type" : "Procedure"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "Fecal Immunochemical Test DNA",
        "use" : "out",
        "min" : 0,
        "max" : "*",
        "type" : "Observation"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "CT Colonography Performed",
        "use" : "out",
        "min" : 0,
        "max" : "*",
        "type" : "Procedure"
      }
    },
    {
      "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" : "Malignant Neoplasm",
        "use" : "out",
        "min" : 0,
        "max" : "*",
        "type" : "Condition"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter",
      "valueParameterDefinition" : {
        "name" : "Total Colectomy Performed",
        "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" : "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.108.12.1020"
          }
        ]
      }
    },
    {
      "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.198.12.1011"
          }
        ]
      }
    },
    {
      "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.1010"
          }
        ]
      }
    },
    {
      "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.108.12.1039"
          }
        ]
      }
    },
    {
      "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.108.12.1038"
          }
        ]
      }
    },
    {
      "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.108.12.1001"
          }
        ]
      }
    },
    {
      "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.1019"
          }
        ]
      }
    },
    {
      "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" : "CCSComponent"
        },
        {
          "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" : "CCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "Numerator"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Numerator\":\n  exists \"Colonoscopy Performed\"\n      or exists \"Fecal Occult Blood Test Performed\"\n      or exists \"Flexible Sigmoidoscopy Performed\"\n      or exists \"Fecal Immunochemical Test DNA\"\n      or exists \"CT Colonography Performed\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 2
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "CCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "Colonoscopy Performed"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Colonoscopy Performed\":\n  [Procedure: \"Colonoscopy\"] Colonoscopy\n      where Colonoscopy.status = 'completed'\n        and Global.\"Normalize Interval\" ( Colonoscopy.performed ) ends 10 years or less on or before\n        end of \"Measurement Period\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 3
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "CCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "Fecal Occult Blood Test Performed"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Fecal Occult Blood Test Performed\":\n  [Observation: \"Fecal Occult Blood Test (FOBT)\"] FecalOccultResult\n      where FecalOccultResult.status in { 'final', 'amended', 'corrected', 'preliminary' }\n        and FecalOccultResult.value is not null\n        and Global.\"Normalize Interval\" ( FecalOccultResult.effective ) during day of \"Measurement Period\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 4
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "CCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "Flexible Sigmoidoscopy Performed"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Flexible Sigmoidoscopy Performed\":\n  [Procedure: \"Flexible Sigmoidoscopy\"] FlexibleSigmoidoscopy\n      where FlexibleSigmoidoscopy.status = 'completed'\n        and Global.\"Normalize Interval\" ( FlexibleSigmoidoscopy.performed ) ends 5 years or less on or before\n        end of \"Measurement Period\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 5
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "CCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "Fecal Immunochemical Test DNA"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Fecal Immunochemical Test DNA\":\n  [Observation: \"FIT DNA\"] FitDNA\n      where FitDNA.status in { 'final', 'amended', 'corrected', 'preliminary' }\n        and FitDNA.value is not null\n        and Global.\"Normalize Interval\" ( FitDNA.effective ) occurs 3 years or less on or before day of\n        end of \"Measurement Period\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 6
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "CCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "CT Colonography Performed"
        },
        {
          "url" : "statement",
          "valueString" : "define \"CT Colonography Performed\":\n  [Procedure: \"CT Colonography\"] Colonography\n      where Colonography.status = 'completed'\n        and Global.\"Normalize Interval\" ( Colonography.performed ) ends 5 years or less on or before\n        end of \"Measurement Period\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 7
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "CCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "Denominator"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Denominator\":\n  \"Initial Population\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 8
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "CCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "Initial Population"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Initial Population\":\n  Global.\"CalendarAgeInYearsAt\" ( FHIRHelpers.ToDate ( Patient.birthDate ), start of \"Measurement Period\" ) in Interval[50, 75]\n      and exists AdultOutpatientEncounters.\"Qualifying Encounters\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 9
        }
      ],
      "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" : 10
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "CCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "SDE Payer"
        },
        {
          "url" : "statement",
          "valueString" : "define \"SDE Payer\":\n  SDE.\"SDE Payer\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 11
        }
      ],
      "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" : 12
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "CCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "Initial Population"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Initial Population\":\n  Global.\"CalendarAgeInYearsAt\" ( FHIRHelpers.ToDate ( Patient.birthDate ), start of \"Measurement Period\" ) in Interval[50, 75]\n      and exists AdultOutpatientEncounters.\"Qualifying Encounters\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 13
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "CCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "SDE Ethnicity"
        },
        {
          "url" : "statement",
          "valueString" : "define \"SDE Ethnicity\":\n  SDE.\"SDE Ethnicity\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 14
        }
      ],
      "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" : 15
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "CCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "Denominator Exclusion"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Denominator Exclusion\":\n  Hospice.\"Has Hospice\"\n      or exists \"Malignant Neoplasm\"\n      or exists \"Total Colectomy Performed\"\n      or Frailty.\"Advanced Illness and Frailty Exclusion Not Including Over Age 80\"\n        and Frailty.\"Long Term Care Periods Longer Than 90 Consecutive Days\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 16
        }
      ],
      "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" : 17
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "CCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "Malignant Neoplasm"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Malignant Neoplasm\":\n  [Condition: \"Malignant Neoplasm of Colon\"] ColorectalCancer\n      where Global.\"Prevalence Period\" ( ColorectalCancer ) starts on or before\n      end of \"Measurement Period\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 18
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "CCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "Total Colectomy Performed"
        },
        {
          "url" : "statement",
          "valueString" : "define \"Total Colectomy Performed\":\n  [Procedure: \"Total Colectomy\"] Colectomy\n      where Colectomy.status = 'completed'\n        and Global.\"Normalize Interval\" ( Colectomy.performed ) starts on or before\n        end of \"Measurement Period\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 19
        }
      ],
      "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" : 20
        }
      ],
      "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" : 21
        }
      ],
      "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" : 22
        }
      ],
      "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" : 23
        }
      ],
      "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" : 24
        }
      ],
      "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" : 25
        }
      ],
      "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" : 26
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "CCSComponent"
        },
        {
          "url" : "name",
          "valueString" : "SDE Race"
        },
        {
          "url" : "statement",
          "valueString" : "define \"SDE Race\":\n  SDE.\"SDE Race\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 27
        }
      ],
      "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" : 28
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    }
  ],
  "url" : "http://hl7.org/fhir/us/cqfmeasures/Measure/CCSComponent",
  "version" : "0.0.001",
  "name" : "CCSComponent",
  "title" : "Colorectal 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 only an example.",
  "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 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 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 Colonoscopy",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1020"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Fecal Occult Blood Test (FOBT)",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1011"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Flexible Sigmoidoscopy",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1010"
    },
    {
      "type" : "depends-on",
      "display" : "Value set FIT DNA",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1039"
    },
    {
      "type" : "depends-on",
      "display" : "Value set CT Colonography",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1038"
    },
    {
      "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 Malignant Neoplasm of Colon",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1001"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Total Colectomy",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1019"
    },
    {
      "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/CCSComponent"
  ],
  "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" : "93644713-B761-4A71-A6DB-38675B4D4AA0",
          "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" : "CCC5263F-B14C-4EFC-B726-3C323A137132",
          "code" : {
            "coding" : [
              {
                "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
                "code" : "denominator",
                "display" : "Denominator"
              }
            ]
          },
          "criteria" : {
            "language" : "text/cql.identifier",
            "expression" : "Denominator"
          }
        },
        {
          "id" : "C8F51A00-EDC7-4F91-8415-25395BF16D16",
          "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" : "9E219037-5E8B-40F6-A304-4460BD8D3FFA",
          "code" : {
            "coding" : [
              {
                "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
                "code" : "numerator",
                "display" : "Numerator"
              }
            ]
          },
          "criteria" : {
            "language" : "text/cql.identifier",
            "expression" : "Numerator"
          }
        }
      ]
    }
  ],
  "supplementalData" : [
    {
      "id" : "4d3fff25-29d7-4e61-9fdd-a02a85c1472f",
      "usage" : [
        {
          "coding" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code" : "supplemental-data"
            }
          ]
        }
      ],
      "criteria" : {
        "language" : "text/cql.identifier",
        "expression" : "SDE Ethnicity"
      }
    },
    {
      "id" : "4732f9d3-e4c9-4a24-ab3c-9247a55d73ef",
      "usage" : [
        {
          "coding" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code" : "supplemental-data"
            }
          ]
        }
      ],
      "criteria" : {
        "language" : "text/cql.identifier",
        "expression" : "SDE Payer"
      }
    },
    {
      "id" : "523c2619-71c6-4e60-83f8-3d8eeef75398",
      "usage" : [
        {
          "coding" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code" : "supplemental-data"
            }
          ]
        }
      ],
      "criteria" : {
        "language" : "text/cql.identifier",
        "expression" : "SDE Race"
      }
    },
    {
      "id" : "336d1356-61a7-4220-9635-ffc50b90af2f",
      "usage" : [
        {
          "coding" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code" : "supplemental-data"
            }
          ]
        }
      ],
      "criteria" : {
        "language" : "text/cql.identifier",
        "expression" : "SDE Sex"
      }
    }
  ]
}