FHIR CI-Build

This is the Continuous Integration Build of FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions

Example Measure/measure-EXM55-FHIR (JSON)

Responsible Owner: Clinical Quality Information Work GroupStandards Status: InformativeCompartments: No defined compartments

Raw JSON (canonical form + also see JSON Format Specification)

Example of Continuous Variable Measure

{
  "resourceType" : "Measure",
  "id" : "measure-EXM55-FHIR",
  "contained" : [{
    "resourceType" : "Library",
    "id" : "EXM55",
    "extension" : [{
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode" : "cqi"
    }],
    "url" : "http://hl7.org/fhir/uv/cqm/Library/EXM55",
    "identifier" : [{
      "use" : "official",
      "system" : "http://example.org/fhir/cqi/ecqm/Library/Identifier",
      "value" : "EXM55"
    }],
    "version" : "5.0.0",
    "name" : "EXM55",
    "title" : "EXM55 - Median Emergency Department Visit Duration Library (Example Continuous Variable Measure Library)",
    "status" : "active",
    "experimental" : true,
    "type" : {
      "coding" : [{
        "system" : "http://terminology.hl7.org/CodeSystem/library-type",
        "code" : "logic-library"
      }]
    },
    "date" : "2019-09-03",
    "publisher" : "HL7 International / Clinical Quality Information",
    "contact" : [{
      "telecom" : [{
        "system" : "url",
        "value" : "http://www.hl7.org/Special/committees/cqi"
      }]
    }],
    "description" : "This library is used as an example in the FHIR Continuous Variable Measure example",
    "jurisdiction" : [{
      "coding" : [{
        "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
        "code" : "001"
      }]
    }],
    "approvalDate" : "2019-08-03",
    "lastReviewDate" : "2019-08-03",
    "relatedArtifact" : [{
      "type" : "depends-on",
      "display" : "FHIR model information",
      "resource" : "http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1"
    },
    {
      "type" : "depends-on",
      "display" : "Library FHIRHelpers",
      "resource" : "http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1"
    }],
    "parameter" : [{
      "name" : "Measurement Period",
      "use" : "in",
      "min" : 0,
      "max" : "1",
      "type" : "Period"
    },
    {
      "name" : "Patient",
      "use" : "out",
      "min" : 0,
      "max" : "1",
      "type" : "Patient"
    },
    {
      "name" : "Inpatient Encounter",
      "use" : "out",
      "min" : 0,
      "max" : "*",
      "type" : "Encounter"
    },
    {
      "name" : "Initial Population",
      "use" : "out",
      "min" : 0,
      "max" : "*",
      "type" : "Encounter"
    },
    {
      "name" : "Measure Population",
      "use" : "out",
      "min" : 0,
      "max" : "*",
      "type" : "Encounter"
    },
    {
      "name" : "Measure Population Exclusion",
      "use" : "out",
      "min" : 0,
      "max" : "*",
      "type" : "Encounter"
    },
    {
      "name" : "Stratification 1",
      "use" : "out",
      "min" : 0,
      "max" : "*",
      "type" : "Encounter"
    },
    {
      "name" : "Stratification 2",
      "use" : "out",
      "min" : 0,
      "max" : "*",
      "type" : "Encounter"
    },
    {
      "name" : "Stratification 3",
      "use" : "out",
      "min" : 0,
      "max" : "*",
      "type" : "Encounter"
    }],
    "dataRequirement" : [{
      "type" : "Patient",
      "profile" : ["http://hl7.org/fhir/StructureDefinition/Patient"]
    },
    {
      "type" : "Encounter",
      "profile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"],
      "mustSupport" : ["period",
      "use",
      "rank",
      "rank.value",
      "condition",
      "condition.reference"]
    },
    {
      "type" : "Encounter",
      "profile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"],
      "mustSupport" : ["type",
      "status",
      "period",
      "use",
      "rank",
      "rank.value",
      "condition",
      "condition.reference",
      "hospitalization",
      "hospitalization.admitSource"]
    },
    {
      "type" : "Condition",
      "profile" : ["http://hl7.org/fhir/StructureDefinition/Condition"],
      "mustSupport" : ["id"],
      "codeFilter" : [{
        "path" : "id"
      }]
    }],
    "content" : [{
      "contentType" : "text/cql",
      "data" : "LyoNClRoaXMgZXhhbXBsZSBpcyBhIHdvcmsgaW4gcHJvZ3Jlc3MgYW5kIHNob3VsZCBub3QgYmUgY29uc2lkZXJlZCBhIGZpbmFsIHNwZWNpZmljYXRpb24NCm9yIHJlY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GlhdHJpYy9NZW50YWwgSGVhbHRoIFBhdGllbnQiDQoNCmRlZmluZSAiU3RyYXRpZmljYXRpb24gMyIgOg0KICAiSW5wYXRpZW50IEVuY291bnRlciIgRW5jb3VudGVyDQogICAgd2hlcmUgUHJpbmNpcGFsRGlhZ25vc2lzKEVuY291bnRlcikgaXMgbnVsbA0KDQovL01lYXN1cmUgT2JzZXJ2YXRpb24NCmRlZmluZSBmdW5jdGlvbiAiUmVsYXRlZCBFRCBWaXNpdCIgKEVuY291bnRlciAiRW5jb3VudGVyIiApIDoNCiAgTGFzdChbIkVuY291bnRlciIgOiAiRW1lcmdlbmN5IERlcGFydG1lbnQgVmlzaXQiXSBFRA0KICAgIHdoZXJlIEVELnN0YXR1cyA9ICdmaW5pc2hlZCcNCiAgICAgIGFuZCBFRC5wZXJpb2QgZW5kcyAxIGhvdXIgb3IgbGVzcyBiZWZvcmUgc3RhcnQgb2YgRW5jb3VudGVyLnBlcmlvZA0KICAgIHNvcnQgYnkgc3RhcnQgb2YgcGVyaW9kICkNCg0KZGVmaW5lIGZ1bmN0aW9uICJNZWFzdXJlIE9ic2VydmF0aW9uIiAoRW5jb3VudGVyICJFbmNvdW50ZXIiICkgOg0KICBkdXJhdGlvbiBpbiBtaW51dGVzIG9mICJSZWxhdGVkIEVEIFZpc2l0IihFbmNvdW50ZXIpLnBlcmlvZA0K"
    }]
  }],
  "extension" : [{
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode" : "cqi"
  }],
  "url" : "http://hl7.org/fhir/uv/cqm/Measure/measure-EXM55-FHIR",
  "identifier" : [{
    "use" : "official",
    "system" : "http://example.org/fhir/cqi/ecqm/Measure/Identifier/exm",
    "value" : "55"
  }],
  "version" : "5.0.0",
  "name" : "EXM55",
  "title" : "EXM55 - Median Emergency Department Visit Duration",
  "status" : "active",
  "experimental" : true,
  "date" : "2025-08-13",
  "publisher" : "HL7 International / Clinical Quality Information",
  "contact" : [{
    "telecom" : [{
      "system" : "url",
      "value" : "http://www.hl7.org/Special/committees/cqi"
    }]
  }],
  "description" : "This example illustrates a continuous variable measure represented as a FHIR eCQM",
  "useContext" : [{
    "code" : {
      "system" : "http://terminology.hl7.org/CodeSystem/usage-context-type",
      "code" : "venue",
      "display" : "Clinical Venue"
    },
    "valueCodeableConcept" : {
      "coding" : [{
        "system" : "http://hl7.org/fhir/uv/cqm/CodeSystem/intended-venue-codes",
        "code" : "eh",
        "display" : "EH"
      }]
    }
  }],
  "jurisdiction" : [{
    "coding" : [{
      "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
      "code" : "001"
    }]
  }],
  "approvalDate" : "2019-03-08",
  "lastReviewDate" : "2019-03-08",
  "effectivePeriod" : {
    "start" : "2018-01-01",
    "end" : "2018-12-31"
  },
  "topic" : [{
    "coding" : [{
      "system" : "http://loinc.org",
      "code" : "57024-2",
      "display" : "Health Quality Measure Document"
    }]
  }],
  "library" : ["#EXM55"],
  "group" : [{
    "id" : "group-1",
    "type" : [{
      "coding" : [{
        "system" : "http://terminology.hl7.org/CodeSystem/measure-type",
        "code" : "process"
      }]
    }],
    "basis" : "Encounter",
    "scoring" : {
      "coding" : [{
        "system" : "http://terminology.hl7.org/CodeSystem/measure-scoring",
        "code" : "continuous-variable",
        "display" : "Continuous Variable"
      }]
    },
    "improvementNotation" : {
      "coding" : [{
        "system" : "http://terminology.hl7.org/CodeSystem/measure-improvement-notation",
        "code" : "decrease",
        "display" : "Decreased score indicates improvement"
      }]
    },
    "population" : [{
      "linkId" : "primary-exm55-initial-population",
      "code" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
          "code" : "initial-population",
          "display" : "Initial Population"
        }]
      },
      "criteria" : {
        "language" : "text/cql-identifier",
        "expression" : "Initial Population"
      }
    },
    {
      "linkId" : "primary-exm55-measure-population",
      "code" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
          "code" : "measure-population",
          "display" : "Measure Population"
        }]
      },
      "criteria" : {
        "language" : "text/cql-identifier",
        "expression" : "Measure Population"
      }
    },
    {
      "linkId" : "primary-exm55-measure-population-exclusion",
      "code" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
          "code" : "measure-population-exclusion",
          "display" : "Measure Population Exclusion"
        }]
      },
      "criteria" : {
        "language" : "text/cql-identifier",
        "expression" : "Measure Population Exclusion"
      }
    },
    {
      "linkId" : "primary-exm55-measure-population-identifier",
      "code" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
          "code" : "measure-observation",
          "display" : "Measure Observation"
        }]
      },
      "criteria" : {
        "language" : "text/cql-identifier",
        "expression" : "Measure Observation"
      },
      "inputPopulationId" : "measure-population-identifier",
      "aggregateMethod" : {
        "coding" : [{
          "system" : "http://hl7.org/fhir/CodeSystem/measure-aggregate-method",
          "code" : "median",
          "display" : "Median"
        }]
      }
    }],
    "stratifier" : [{
      "linkId" : "primary-exm55-stratification-1",
      "code" : {
        "coding" : [{
          "system" : "http://example.org/stratification",
          "code" : "Stratification 1",
          "display" : "Stratification 1"
        }]
      },
      "criteria" : {
        "language" : "text/cql-identifier",
        "expression" : "Stratification 1"
      }
    },
    {
      "linkId" : "primary-exm55-stratification-2",
      "code" : {
        "coding" : [{
          "system" : "http://example.org/stratification",
          "code" : "Stratification 2",
          "display" : "Stratification 2"
        }]
      },
      "criteria" : {
        "language" : "text/cql-identifier",
        "expression" : "Stratification 2"
      }
    },
    {
      "linkId" : "primary-exm55-stratification-3",
      "code" : {
        "coding" : [{
          "system" : "http://example.org/stratification",
          "code" : "Stratification 3",
          "display" : "Stratification 3"
        }]
      },
      "criteria" : {
        "language" : "text/cql-identifier",
        "expression" : "Stratification 3"
      }
    }]
  }]
}

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.