Title: EXM130 - Colorectal Cancer Screening Library Id: EXM130-FHIR Version: 8.0.000 Url: EXM130 - Colorectal Cancer Screening Library Official EXM130 Experimental: true Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2019-09-03 Publisher: HL7 International / Clinical Quality Information Description: This library is used as an example in the FHIR Quality Measure Implementation Guide Jurisdiction: US Approval Date: 2019-08-03 Related Artifacts: Dependencies http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1 http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1 Hospice FHIR Library Adult Outpatient Encounters Common Library MAT Global Common Functions FHIR Libraryversion: null5.0.000) Supplemental Data Elements Library http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1 http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1 MAT Global Common Functions FHIR Libraryversion: null5.0.000) http://snomed.info/sct|http://snomed.info/sct/731000124108/version/201709 http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1 http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.836 http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.837 http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591 http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1020 http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1011 http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1010 http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1001 http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1019 http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1039 http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1038 http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591 http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307 http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15 http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001 http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240 http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025 http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023 http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016 Parameters: Name Type Min Max In/Out Measurement Period Period 0 1 In Measurement Period Period 0 1 In Measurement Period Period 0 1 In Patient Patient 0 1 Out SDE Ethnicity Coding 0 * Out SDE Ethnicity Coding 0 * Out Patient Patient 0 1 Out SDE Payer Resource 0 * Out SDE Payer Resource 0 * Out SDE Race Coding 0 * Out SDE Race Coding 0 * Out SDE Sex Coding 0 1 Out SDE Sex Coding 0 1 Out Denominator boolean 0 1 Out Flexible Sigmoidoscopy Performed Procedure 0 * Out CT Colonography Performed Procedure 0 * Out Total Colectomy Performed Procedure 0 * Out Malignant Neoplasm Ever Condition 0 * Out Fecal Occult Blood Test Performed Observation 0 * Out Fecal Immunochemical Test DNA Observation 0 * Out Colonoscopy Performed Procedure 0 * Out Numerator boolean 0 1 Out Denominator Exclusion boolean 0 1 Out Has Hospice boolean 0 1 Out Initial Population boolean 0 1 Out Qualifying Encounters Encounter 0 * Out Data Requirements: Type Profile MS Code Filter Patient http://hl7.org/fhir/StructureDefinition/Patient Patient http://hl7.org/fhir/StructureDefinition/Patient Coverage http://hl7.org/fhir/StructureDefinition/Coverage code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591 Procedure http://hl7.org/fhir/StructureDefinition/Procedure code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1010 Procedure http://hl7.org/fhir/StructureDefinition/Procedure code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1038 Procedure http://hl7.org/fhir/StructureDefinition/Procedure code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1019 Condition http://hl7.org/fhir/StructureDefinition/Condition code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1001 Observation http://hl7.org/fhir/StructureDefinition/Observation code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1011 Observation http://hl7.org/fhir/StructureDefinition/Observation code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1039 Procedure http://hl7.org/fhir/StructureDefinition/Procedure code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1020 Encounter http://hl7.org/fhir/StructureDefinition/Encounter code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307 ServiceRequest http://hl7.org/fhir/StructureDefinition/ServiceRequest code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15 Procedure http://hl7.org/fhir/StructureDefinition/Procedure code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15 Encounter http://hl7.org/fhir/StructureDefinition/Encounter code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001 Encounter http://hl7.org/fhir/StructureDefinition/Encounter code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240 Encounter http://hl7.org/fhir/StructureDefinition/Encounter code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025 Encounter http://hl7.org/fhir/StructureDefinition/Encounter code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023 Encounter http://hl7.org/fhir/StructureDefinition/Encounter code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016 Content: text/cql /*#xD; This example is a work in progress and should not be considered a final specification#xD; or recommendation for guidance. This example will help guide and direct the process#xD; of finding conventions and usage patterns that meet the needs of the various stakeholders#xD; in the measure development community.#xD; #xD; Based on CMS130v8 - Colorectal Cancer Screening#xD; */#xD; library EXM130 version '8.0.000'#xD; #xD; using FHIR version '4.0.1'#xD; #xD; include FHIRHelpers version '4.0.1' called FHIRHelpers#xD; include Hospice version '2.0.000' called Hospice#xD; include AdultOutpatientEncounters version '2.0.000' called AdultOutpatientEncounters#xD; include MATGlobalCommonFunctions version '5.0.000' called Global#xD; include SupplementalDataElements version '2.0.000' called SDE#xD; #xD; valueset "ONC Administrative Sex": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1'#xD; valueset "Race": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.836'#xD; valueset "Ethnicity": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.837'#xD; valueset "Payer": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591'#xD; valueset "Colonoscopy": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1020'#xD; valueset "Fecal Occult Blood Test (FOBT)": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1011'#xD; valueset "Flexible Sigmoidoscopy": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1010'#xD; valueset "Malignant Neoplasm of Colon": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1001'#xD; valueset "Total Colectomy": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1019'#xD; valueset "FIT DNA": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1039'#xD; valueset "CT Colonography": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1038'#xD; #xD; parameter "Measurement Period" Interval<DateTime>#xD; default Interval[@2019-01-01T00:00:00.0, @2020-01-01T00:00:00.0)#xD; #xD; context Patient#xD; #xD; define "SDE Ethnicity":#xD; SDE."SDE Ethnicity"#xD; #xD; define "SDE Payer":#xD; SDE."SDE Payer"#xD; #xD; define "SDE Race":#xD; SDE."SDE Race"#xD; #xD; define "SDE Sex":#xD; SDE."SDE Sex"#xD; #xD; define "Denominator":#xD; true#xD; #xD; define "Flexible Sigmoidoscopy Performed":#xD; [Procedure: "Flexible Sigmoidoscopy"] FlexibleSigmoidoscopy#xD; where FlexibleSigmoidoscopy.status = 'completed'#xD; and Global."Normalize Interval"(FlexibleSigmoidoscopy.performed) ends 5 years or less on or before end of "Measurement Period"#xD; #xD; define "CT Colonography Performed":#xD; [Procedure: "CT Colonography"] Colonography#xD; where Colonography.status = 'completed'#xD; and Global."Normalize Interval"(Colonography.performed) ends 5 years or less on or before end of "Measurement Period"#xD; #xD; define "Total Colectomy Performed":#xD; [Procedure: "Total Colectomy"] Colectomy#xD; where Colectomy.status = 'completed'#xD; and Global."Normalize Interval"(Colectomy.performed) starts on or before end of "Measurement Period"#xD; #xD; define "Malignant Neoplasm Ever":#xD; [Condition: "Malignant Neoplasm of Colon"] ColorectalCancer#xD; where Global."Normalize Interval"(ColorectalCancer.onset) starts on or before end of "Measurement Period"#xD; #xD; define "Fecal Occult Blood Test Performed":#xD; [Observation: "Fecal Occult Blood Test (FOBT)"] FecalOccultResult#xD; where FecalOccultResult.status in {'final', 'amended', 'corrected', 'preliminary'}#xD; and FecalOccultResult.value is not null#xD; and Global."Normalize Interval"(FecalOccultResult.effective) during day of "Measurement Period"#xD; #xD; define "Fecal Immunochemical Test DNA":#xD; [Observation: "FIT DNA"] FitDNA#xD; where FitDNA.status in {'final', 'amended', 'corrected', 'preliminary'}#xD; and FitDNA.value is not null#xD; and Global."Normalize Interval"(FitDNA.effective) occurs 3 years or less on or before day of end of "Measurement Period"#xD; #xD; define "Colonoscopy Performed":#xD; [Procedure: "Colonoscopy"] Colonoscopy#xD; where Colonoscopy.status = 'completed'#xD; and Global."Normalize Interval"(Colonoscopy.performed) ends 10 years or less on or before end of "Measurement Period"#xD; #xD; define "Numerator":#xD; exists "Colonoscopy Performed"#xD; or exists "Fecal Occult Blood Test Performed"#xD; or exists "Flexible Sigmoidoscopy Performed"#xD; or exists "Fecal Immunochemical Test DNA"#xD; or exists "CT Colonography Performed"#xD; #xD; define "Denominator Exclusion":#xD; Hospice."Has Hospice"#xD; or exists "Malignant Neoplasm Ever"#xD; or exists "Total Colectomy Performed"#xD; #xD; define "Initial Population":#xD; Global."CalendarAgeInYearsAt"(FHIRHelpers.ToDate(Patient.birthDate), start of "Measurement Period") in Interval[50, 75]#xD; and exists AdultOutpatientEncounters."Qualifying Encounters"#xD; Content: application/elm+xml Encoded data (92940 characters) Content: application/elm+json Encoded data (167088 characters)
EXM130 - Colorectal Cancer Screening Library
HL7 International / Clinical Quality Information
This library is used as an example in the FHIR Quality Measure Implementation Guide
Value set Fecal Occult Blood Test (FOBT)
Value set Preventive Care Services - Established Office Visit, 18 and Up
Value set Preventive Care Services-Initial Office Visit, 18 and Up