Draft dQM CMS Content Implementation Guide
2025.1.0 - CI Build

Draft dQM CMS Content Implementation Guide, published by cqframework. This guide is not an authorized publication; it is the continuous build for version 2025.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/dqm-content-cms-2025/ and changes regularly. See the Directory of published versions

## Library: CMS130FHIRColorectalCancerScrn

Official URL: https://madie.cms.gov/Library/CMS130FHIRColorectalCancerScrn | Version: 1.1.000
Active as of 2025-07-25 | Responsible: National Committee for Quality Assurance | Computable Name: CMS130FHIRColorectalCancerScrn

CMS130FHIRColorectalCancerScrn

Metadata
Title | CMS130FHIRColorectalCancerScrn
Version | 1.1.000
Topic | FHIR
Topic | CQL
Steward (Publisher) | National Committee for Quality Assurance
Description | CMS130FHIRColorectalCancerScrn
Type | logic-library from http://terminology.hl7.org/CodeSystem/library-type
Dependency | Description: Model USQualityCore Resource: `https://madie.cms.gov/Library/USQualityCore-ModelInfo|0.1.0-cibuild` Canonical URL: `https://madie.cms.gov/Library/USQualityCore-ModelInfo|0.1.0-cibuild`
Dependency | Description: Library FHIRHelpers Resource: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1 Canonical URL: `http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1`
Dependency | Description: Library FHIRCommon Resource: http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0 Canonical URL: `http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0`
Dependency | Description: Library USCoreCommon Resource: http://hl7.org/fhir/us/cql/Library/USCoreCommon|2.0.0-ballot Canonical URL: `http://hl7.org/fhir/us/cql/Library/USCoreCommon|2.0.0-ballot`
Dependency | Description: Library USCoreElements Resource: http://hl7.org/fhir/us/cql/Library/USCoreElements|2.0.0-ballot Canonical URL: `http://hl7.org/fhir/us/cql/Library/USCoreElements|2.0.0-ballot`
Dependency | Description: Library USQualityCoreCommon Resource: US Quality Core Commonversion: null0.1.0-cibuild) Canonical URL: `https://madie.cms.gov/Library/USQualityCoreCommon|0.1.0-cibuild`
Dependency | Description: Library SDE Resource: SupplementalDataElementsversion: null6.1.000) Canonical URL: `https://madie.cms.gov/Library/SupplementalDataElements|6.1.000`
Dependency | Description: Library Status Resource: Statusversion: null2.1.000) Canonical URL: `https://madie.cms.gov/Library/Status|2.1.000`
Dependency | Description: Library AdultOutpatientEncounters Resource: AdultOutpatientEncountersversion: null5.1.000) Canonical URL: `https://madie.cms.gov/Library/AdultOutpatientEncounters|5.1.000`
Dependency | Description: Library AIFrailLTCF Resource: AdvancedIllnessandFrailtyversion: null2.1.000) Canonical URL: `https://madie.cms.gov/Library/AdvancedIllnessandFrailty|2.1.000`
Dependency | Description: Library Hospice Resource: Hospiceversion: null7.1.000) Canonical URL: `https://madie.cms.gov/Library/Hospice|7.1.000`
Dependency | Description: Library PalliativeCare Resource: PalliativeCareversion: null2.1.000) Canonical URL: `https://madie.cms.gov/Library/PalliativeCare|2.1.000`
Dependency | Description: Value Set Colonoscopy Resource: Colonoscopy Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1020`
Dependency | Description: Value Set CT Colonography Resource: CT Colonography Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1038`
Dependency | Description: Value Set Fecal Occult Blood Test (FOBT) Resource: Fecal Occult Blood Test (FOBT) Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1011`
Dependency | Description: Value Set sDNA FIT Test Resource: sDNA FIT Test Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1039`
Dependency | Description: Value Set Flexible Sigmoidoscopy Resource: Flexible Sigmoidoscopy Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1010`
Dependency | Description: Value Set Malignant Neoplasm of Colon Resource: Malignant Neoplasm of Colon Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1001`
Dependency | Description: Value Set Total Colectomy Resource: Total Colectomy Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1019`
Data Requirement | Type: Condition Profile(s): Condition Code Filter(s): Path: code ValueSet: Malignant Neoplasm of Colon
Data Requirement | Type: Procedure Profile(s): Procedure Code Filter(s): Path: code ValueSet: Total Colectomy
Data Requirement | Type: Observation Profile(s): `http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-observation-lab` Code Filter(s): Path: code ValueSet: Fecal Occult Blood Test (FOBT)
Data Requirement | Type: Observation Profile(s): `http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-observation-lab` Code Filter(s): Path: code ValueSet: sDNA FIT Test
Data Requirement | Type: Procedure Profile(s): Procedure Code Filter(s): Path: code ValueSet: Flexible Sigmoidoscopy
Data Requirement | Type: Observation Profile(s): `http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-observation-clinical-result` Code Filter(s): Path: code ValueSet: CT Colonography
Data Requirement | Type: Procedure Profile(s): Procedure Code Filter(s): Path: code ValueSet: Colonoscopy
Parameters
Name | Use | Card. | Type | Documentation
Measurement Period | In | 0..1 | Period |
Patient | Out | 0..1 | Resource |
SDE Ethnicity | Out | 0..1 | Resource |
SDE Payer | Out | 0..* | Resource |
SDE Race | Out | 0..1 | Resource |
SDE Sex | Out | 0..1 | Coding |
Initial Population | Out | 0..1 | boolean |
Denominator | Out | 0..1 | boolean |
Malignant Neoplasm | Out | 0..* | Condition |
Total Colectomy Performed | Out | 0..* | Procedure |
Denominator Exclusions | Out | 0..1 | boolean |
Fecal Occult Blood Test Performed | Out | 0..* | Resource |
Stool DNA with FIT Test Performed | Out | 0..* | Resource |
Flexible Sigmoidoscopy Performed | Out | 0..* | Procedure |
CT Colonography Performed | Out | 0..* | Resource |
Colonoscopy Performed | Out | 0..* | Procedure |
Numerator | Out | 0..1 | boolean |
Stratification 1 | Out | 0..1 | boolean |
Stratification 2 | Out | 0..1 | boolean |
Library Content
CQL Content |
    /*
    NOTE: For use by March 2026 US Realm Connectathon participants for internal use only. Not for use or distribution in commercial products.
    */
    library CMS130FHIRColorectalCancerScrn version '1.1.000'

    using USQualityCore version '0.1.0-cibuild'
    using USCore version '6.1.0-derived'
    using FHIR version '4.0.1'

    include hl7.fhir.uv.cql.FHIRHelpers version '4.0.1' called FHIRHelpers
    include hl7.fhir.uv.cql.FHIRCommon version '2.0.0' called FHIRCommon
    include hl7.fhir.us.cql.USCoreCommon version '2.0.0-ballot' called USCoreCommon
    include hl7.fhir.us.cql.USCoreElements version '2.0.0-ballot' called USCoreElements

    include USQualityCoreCommon version '0.1.0-cibuild' called USQualityCoreCommon
    include SupplementalDataElements version '6.1.000' called SDE
    include Status version '2.1.000' called Status
    include AdultOutpatientEncounters version '5.1.000' called AdultOutpatientEncounters
    include AdvancedIllnessandFrailty version '2.1.000' called AIFrailLTCF
    include Hospice version '7.1.000' called Hospice
    include PalliativeCare version '2.1.000' called PalliativeCare

    valueset "Colonoscopy": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1020'
    valueset "CT Colonography": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1038'
    valueset "Fecal Occult Blood Test (FOBT)": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1011'
    valueset "sDNA FIT Test": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1039'
    valueset "Flexible Sigmoidoscopy": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1010'
    valueset "Malignant Neoplasm of Colon": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1001'
    valueset "Total Colectomy": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1019'

    parameter "Measurement Period" Interval<DateTime>
      default Interval[@2026-01-01T00:00:00.000Z, @2027-01-01T00:00:00.000Z)

    context Patient

    define "SDE Ethnicity":
      SDE."SDE Ethnicity"

    define "SDE Payer":
      SDE."SDE Payer"

    define "SDE Race":
      SDE."SDE Race"

    define "SDE Sex":
      SDE."SDE Sex"

    define "Initial Population":
      AgeInYearsAt(date from
        end of "Measurement Period"
      ) in Interval[46, 75]
        and exists AdultOutpatientEncounters."Qualifying Encounters"

    define "Denominator":
      "Initial Population"

    define "Denominator Exclusions":
      Hospice."Has Hospice Services"
        or exists "Malignant Neoplasm"
        or exists "Total Colectomy Performed"
        or AIFrailLTCF."Is Age 66 or Older with Advanced Illness and Frailty"
        or AIFrailLTCF."Is Age 66 or Older Living Long Term in a Nursing Home"
        or PalliativeCare."Has Palliative Care in the Measurement Period"

    define "Numerator":
      exists "Fecal Occult Blood Test Performed"
        or exists "Stool DNA with FIT Test Performed"
        or exists "Flexible Sigmoidoscopy Performed"
        or exists "CT Colonography Performed"
        or exists "Colonoscopy Performed"

    define "Fecal Occult Blood Test Performed":
      ( ( [LaboratoryResultObservation: "Fecal Occult Blood Test (FOBT)"] ).isLaboratoryTestPerformed ( ) ) FecalOccultResult
        where FecalOccultResult.value is not null
          and FecalOccultResult.effective.latest ( ) during day of "Measurement Period"

    define "Malignant Neoplasm":
      ( ( [Condition: "Malignant Neoplasm of Colon"] ).verified ( ) ) ColorectalCancer
        where ColorectalCancer.prevalenceInterval ( ) starts on or before day of end of "Measurement Period"

    define "Total Colectomy Performed":
      ( ( [Procedure: "Total Colectomy"] ).isProcedurePerformed ( ) ) Colectomy
        where Colectomy.performed.toInterval ( ) ends on or before day of end of "Measurement Period"

    define "Stratification 1":
      AgeInYearsAt(date from
        end of "Measurement Period"
      ) in Interval[46, 49]

    define "Stratification 2":
      AgeInYearsAt(date from
        end of "Measurement Period"
      ) in Interval[50, 75]

    define "Colonoscopy Performed":
      ( ( [Procedure: "Colonoscopy"] ).isProcedurePerformed ( ) ) ColonoscopyProcedure
        where ColonoscopyProcedure.performed.toInterval ( ) ends during day of Interval[start of "Measurement Period" - 9 years, end of "Measurement Period"]

    define "Flexible Sigmoidoscopy Performed":
      ( ( [Procedure: "Flexible Sigmoidoscopy"] ).isProcedurePerformed ( ) ) FlexibleSigmoidoscopy
        where FlexibleSigmoidoscopy.performed.toInterval ( ) ends during day of Interval[start of "Measurement Period" - 4 years, end of "Measurement Period"]

    define "CT Colonography Performed":
      ( ( [ObservationClinicalResult: "CT Colonography"] ).isDiagnosticStudyPerformed ( ) ) Colonography
        where Colonography.effective.toInterval ( ) ends during day of Interval[start of "Measurement Period" - 4 years, end of "Measurement Period"]

    define "Stool DNA with FIT Test Performed":
      ( ( [LaboratoryResultObservation: "sDNA FIT Test"] ).isLaboratoryTestPerformed ( ) ) sDNATest
        where sDNATest.value is not null
          and sDNATest.effective.latest ( ) during day of Interval[start of "Measurement Period" - 2 years, end of "Measurement Period"]
ELM XML Content |
    Encoded data
ELM JSON Content |
    Encoded data
Generated using version 0.5.4 of the sample-content-ig Liquid templates