# CQM ELM Measure - Quality Measure Implementation Guide v2.0.0-ballot

## Resource Profile: CQM ELM Measure 

 
The cqm ELM Measure Profile describes minimum expectations for an executable electronic Clinical Quality Measure (eCQM) that uses ELM (i.e. compiled CQL) to represent the logic of the measure. 

**Usages:**

* Examples for this Profile: [MeasureEXM](Measure-EXMLogic-FHIR.md)

You can also check for [usages in the FHIR IG Statistics](https://packages2.fhir.org/xig/hl7.fhir.uv.cqm|current/StructureDefinition/cqm-elmmeasure)

### Formal Views of Profile Content

 [Description Differentials, Snapshots, and other representations](http://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#structure-definitions). 

 

Other representations of profile: [CSV](../StructureDefinition-cqm-elmmeasure.csv), [Excel](../StructureDefinition-cqm-elmmeasure.xlsx), [Schematron](../StructureDefinition-cqm-elmmeasure.sch) 



## Resource Content

```json
{
  "resourceType" : "StructureDefinition",
  "id" : "cqm-elmmeasure",
  "extension" : [{
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode" : "cqi"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger" : 4,
    "_valueInteger" : {
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
        "valueCanonical" : "http://hl7.org/fhir/uv/cqm/ImplementationGuide/hl7.fhir.uv.cqm"
      }]
    }
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode" : "trial-use",
    "_valueCode" : {
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
        "valueCanonical" : "http://hl7.org/fhir/uv/cqm/ImplementationGuide/hl7.fhir.uv.cqm"
      }]
    }
  }],
  "url" : "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-elmmeasure",
  "identifier" : [{
    "system" : "urn:ietf:rfc:3986",
    "value" : "urn:oid:2.16.840.1.113883.4.642.40.61.42.13"
  }],
  "version" : "1.0.0",
  "name" : "CQMELMMeasure",
  "title" : "CQM ELM Measure",
  "status" : "active",
  "experimental" : false,
  "date" : "2026-04-07T02:06:45+10:00",
  "publisher" : "HL7 International / Clinical Quality Information",
  "contact" : [{
    "telecom" : [{
      "system" : "url",
      "value" : "http://www.hl7.org/Special/committees/cqi"
    }]
  }],
  "description" : "The cqm ELM Measure Profile describes minimum expectations for an executable electronic Clinical Quality Measure (eCQM) that uses ELM (i.e. compiled CQL) to represent the logic of the measure.",
  "jurisdiction" : [{
    "coding" : [{
      "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
      "code" : "001"
    }]
  }],
  "fhirVersion" : "4.0.1",
  "mapping" : [{
    "identity" : "rim",
    "uri" : "http://hl7.org/v3",
    "name" : "RIM Mapping"
  },
  {
    "identity" : "workflow",
    "uri" : "http://hl7.org/fhir/workflow",
    "name" : "Workflow Pattern"
  },
  {
    "identity" : "w5",
    "uri" : "http://hl7.org/fhir/fivews",
    "name" : "FiveWs Pattern Mapping"
  },
  {
    "identity" : "objimpl",
    "uri" : "http://hl7.org/fhir/object-implementation",
    "name" : "Object Implementation Information"
  }],
  "kind" : "resource",
  "abstract" : false,
  "type" : "Measure",
  "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Measure",
  "derivation" : "constraint",
  "differential" : {
    "element" : [{
      "id" : "Measure",
      "path" : "Measure"
    },
    {
      "id" : "Measure.library",
      "path" : "Measure.library",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "canonical",
        "targetProfile" : ["http://hl7.org/fhir/uv/cql/StructureDefinition/elm-json-library",
        "http://hl7.org/fhir/uv/cql/StructureDefinition/elm-xml-library"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Measure.group",
      "path" : "Measure.group",
      "mustSupport" : true
    },
    {
      "id" : "Measure.group.population",
      "path" : "Measure.group.population",
      "condition" : ["elm-1"],
      "constraint" : [{
        "key" : "elm-1",
        "severity" : "error",
        "human" : "ELM measures must use text/cql-identifier for all population criteria",
        "expression" : "criteria.language = 'text/cql-identifier'"
      }],
      "mustSupport" : true
    },
    {
      "id" : "Measure.group.stratifier",
      "path" : "Measure.group.stratifier",
      "condition" : ["elm-2"],
      "constraint" : [{
        "key" : "elm-2",
        "severity" : "error",
        "human" : "Executable measures must use text/cql-identifier or text/fhirpath for all stratifier criteria",
        "expression" : "criteria.language in ('text/cql-identifier' | 'text/fhirpath')"
      }],
      "mustSupport" : true
    },
    {
      "id" : "Measure.group.stratifier.component",
      "path" : "Measure.group.stratifier.component",
      "condition" : ["elm-3"],
      "constraint" : [{
        "key" : "elm-3",
        "severity" : "error",
        "human" : "Executable measures must use text/cql-identifier or text/fhirpath for all stratifier component criteria",
        "expression" : "criteria.language in ('text/cql-identifier' | 'text/fhirpath')"
      }],
      "mustSupport" : true
    },
    {
      "id" : "Measure.supplementalData",
      "path" : "Measure.supplementalData",
      "condition" : ["elm-4"],
      "constraint" : [{
        "key" : "elm-4",
        "severity" : "error",
        "human" : "Executable measures must use text/cql-identifier or text/fhirpath for all supplemental data criteria",
        "expression" : "criteria.language in ('text/cql-identifier' | 'text/fhirpath')"
      }],
      "mustSupport" : true
    }]
  }
}

```
