eCQM QICore Content Implementation Guide
2025.0.0 - CI Build

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

Library: CMS1074FHIRCTIQR

Official URL: https://madie.cms.gov/Library/CMS1074FHIRCTIQR Version: 0.9.000
Active as of 2025-06-11 Responsible: Alara Imaging, Inc. Computable Name: CMS1074FHIRCTIQR
Other Identifiers: https://madie.cms.gov/login#CMS1074FHIRCTIQR (use: official, )

CMS1074FHIRCTIQR

Knowledge Artifact Metadata
Name (machine-readable) CMS1074FHIRCTIQR
Title (human-readable) CMS1074FHIRCTIQR
Status active
Experimental false
Description CMS1074FHIRCTIQR
Library Steward Alara Imaging, Inc.
Dependency Description: Library SDE
Resource: https://madie.cms.gov/Library/SupplementalDataElements|5.1.000
Canonical URL: https://madie.cms.gov/Library/SupplementalDataElements|5.1.000
Dependency Description: Library FHIRHelpers
Resource: https://madie.cms.gov/Library/FHIRHelpers|4.4.000
Canonical URL: https://madie.cms.gov/Library/FHIRHelpers|4.4.000
Dependency Description: Library QICoreCommon
Resource: https://madie.cms.gov/Library/QICoreCommon|4.0.000
Canonical URL: https://madie.cms.gov/Library/QICoreCommon|4.0.000
Dependency Description: Library AlaraCommon
Resource: https://madie.cms.gov/Library/AlaraCommonFunctions|1.10.000
Canonical URL: https://madie.cms.gov/Library/AlaraCommonFunctions|1.10.000
Dependency Description: Code system LOINC
Resource: http://loinc.org
Canonical URL: http://loinc.org
Dependency Description: Value set Encounter Inpatient
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307
Library Metadata
Identifier org.hl7.fhir.r5.model.Identifier@3ba2c53f
Version Number 0.9.000
Library Type [http://terminology.hl7.org/CodeSystem/library-type#logic-library]
Library Content
CQL Content
library CMS1074FHIRCTIQR version '0.9.000'

using QICore version '6.0.0'

include FHIRHelpers version '4.4.000' called FHIRHelpers
include CQMCommon version '4.1.000' called CQMCommon
include QICoreCommon version '4.0.000' called QICoreCommon
include SupplementalDataElements version '5.1.000' called SDE
include AlaraCommonFunctions version '1.10.000' called AlaraCommon

codesystem "LOINC": 'http://loinc.org'

valueset "Encounter Inpatient": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307'

code "CT dose and image quality category": '96914-7' from "LOINC" display 'CT dose and image quality category'
code "Full Body": 'LA31771-1' from "LOINC" display 'Full Body'

parameter "Measurement Period" Interval<DateTime>

context Patient

define "Qualifying Inpatient Encounters":
  ["Encounter": "Encounter Inpatient"] InpatientEncounter
    where InpatientEncounter.status ~ 'finished'
      and InpatientEncounter.period ends during day of "Measurement Period"
      and AgeInYearsAt(date from start of "Measurement Period") >= 18

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 "Numerator":
  "Qualifying Scan with Values" CTScanWithValues
    where CTScanWithValues."ctScanQualifies" ( )

define "Initial Population":
  "Qualifying Scan During Inpatient Encounter"

define "Denominator":
  "Qualifying Scan with Values"

define "Denominator Exclusion":
  "Qualifying Scan with Values" CTScanWithValues
    where ( CTScanWithValues.value as Concept ).codes contains "Full Body"

define "Qualifying Scan with Values":
  "Qualifying Scan During Inpatient Encounter" CTScan
    where CTScan."globalNoiseValue" ( ) is not null
      and CTScan."sizeAdjustedValue" ( ) is not null
      and CTScan.value is not null

define "Qualifying Scan During Inpatient Encounter":
  [ObservationClinicalResult: "CT dose and image quality category"] CTScan
    with "Qualifying Inpatient Encounters" InpatientEncounters
      such that CTScan.effective.toInterval ( ) starts during InpatientEncounters.period
        and CTScan.effective.toInterval ( ) ends during day of "Measurement Period"
Generated using version 0.4.7 of the sample-content-ig Liquid templates