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: QiCore Profile Validation

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

Id: | QiCoreProfileValidation
Url: | QiCore Profile Validation
Version: | 0.1.0
Name: | QiCoreProfileValidation
Title: | QiCore Profile Validation
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
Content: text/cql
    library QiCoreProfileValidation version '1.0.0'

    using FHIR version '4.0.1'

    include FHIRHelpers version '4.0.1'
    include QiCoreProfilePatterns version '1.0.0' called Profiles

    context Patient

    define &quot;Initial Population&quot;: true

    define &quot;SDE AdverseEvent&quot;:
        Profiles.AdverseEvent

    define &quot;SDE AllergyIntolerance&quot;:
        Profiles.AllergyIntolerance

    define &quot;SDE BodyStructure&quot;:
        Profiles.BodyStructure

    define &quot;SDE CarePlan&quot;:
        Profiles.CarePlan

    define &quot;SDE CareTeam&quot;:
        Profiles.CareTeam

    define &quot;SDE Claim&quot;:
        Profiles.Claim

    define &quot;SDE Communication&quot;:
        Profiles.Communication

    define &quot;SDE CommunicationNotDone&quot;:
        Profiles.CommunicationNotDone

    define &quot;SDE CommunicationRequest&quot;:
        Profiles.CommunicationRequest

    define &quot;SDE Condition&quot;:
        Profiles.Condition

    define &quot;SDE Coverage&quot;:
        Profiles.Coverage

    define &quot;SDE Device&quot;:
        Profiles.Device

    define &quot;SDE DeviceNotRequested&quot;:
        Profiles.DeviceNotRequested

    define &quot;SDE DeviceRequest&quot;:
        Profiles.DeviceRequest

    define &quot;SDE DeviceUseStatement&quot;:
        Profiles.DeviceUseStatement

    define &quot;SDE DiagnosticReportLab&quot;:
        Profiles.DiagnosticReportLab

    define &quot;SDE DiagnosticReportNote&quot;:
        Profiles.DiagnosticReportNote

    define &quot;SDE Encounter&quot;:
        Profiles.Encounter

    define &quot;SDE EncounterPerformed&quot;:
        Profiles.EncounterPerformed

    define &quot;SDE FamilyMemberHistory&quot;:
        Profiles.FamilyMemberHistory

    define &quot;SDE Flag&quot;:
        Profiles.Flag

    define &quot;SDE Goal&quot;:
        Profiles.Goal

    define &quot;SDE ImagingStudy&quot;:
        Profiles.ImagingStudy

    define &quot;SDE Immunization&quot;:
        Profiles.Immunization

    define &quot;SDE ImmunizationEvaluation&quot;:
        Profiles.ImmunizationEvaluation

    define &quot;SDE ImmunizationNotDone&quot;:
        Profiles.ImmunizationNotDone

    define &quot;SDE ImmunizationRecommendation&quot;:
        Profiles.ImmunizationRecommendation

    define &quot;SDE ImplantableDevice&quot;:
        Profiles.ImplantableDevice

    define &quot;SDE Location&quot;:
        Profiles.Location

    define &quot;SDE Medication&quot;:
        Profiles.Medication

    define &quot;SDE MedicationAdministration&quot;:
        Profiles.MedicationAdministration

    define &quot;SDE MedicationAdministrationNotDone&quot;:
        Profiles.MedicationAdministrationNotDone

    define &quot;SDE MedicationDispense&quot;:
        Profiles.MedicationDispense

    define &quot;SDE MedicationDispenseDeclined&quot;:
        Profiles.MedicationDispenseDeclined

    define &quot;SDE MedicationNotRequested&quot;:
        Profiles.MedicationNotRequested

    define &quot;SDE MedicationRequest&quot;:
        Profiles.MedicationRequest

    define &quot;SDE MedicationStatement&quot;:
        Profiles.MedicationStatement

    define &quot;SDE NutritionOrder&quot;:
        Profiles.NutritionOrder

    define &quot;SDE Observation&quot;:
        Profiles.Observation

    define &quot;SDE ObservationCancelled&quot;:
        Profiles.ObservationCancelled

    define &quot;SDE Organization&quot;:
        Profiles.Organization

    define &quot;SDE Patient&quot;:
        Profiles.Patient

    define &quot;SDE Practitioner&quot;:
        Profiles.Practitioner

    define &quot;SDE PractitionerRole&quot;:
        Profiles.PractitionerRole

    define &quot;SDE Procedure&quot;:
        Profiles.Procedure

    define &quot;SDE ProcedurePerformed&quot;:
        Profiles.ProcedurePerformed

    define &quot;SDE ProcedureNotDone&quot;:
        Profiles.ProcedureNotDone

    define &quot;SDE RelatedPerson&quot;:
        Profiles.RelatedPerson

    define &quot;SDE ServiceNotRequested&quot;:
        Profiles.ServiceNotRequested

    define &quot;SDE ServiceRequest&quot;:
        Profiles.ServiceRequest

    define &quot;SDE Specimen&quot;:
        Profiles.Specimen

    define &quot;SDE Substance&quot;:
        Profiles.Substance

    define &quot;SDE Task&quot;:
        Profiles.Task

    define &quot;SDE TaskRejected&quot;:
        Profiles.TaskRejected