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

## : QiCore Profile Patterns - JSON Representation

Draft as of 2026-02-27

Raw json | Download

    {
      "resourceType" : "Library",
      "id" : "QiCoreProfilePatterns",
      "text" : {
        "status" : "extensions",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n    <table class=\"grid dict\">\n        \n        <tr>\n            <th scope=\"row\"><b>Id: </b></th>\n            <td style=\"padding-left: 4px;\">QiCoreProfilePatterns</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Url: </b></th>\n            <td style=\"padding-left: 4px;\"><a href=\"Library-QiCoreProfilePatterns.html\">QiCore Profile Patterns</a></td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Version: </b></th>\n            <td style=\"padding-left: 4px;\">0.1.0</td>\n        </tr>\n        \n        \n        \n        <tr>\n            <th scope=\"row\"><b>Name: </b></th>\n            <td style=\"padding-left: 4px;\">QiCoreProfilePatterns</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Title: </b></th>\n            <td style=\"padding-left: 4px;\">QiCore Profile Patterns</td>\n        </tr>\n        \n        \n        \n        <tr>\n            <th scope=\"row\"><b>Status: </b></th>\n            <td style=\"padding-left: 4px;\">draft</td>\n        </tr>\n        \n        \n        \n        <tr>\n            <th scope=\"row\"><b>Type: </b></th>\n            <td style=\"padding-left: 4px;\">\n                \n                    \n                        \n                        <p style=\"margin-bottom: 5px;\">\n                            <b>system: </b> <span><a href=\"http://terminology.hl7.org/7.0.1/CodeSystem-library-type.html\">http://terminology.hl7.org/CodeSystem/library-type</a></span>\n                        </p>\n                        \n                        \n                        <p style=\"margin-bottom: 5px;\">\n                            <b>code: </b> <span>logic-library</span>\n                        </p>\n                        \n                        \n                    \n                \n                \n            </td>\n        </tr>\n        \n        \n        \n        <tr>\n            <th scope=\"row\"><b>Date: </b></th>\n            <td style=\"padding-left: 4px;\">2026-02-27 18:11:00+0000</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Publisher: </b></th>\n            <td style=\"padding-left: 4px;\">HL7 International - [Some] Work Group</td>\n        </tr>\n        \n        \n        \n        \n        \n        \n        <tr>\n            <th scope=\"row\"><b>Jurisdiction: </b></th>\n            <td style=\"padding-left: 4px;\">US</td>\n        </tr>\n        \n        \n        \n        \n        \n        \n        \n        \n        \n        \n        \n        \n        <tr>\n          <td colspan=\"2\">\n            <table>\n              <tr><th><a id=\"cql-content\"><b>Content: </b></a> text/cql</th></tr>\n              <tr><td><pre><code class=\"language-cql\">library QiCoreProfilePatterns version '1.0.0'\r\n\r\nusing FHIR version '4.0.1'\r\n\r\ninclude FHIRHelpers version '4.0.1'\r\ninclude QICoreCommon version '1.0.0'\r\n\r\ncontext Patient\r\n\r\n// Profiles\r\n\r\n// QICoreAdverseEvent\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-adverseevent\r\ndefine AdverseEvent:\r\n  [AdverseEvent]\r\n\r\n// QICoreAllergyIntolerance\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-allergyintolerance\r\ndefine AllergyIntolerance:\r\n  [AllergyIntolerance]\r\n\r\n// QICoreBodyStructure\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-bodystructure\r\ndefine BodyStructure:\r\n  [BodyStructure]\r\n\r\n// QICoreCarePlan\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-careplan\r\ndefine CarePlan:\r\n  [CarePlan]\r\n\r\n// QICoreCareTeam\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-careteam\r\ndefine CareTeam:\r\n  [CareTeam]\r\n\r\n// QICoreClaim\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-claim\r\ndefine Claim:\r\n  [Claim]\r\n\r\n// QICoreCommunication\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-communication\r\ndefine Communication:\r\n  [Communication] C\r\n    where C.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }\r\n\r\n// QICoreCommunicationNotDone\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-communicationnotdone\r\ndefine CommunicationNotDone:\r\n  [Communication] C\r\n    where C.status = 'not-done'\r\n\r\n// QICoreCommunicationRequest\r\n// @profile: \thttp://hl7.org/fhir/us/qicore/StructureDefinition/qicore-communicationrequest\r\ndefine CommunicationRequest:\r\n  [CommunicationRequest]\r\n\r\n// QICoreCondition\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition\r\ndefine Condition:\r\n  [Condition]\r\n\r\n// QICoreCoverage\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage\r\ndefine Coverage:\r\n  [Coverage]\r\n\r\n// QICoreDevice\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-device\r\ndefine Device:\r\n  [Device]\r\n\r\n// QICoreDeviceNotRequested\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicenotrequested\r\ndefine DeviceNotRequested:\r\n  [DeviceRequest] D\r\n    where D.status = 'completed'\r\n      and D.doNotPerform() is true\r\n\r\n// QICoreDeviceRequest\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest\r\ndefine DeviceRequest:\r\n  [DeviceRequest] D\r\n    where D.status in { 'draft', 'active', 'on-hold', 'revoked', 'completed' }\r\n      and D.doNotPerform() is not true\r\n\r\n// QICoreDeviceUseStatement\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-deviceusestatement\r\ndefine DeviceUseStatement:\r\n  [DeviceUseStatement]\r\n\r\n// QICoreDiagnosticReportLab\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-diagnosticreport-lab\r\ndefine DiagnosticReportLab:\r\n  [DiagnosticReport] D\r\n    //where D.category ~ &amp;quot;http://terminology.hl7.org/CodeSystem/v2-0074#LAB&amp;quot;\r\n\r\n// QICoreDiagnosticReportNote\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-diagnosticreport-note\r\ndefine DiagnosticReportNote:\r\n  [DiagnosticReport] D\r\n\r\n// QICoreEncounter\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter\r\ndefine Encounter:\r\n  [Encounter]\r\n\r\ndefine EncounterPerformed:\r\n  Encounter E\r\n    where E.status = 'finished'\r\n\r\n// QICoreFamilyMemberHistory\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-familymemberhistory\r\ndefine FamilyMemberHistory:\r\n  [FamilyMemberHistory]\r\n\r\n// QICoreFlag\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-flag\r\ndefine Flag:\r\n  [Flag]\r\n\r\n// QICoreGoal\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-goal\r\ndefine Goal:\r\n  [Goal]\r\n\r\n// QICoreImagingStudy\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-imagingstudy\r\ndefine ImagingStudy:\r\n  [ImagingStudy]\r\n\r\n// QICoreImmunization\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-immunization\r\ndefine Immunization:\r\n  [Immunization] I\r\n    where I.status = 'completed'\r\n\r\n// QICoreImmunizationEvaluation\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-immunizationevaluation\r\ndefine ImmunizationEvaluation:\r\n  [ImmunizationEvaluation]\r\n\r\n// QICoreImmunizationNotDone\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-immunizationnotdone\r\ndefine ImmunizationNotDone:\r\n  [Immunization] I\r\n    where I.status = 'not-done'\r\n\r\n// QICoreImmunizationRecommendation\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-immunizationrec\r\ndefine ImmunizationRecommendation:\r\n  [ImmunizationRecommendation]\r\n\r\n// USCoreImplantableDevice\r\n// @profile: http://hl7.org/fhir/us/core/StructureDefinition/us-core-implantable-device\r\ndefine ImplantableDevice:\r\n  [Device]\r\n\r\n// QICoreLocation\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-location\r\ndefine Location:\r\n  [Location]\r\n\r\n// QICoreMedication\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication\r\ndefine Medication:\r\n  [Medication]\r\n\r\n// QICoreMedicationAdministration\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationadministration\r\ndefine MedicationAdministration:\r\n  [MedicationAdministration] M\r\n    where M.status in { 'in-progress', 'on-hold', 'completed' }\r\n\r\n// QICoreMedicationAdministrationNotDone\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-mednotadministered\r\ndefine MedicationAdministrationNotDone:\r\n  [MedicationAdministration] M\r\n    where M.status = 'not-done'\r\n\r\n// QICoreMedicationDispense\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationdispense\r\ndefine MedicationDispense:\r\n  [MedicationDispense] D\r\n    where D.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }\r\n\r\n// QICoreMedicationDispenseDeclined\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationdispensedeclined\r\ndefine MedicationDispenseDeclined:\r\n  [MedicationDispense] D\r\n    where D.status in { 'cancelled', 'declined' }\r\n\r\n// QICoreMedicationNotRequested\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-mednotrequested\r\ndefine MedicationNotRequested:\r\n  [MedicationRequest] R\r\n    where R.status = 'completed'\r\n      and R.doNotPerform is true\r\n\r\n// QICoreMedicationRequest\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest\r\ndefine MedicationRequest:\r\n  [MedicationRequest] R\r\n    where R.status in { 'active', 'on-hold', 'completed', 'draft' }\r\n      and R.doNotPerform is not true\r\n\r\n// QICoreMedicationStatement\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationstatement\r\ndefine MedicationStatement:\r\n  [MedicationStatement]\r\n\r\n// QICoreNutritionOrder\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-nutritionorder\r\ndefine NutritionOrder:\r\n  [NutritionOrder]\r\n\r\n// QICoreObservation\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation\r\ndefine Observation:\r\n  [Observation] O\r\n    where O.status in { 'registered', 'preliminary', 'final', 'amended', 'corrected' }\r\n\r\n// QICoreObservationCancelled\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observationcancelled\r\ndefine ObservationCancelled:\r\n  [Observation] O\r\n    where O.status = 'cancelled'\r\n\r\n// FHIR Vital Signs\r\n\r\n// Respiratory rate - 9279-1\r\n// @profile: http://hl7.org/fhir/StructureDefinition/resprate\r\ndefine RespiratoryRate:\r\n  [Observation: QICoreCommon.&amp;quot;Respiratory rate&amp;quot;] O\r\n\r\n// Heart rate - 8867-4\r\n// @profile: http://hl7.org/fhir/StructureDefinition/heartrate\r\ndefine HeartRate:\r\n  [Observation: QICoreCommon.&amp;quot;Heart rate&amp;quot;] O\r\n\r\n// Oxygen saturation - 2708-6\r\n// @profile: http://hl7.org/fhir/StructureDefinition/oxygensat\r\ndefine OxygenSaturation:\r\n  [Observation: QICoreCommon.&amp;quot;Oxygen saturation&amp;quot;] O\r\n\r\n// Body temperature - 8310-5\r\n// @profile: http://hl7.org/fhir/StructureDefinition/bodytemp\r\ndefine BodyTemperature:\r\n  [Observation: QICoreCommon.&amp;quot;Body temperature&amp;quot;] O\r\n\r\n// Body height - 8302-2\r\n// @profile: http://hl7.org/fhir/StructureDefinition/bodyheight\r\ndefine BodyHeight:\r\n  [Observation: QICoreCommon.&amp;quot;Body height&amp;quot;] O\r\n\r\n// Head circumference - 9843-4\r\n// @profile: http://hl7.org/fhir/StructureDefinition/headcircum\r\ndefine HeadCircumference:\r\n  [Observation: QICoreCommon.&amp;quot;Head circumference&amp;quot;] O\r\n\r\n// Body weight - 29463-7\r\n// @profile: http://hl7.org/fhir/StructureDefinition/bodyweight\r\ndefine BodyWeight:\r\n  [Observation: QICoreCommon.&amp;quot;Body weight&amp;quot;] O\r\n\r\n// Body mass index - 39156-5\r\n// @profile: http://hl7.org/fhir/StructureDefinition/bmi\r\ndefine BodyMassIndex:\r\n  [Observation: QICoreCommon.&amp;quot;Body mass index&amp;quot;] O\r\n\r\n// Blood pressure systolic and diastolic - 85354-9\r\n// Systolic blood pressure - 8480-6\r\n// Diastolic blood pressure - 8462-4\r\n// @profile: http://hl7.org/fhir/StructureDefinition/bp\r\ndefine BloodPressure:\r\n  [Observation: QICoreCommon.&amp;quot;Blood pressure&amp;quot;] O\r\n\r\n// USCore Smoking Status\r\n// @profile: http://hl7.org/fhir/us/core/StructureDefinition/us-core-smokingstatus\r\ndefine SmokingStatus:\r\n  [Observation: QICoreCommon.&amp;quot;Smoking status&amp;quot;] O\r\n\r\n// USCore Laboratory Result\r\n// @profile: http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab\r\ndefine LaboratoryResult:\r\n  [Observation: category ~ QICoreCommon.&amp;quot;Laboratory&amp;quot;] O\r\n\r\n// USCore Pediatric BMI for Age - 59576-9\r\n// @profile: http://hl7.org/fhir/us/core/StructureDefinition/pediatric-bmi-for-age\r\ndefine PediatricBMIForAge:\r\n  [Observation: QICoreCommon.&amp;quot;Pediatric BMI for age&amp;quot;]\r\n\r\n// USCore Pediatric Weight for Height - 77606-2\r\n// @profile: http://hl7.org/fhir/us/core/StructureDefinition/pediatric-weight-for-height\r\ndefine PediatricWeightForHeight:\r\n  [Observation: QICoreCommon.&amp;quot;Pediatric weight for height&amp;quot;]\r\n\r\n// USCore Pulse Oximetry - 59408-5\r\n// @profile: http://hl7.org/fhir/us/core/StructureDefinition/us-core-pulse-oximetry\r\ndefine PulseOximetry:\r\n  [Observation: QICoreCommon.&amp;quot;Pulse oximetry&amp;quot;]\r\n\r\n// QICoreOrganization\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-organization\r\ndefine Organization:\r\n  [Organization]\r\n\r\n// QICorePatient\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient\r\ndefine Patient:\r\n  [Patient]\r\n\r\n// QICorePractitioner\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-practitioner\r\ndefine Practitioner:\r\n  [Practitioner]\r\n\r\n// QICorePractitionerRole\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-practitionerrole\r\ndefine PractitionerRole:\r\n  [PractitionerRole]\r\n\r\n// QICoreProcedure\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure\r\ndefine Procedure:\r\n  [Procedure] P\r\n    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }\r\n\r\ndefine ProcedurePerformed:\r\n  Procedure P\r\n    where P.status = 'completed'\r\n\r\n// QICoreProcedureNotDone\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedurenotdone\r\ndefine ProcedureNotDone:\r\n  [Procedure] P\r\n    where P.status = 'not-done'\r\n\r\n// QICoreRelatedPerson\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-relatedperson\r\ndefine RelatedPerson:\r\n  [RelatedPerson]\r\n\r\n// QICoreServiceNotRequested\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested\r\ndefine ServiceNotRequested:\r\n  [ServiceRequest] SR\r\n    where SR.status = 'completed'\r\n      and SR.doNotPerform is true\r\n\r\n// QICoreServiceRequest\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest\r\ndefine ServiceRequest:\r\n  [ServiceRequest] SR\r\n    where SR.status in { 'draft', 'active', 'on-hold', 'completed' }\r\n      and SR.doNotPerform is not true\r\n\r\n// QICoreSpecimen\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-specimen\r\ndefine Specimen:\r\n  [Specimen]\r\n\r\n// QICoreSubstance\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-substance\r\ndefine Substance:\r\n  [Substance]\r\n\r\n// QICoreTask\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-task\r\ndefine Task:\r\n  [Task] T\r\n    where T.status in { 'draft', 'requested', 'received', 'accepted', 'ready', 'in-progress', 'on-hold', 'completed' }\r\n\r\n// QICoreTaskRejected\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-taskrejected\r\n// TODO: What about cancelled and failed?\r\ndefine TaskRejected:\r\n  [Task] T\r\n    where T.status = 'rejected'</code></pre></td></tr>\n            </table>\n          </td>\n        </tr>\n        \n        \n        \n    </table>\n</div>"
      },
      "extension" : [
        {
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem",
          "valueReference" : {
            🔗 "reference" : "Device/cqf-tooling"
          }
        }
      ],
      "url" : "http://cms.gov/fhir/mct/Library/QiCoreProfilePatterns",
      "version" : "0.1.0",
      "name" : "QiCoreProfilePatterns",
      "title" : "QiCore Profile Patterns",
      "status" : "draft",
      "type" : {
        "coding" : [
          {
            "system" : "http://terminology.hl7.org/CodeSystem/library-type",
            "code" : "logic-library"
          }
        ]
      },
      "date" : "2026-02-27T18:11:00+00:00",
      "publisher" : "HL7 International - [Some] Work Group",
      "contact" : [
        {
          "telecom" : [
            {
              "system" : "url",
              "value" : "http://hl7.org/Special/committees/[something]"
            }
          ]
        }
      ],
      "jurisdiction" : [
        {
          "coding" : [
            {
              "system" : "urn:iso:std:iso:3166",
              "code" : "US"
            }
          ]
        }
      ],
      "content" : [
        {
          "contentType" : "text/cql",
          "data" : " "
        }
      ]
    }