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 - XML Representation

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

Raw xml | Download

    <CodeSystem xmlns="http://hl7.org/fhir">
      <id value="cql-message-category-codes"/>
      <text>
        <status value="generated"/>
        <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">  lexical<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">  syntax<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">  semantic<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>
      </text>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
        <valueCode value="cds"/>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="trial-use"/>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
        <valueInteger value="2"/>
      </extension>
      <url value="http://cql.hl7.org/CodeSystem/cql-message-category-codes"/>
      <version value="2.0.0-ballot"/>
      <name value="CQLMessageCategoryCodes"/>
      <title value="CQL Message Category Codes"/>
      <status value="active"/>
      <experimental value="false"/>
      <date value="2025-10-24T16:45:25+00:00"/>
      <publisher value="Clinical Decision Support WG"/>
      <contact>
        <telecom>
          <system value="url"/>
          <value value="http://www.hl7.org/Special/committees/dss/index.cfm"/>
        </telecom>
      </contact>
      <description
                   value="Codes for categorization of messages returned by applications that process Clinical Quality Language, whether as part of authoring or evaluating."/>
      <caseSensitive value="true"/>
      <valueSet value="http://cql.hl7.org/ValueSet/cql-message-category"/>
      <hierarchyMeaning value="is-a"/>
      <content value="complete"/>
      <concept>
        <code value="compile-time"/>
        <display value="Compile-Time"/>
        <definition
                    value="The message is associated with compile-time (or authoring) processing, such as a lexical, syntactic, or semantic error."/>
        <concept>
          <code value="lexical"/>
          <display value="Lexical"/>
          <definition
                      value="The message is associated with lexical processing, such as an invalid token."/>
        </concept>
        <concept>
          <code value="syntax"/>
          <display value="Syntax"/>
          <definition
                      value="The message is associated with syntactic processing of CQL, such as an unexpected keyword."/>
        </concept>
        <concept>
          <code value="semantic"/>
          <display value="Semantic"/>
          <definition
                      value="The message is associated with semantic processing of CQL, such as an unresolvable function call."/>
        </concept>
      </concept>
      <concept>
        <code value="run-time"/>
        <display value="Run-Time"/>
        <definition
                    value="The message is associated with run-time (or evaluation) processing of CQL, such as a duplicate value."/>
      </concept>
    </CodeSystem>