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

## CodeSystem: CQL Message Codes

Official URL: http://cql.hl7.org/CodeSystem/cql-message-codes | Version: 2.0.0-ballot
Standards status: Trial-use | Maturity Level: 2 | Computable Name: CQLMessageCodes

Codes for messages returned by applications that process Clinical Quality Language, whether as part of authoring or evaluating. This code system is intended to be a place to identify codes for messages that are indicated by the specification itself. Implementation-specific, application-specific, and content-specific codes may be provided with codes from other code systems, but should ideally map to some code (possibly a more general code) in this code system.

This Code system is referenced in the content logical definition of the following value sets:

- CQLMessageCode

Properties

This code system defines the following properties for its concepts

Name | Code | URI | Type | Description | Value Set
Category | category | http://cql.hl7.org/CodeSystem/cql-message-characteristic-codes#category | code | The language area, possible values are codes in the [CQL Message Category Codes](CodeSystem-cql-message-category-codes.html) code system | CQL Message Category
Severity | severity | http://cql.hl7.org/CodeSystem/cql-message-characteristic-codes#severity | code | Severity of the issue, possible values are codes in the [CQL Message Severity Codes](CodeSystem-cql-message-severity-codes.html) code system | CQL Message Severity
Source | source | http://cql.hl7.org/CodeSystem/cql-message-characteristic-codes#source | code | The source of the issue, providing information about where the issue is originating and how it might be addressed, possible values are codes in the [CQL Message Source Codes](CodeSystem-cql-message-source-codes.html) code system | CQL Message Source
Example Message | example | http://cql.hl7.org/CodeSystem/cql-message-characteristic-codes#example | string | An example message providing a sample of what kinds of actual messages will be returned with this code. |
Notes | notes | http://cql.hl7.org/CodeSystem/cql-message-characteristic-codes#notes | string | Notes about the message, especially how to address the issue being identified |
Specification Link | spec-link | http://cql.hl7.org/CodeSystem/cql-message-characteristic-codes#spec-link | string | A URL to the point in the specification where this message is defined |

Concepts

This case-sensitive code system `http://cql.hl7.org/CodeSystem/cql-message-codes` defines the following codes:

Code | Display | Definition | Category | Severity | Source | Example Message | Notes | Specification Link
000-00000 | Internal | Internal translator error | compile-time | error | content | Internal translator error | This message code typically indicates an unexpected error was encountered while attempting to compile CQL. | 20-m-messages.html#messages
001-00000 | Lexical | Lexical error | lexical | error | content | Lexical error | This is a general message code for lexical errors encountered while processing CQL. The actual message will typically contain more detailed information about the issue and how to address it. | 20-m-messages.html#messages
002-00000 | Syntax | Syntax error | syntax | error | content | Syntax error | This is a general message code for syntax errors encountered while processing CQL. The actual message will typically contain more detailed information about the issue and how to address it. | 20-m-messages.html#messages
003-00000 | Semantic | Semantic error | semantic | error | content | Semantic error | This is a general message code for semantic errors encountered while processing CQL. The actual message will typically contain more detailed information about the issue and how to address it. | 20-m-messages.html#messages
003-10000 | Conditional expression resulted in a choice type | Indicates that a conditional expression resulted in a choice type when none of the branches of the conditional were choice types. This can indicate a mistake and should be reviewed. | semantic | warning | content | Conditional expression resulted in a choice type `Choice<Boolean, List<Integer>` | This message may be suppressed with the @suppressWarning tag | 03-developersguide.html#type-inference-of-conditional-expressions
100-00000 | Run-time | Runtime error | run-time | error | content | Run-time error | This is a general message code for run-time errors encountered while attempting to evaluate CQL. The actual message will typically contain more detailed information about the issue and how to address it. | 20-m-messages.html#messages