Clinical Quality Language Specification
2.0.0-ballot - R2 STU 1 (Ballot)

Clinical Quality Language Specification, published by Clinical Decision Support WG. This guide is not an authorized publication; it is the continuous build for version 2.0.0-ballot built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/cql/ and changes regularly. See the Directory of published versions

## : CQL Message Category Codes - JSON Representation

Page standards status: Trial-use | Maturity Level: 2

Raw json | Download

    {
      "resourceType" : "CodeSystem",
      "id" : "cql-message-category-codes",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: CodeSystem cql-message-category-codes</b></p><a name=\"cql-message-category-codes\"> </a><a name=\"hccql-message-category-codes\"> </a><p>This case-sensitive code system <code>http://cql.hl7.org/CodeSystem/cql-message-category-codes</code> defines the following codes in a Is-A hierarchy:</p><table class=\"codes\"><tr><td><b>Lvl</b></td><td style=\"white-space:nowrap\"><b>Code</b></td><td><b>Display</b></td><td><b>Definition</b></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">compile-time<a name=\"cql-message-category-codes-compile-time\"> </a></td><td>Compile-Time</td><td>The message is associated with compile-time (or authoring) processing, such as a lexical, syntactic, or semantic error.</td></tr><tr><td>2</td><td style=\"white-space:nowrap\">\u00a0\u00a0lexical<a name=\"cql-message-category-codes-lexical\"> </a></td><td>Lexical</td><td>The message is associated with lexical processing, such as an invalid token.</td></tr><tr><td>2</td><td style=\"white-space:nowrap\">\u00a0\u00a0syntax<a name=\"cql-message-category-codes-syntax\"> </a></td><td>Syntax</td><td>The message is associated with syntactic processing of CQL, such as an unexpected keyword.</td></tr><tr><td>2</td><td style=\"white-space:nowrap\">\u00a0\u00a0semantic<a name=\"cql-message-category-codes-semantic\"> </a></td><td>Semantic</td><td>The message is associated with semantic processing of CQL, such as an unresolvable function call.</td></tr><tr><td>1</td><td style=\"white-space:nowrap\">run-time<a name=\"cql-message-category-codes-run-time\"> </a></td><td>Run-Time</td><td>The message is associated with run-time (or evaluation) processing of CQL, such as a duplicate value.</td></tr></table></div>"
      },
      "extension" : [
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode" : "cds"
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode" : "trial-use"
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger" : 2
        }
      ],
      "url" : "http://cql.hl7.org/CodeSystem/cql-message-category-codes",
      "version" : "2.0.0-ballot",
      "name" : "CQLMessageCategoryCodes",
      "title" : "CQL Message Category Codes",
      "status" : "active",
      "experimental" : false,
      "date" : "2025-10-24T16:45:25+00:00",
      "publisher" : "Clinical Decision Support WG",
      "contact" : [
        {
          "telecom" : [
            {
              "system" : "url",
              "value" : "http://www.hl7.org/Special/committees/dss/index.cfm"
            }
          ]
        }
      ],
      "description" : "Codes for categorization of messages returned by applications that process Clinical Quality Language, whether as part of authoring or evaluating.",
      "caseSensitive" : true,
      "valueSet" : "http://cql.hl7.org/ValueSet/cql-message-category",
      "hierarchyMeaning" : "is-a",
      "content" : "complete",
      "concept" : [
        {
          "code" : "compile-time",
          "display" : "Compile-Time",
          "definition" : "The message is associated with compile-time (or authoring) processing, such as a lexical, syntactic, or semantic error.",
          "concept" : [
            {
              "code" : "lexical",
              "display" : "Lexical",
              "definition" : "The message is associated with lexical processing, such as an invalid token."
            },
            {
              "code" : "syntax",
              "display" : "Syntax",
              "definition" : "The message is associated with syntactic processing of CQL, such as an unexpected keyword."
            },
            {
              "code" : "semantic",
              "display" : "Semantic",
              "definition" : "The message is associated with semantic processing of CQL, such as an unresolvable function call."
            }
          ]
        },
        {
          "code" : "run-time",
          "display" : "Run-Time",
          "definition" : "The message is associated with run-time (or evaluation) processing of CQL, such as a duplicate value."
        }
      ]
    }