CMS FHIR Prototype Measure Calculation Tool IG
0.1.0 - CI Build

CMS FHIR Prototype Measure Calculation Tool IG, published by HL7 International - [Some] Work Group. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/mct-ig/ and changes regularly. See the Directory of published versions

## Library: Supplemental Data Elements QICore4

Official URL: http://cms.gov/fhir/mct/Library/SupplementalDataElementsQICore4 | Version: 0.1.0
Draft as of 2026-02-27 | Computable Name: SupplementalDataElementsQICore4

Id: | SupplementalDataElementsQICore4
Url: | Supplemental Data Elements QICore4
Version: | 0.1.0
Name: | SupplementalDataElementsQICore4
Title: | Supplemental Data Elements QICore4
Status: | draft
Type: | system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library
Date: | 2026-02-27 18:11:00+0000
Publisher: | HL7 International - [Some] Work Group
Jurisdiction: | US
Related Artifacts: | Dependencies `http://hl7.org/fhir/Library/QICore-ModelInfo` `http://cms.gov/fhir/mct/Library/FHIRHelpers|4.0.013` Ethnicity ONC Administrative Sex Payer Race
Parameters: |
Name | Type | Min | Max | In/Out
--- | --- | --- | --- | ---
Patient | Resource | 0 | 1 | Out
SDE Ethnicity | CodeableConcept | 0 | 1 | Out
SDE Payer | Resource | 0 | * | Out
SDE Race | CodeableConcept | 0 | 1 | Out
SDE Sex | Coding | 0 | 1 | Out
Data Requirements: |
Type | Profile | MS | Code Filter
--- | --- | --- | ---
Patient | http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient | ;; |
Coverage | http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage | ;; | code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
Content: text/cql
    /*
    @update: BTR 2020-03-31 -&gt;
    Incremented version to 2.0.0

    @update: BTR 2022-05-26 -&gt;
    Updated FHIR version to 4.0.1
    Updated FHIRHelpers version to 4.0.002
    Updated for AU 2022 Content
    */

    library SupplementalDataElementsQICore4 version '3.0.000'

    using QICore version '4.1.1'

    include FHIRHelpers version '4.0.013' called FHIRHelpers

    valueset &quot;Ethnicity&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.837'
    valueset &quot;ONC Administrative Sex&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1'
    valueset &quot;Payer&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591'
    valueset &quot;Race&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.836'

    context Patient

    define &quot;SDE Ethnicity&quot;:
      Patient.ethnicity E
        return Concept {
          codes: { E.ombCategory } union E.detailed,
          display: E.text
        }

    define &quot;SDE Payer&quot;:
      [Coverage: type in &quot;Payer&quot;] Payer
        return {
          code: Payer.type,
          period: Payer.period
        }

    define &quot;SDE Race&quot;:
      Patient.race R
        return Concept {
          codes: R.ombCategory union R.detailed,
          display: R.text
        }

    define &quot;SDE Sex&quot;:
      case
          when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }
          when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }
          else null
        end
Content: application/elm+xml
    Encoded data (43792 characters)
Content: application/elm+json
    Encoded data (78188 characters)