Clinical Quality Language Specification
2.0.0 - R2 STU 1

Clinical Quality Language Specification - Downloaded Version 2.0.0 See the Directory of published versions

## : CQL Message Codes - TTL Representation

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

Raw ttl | Download

    @prefix fhir: <http://hl7.org/fhir/> .
    @prefix owl: <http://www.w3.org/2002/07/owl#> .
    @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
    @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

    # - resource -------------------------------------------------------------------

    <http://hl7.org/fhir/CodeSystem/cql-message-codes> a fhir:CodeSystem ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:Resource.id [ fhir:value "cql-message-codes"] ;
      fhir:DomainResource.text [
         fhir:Narrative.status [ fhir:value "generated" ] ;
         fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: CodeSystem cql-message-codes</b></p><a name=\"cql-message-codes\"> </a><a name=\"hccql-message-codes\"> </a><p><b>Properties</b></p><p><b>This code system defines the following properties for its concepts</b></p><table class=\"grid\"><tr><td><b>Name</b></td><td><b>Code</b></td><td><b>URI</b></td><td><b>Type</b></td><td><b>Description</b></td><td><b>Value Set</b></td></tr><tr><td>Category</td><td>category</td><td>http://cql.hl7.org/CodeSystem/cql-message-characteristic-codes#category</td><td>code</td><td>The language area, possible values are codes in the [CQL Message Category Codes](CodeSystem-cql-message-category-codes.html) code system</td><td><a href=\"ValueSet-cql-message-category.html\">CQL Message Category</a></td></tr><tr><td>Severity</td><td>severity</td><td>http://cql.hl7.org/CodeSystem/cql-message-characteristic-codes#severity</td><td>code</td><td>Severity of the issue, possible values are codes in the [CQL Message Severity Codes](CodeSystem-cql-message-severity-codes.html) code system</td><td><a href=\"ValueSet-cql-message-severity.html\">CQL Message Severity</a></td></tr><tr><td>Source</td><td>source</td><td>http://cql.hl7.org/CodeSystem/cql-message-characteristic-codes#source</td><td>code</td><td>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</td><td><a href=\"ValueSet-cql-message-source.html\">CQL Message Source</a></td></tr><tr><td>Example Message</td><td>example</td><td>http://cql.hl7.org/CodeSystem/cql-message-characteristic-codes#example</td><td>string</td><td>An example message providing a sample of what kinds of actual messages will be returned with this code.</td><td/></tr><tr><td>Notes</td><td>notes</td><td>http://cql.hl7.org/CodeSystem/cql-message-characteristic-codes#notes</td><td>string</td><td>Notes about the message, especially how to address the issue being identified</td><td/></tr><tr><td>Specification Link</td><td>spec-link</td><td>http://cql.hl7.org/CodeSystem/cql-message-characteristic-codes#spec-link</td><td>string</td><td>A URL to the point in the specification where this message is defined</td><td/></tr></table><p><b>Concepts</b></p><p>This case-sensitive code system <code>http://cql.hl7.org/CodeSystem/cql-message-codes</code> defines the following codes:</p><table class=\"codes\"><tr><td style=\"white-space:nowrap\"><b>Code</b></td><td><b>Display</b></td><td><b>Definition</b></td><td><b>Category</b></td><td><b>Severity</b></td><td><b>Source</b></td><td><b>Example Message</b></td><td><b>Notes</b></td><td><b>Specification Link</b></td></tr><tr><td style=\"white-space:nowrap\">000-00000<a name=\"cql-message-codes-000-00000\"> </a></td><td>Internal</td><td>Internal translator error</td><td>compile-time</td><td>error</td><td>content</td><td>Internal translator error</td><td>This message code typically indicates an unexpected error was encountered while attempting to compile CQL.</td><td>20-m-messages.html#messages</td></tr><tr><td style=\"white-space:nowrap\">001-00000<a name=\"cql-message-codes-001-00000\"> </a></td><td>Lexical</td><td>Lexical error</td><td>lexical</td><td>error</td><td>content</td><td>Lexical error</td><td>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.</td><td>20-m-messages.html#messages</td></tr><tr><td style=\"white-space:nowrap\">002-00000<a name=\"cql-message-codes-002-00000\"> </a></td><td>Syntax</td><td>Syntax error</td><td>syntax</td><td>error</td><td>content</td><td>Syntax error</td><td>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.</td><td>20-m-messages.html#messages</td></tr><tr><td style=\"white-space:nowrap\">003-00000<a name=\"cql-message-codes-003-00000\"> </a></td><td>Semantic</td><td>Semantic error</td><td>semantic</td><td>error</td><td>content</td><td>Semantic error</td><td>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.</td><td>20-m-messages.html#messages</td></tr><tr><td style=\"white-space:nowrap\">003-10000<a name=\"cql-message-codes-003-10000\"> </a></td><td>Conditional expression resulted in a choice type</td><td>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.</td><td>semantic</td><td>warning</td><td>content</td><td>Conditional expression resulted in a choice type `Choice&lt;Boolean, List&lt;Integer&gt;`</td><td>This message may be suppressed with the @suppressWarning tag</td><td>03-developersguide.html#type-inference-of-conditional-expressions</td></tr><tr><td style=\"white-space:nowrap\">100-00000<a name=\"cql-message-codes-100-00000\"> </a></td><td>Run-time</td><td>Runtime error</td><td>run-time</td><td>error</td><td>content</td><td>Run-time error</td><td>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.</td><td>20-m-messages.html#messages</td></tr></table></div>"
      ] ;
      fhir:DomainResource.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg" ] ;
         fhir:Extension.valueCode [ fhir:value "cds" ]
      ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ] ;
         fhir:Extension.valueCode [ fhir:value "trial-use" ]
      ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm" ] ;
         fhir:Extension.valueInteger [ fhir:value "2"^^xsd:integer ]
      ] ;
      fhir:CodeSystem.url [ fhir:value "http://cql.hl7.org/CodeSystem/cql-message-codes"] ;
      fhir:CodeSystem.identifier [
         fhir:index 0 ;
         fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ] ;
         fhir:Identifier.value [ fhir:value "urn:oid:2.16.840.1.113883.4.642.40.71.16.5" ]
      ] ;
      fhir:CodeSystem.version [ fhir:value "2.0.0"] ;
      fhir:CodeSystem.name [ fhir:value "CQLMessageCodes"] ;
      fhir:CodeSystem.title [ fhir:value "CQL Message Codes"] ;
      fhir:CodeSystem.status [ fhir:value "active"] ;
      fhir:CodeSystem.experimental [ fhir:value "false"^^xsd:boolean] ;
      fhir:CodeSystem.date [ fhir:value "2026-07-29T09:34:45+10:00"^^xsd:dateTime] ;
      fhir:CodeSystem.publisher [ fhir:value "Clinical Decision Support WG"] ;
      fhir:CodeSystem.contact [
         fhir:index 0 ;
         fhir:ContactDetail.telecom [
           fhir:index 0 ;
           fhir:ContactPoint.system [ fhir:value "url" ] ;
           fhir:ContactPoint.value [ fhir:value "http://www.hl7.org/Special/committees/dss/index.cfm" ]
         ]
      ] ;
      fhir:CodeSystem.description [ fhir:value "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."] ;
      fhir:CodeSystem.caseSensitive [ fhir:value "true"^^xsd:boolean] ;
      fhir:CodeSystem.valueSet [
         fhir:value "http://cql.hl7.org/ValueSet/cql-message-code" ;
         fhir:link <http://cql.hl7.org/ValueSet/cql-message-code>
      ] ;
      fhir:CodeSystem.content [ fhir:value "complete"] ;
      fhir:CodeSystem.property [
         fhir:index 0 ;
         fhir:Element.extension [
           fhir:index 0 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/codesystem-property-valueset" ] ;
           fhir:Extension.valueCanonical [
             fhir:value "http://cql.hl7.org/ValueSet/cql-message-category" ;
             fhir:link <http://cql.hl7.org/ValueSet/cql-message-category>
           ]
         ] ;
         fhir:CodeSystem.property.code [ fhir:value "category" ] ;
         fhir:CodeSystem.property.uri [ fhir:value "http://cql.hl7.org/CodeSystem/cql-message-characteristic-codes#category" ] ;
         fhir:CodeSystem.property.description [ fhir:value "The language area, possible values are codes in the [CQL Message Category Codes](CodeSystem-cql-message-category-codes.html) code system" ] ;
         fhir:CodeSystem.property.type [ fhir:value "code" ]
      ], [
         fhir:index 1 ;
         fhir:Element.extension [
           fhir:index 0 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/codesystem-property-valueset" ] ;
           fhir:Extension.valueCanonical [
             fhir:value "http://cql.hl7.org/ValueSet/cql-message-severity" ;
             fhir:link <http://cql.hl7.org/ValueSet/cql-message-severity>
           ]
         ] ;
         fhir:CodeSystem.property.code [ fhir:value "severity" ] ;
         fhir:CodeSystem.property.uri [ fhir:value "http://cql.hl7.org/CodeSystem/cql-message-characteristic-codes#severity" ] ;
         fhir:CodeSystem.property.description [ fhir:value "Severity of the issue, possible values are codes in the [CQL Message Severity Codes](CodeSystem-cql-message-severity-codes.html) code system" ] ;
         fhir:CodeSystem.property.type [ fhir:value "code" ]
      ], [
         fhir:index 2 ;
         fhir:Element.extension [
           fhir:index 0 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/codesystem-property-valueset" ] ;
           fhir:Extension.valueCanonical [
             fhir:value "http://cql.hl7.org/ValueSet/cql-message-source" ;
             fhir:link <http://cql.hl7.org/ValueSet/cql-message-source>
           ]
         ] ;
         fhir:CodeSystem.property.code [ fhir:value "source" ] ;
         fhir:CodeSystem.property.uri [ fhir:value "http://cql.hl7.org/CodeSystem/cql-message-characteristic-codes#source" ] ;
         fhir:CodeSystem.property.description [ fhir:value "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" ] ;
         fhir:CodeSystem.property.type [ fhir:value "code" ]
      ], [
         fhir:index 3 ;
         fhir:CodeSystem.property.code [ fhir:value "example" ] ;
         fhir:CodeSystem.property.uri [ fhir:value "http://cql.hl7.org/CodeSystem/cql-message-characteristic-codes#example" ] ;
         fhir:CodeSystem.property.description [ fhir:value "An example message providing a sample of what kinds of actual messages will be returned with this code." ] ;
         fhir:CodeSystem.property.type [ fhir:value "string" ]
      ], [
         fhir:index 4 ;
         fhir:CodeSystem.property.code [ fhir:value "notes" ] ;
         fhir:CodeSystem.property.uri [ fhir:value "http://cql.hl7.org/CodeSystem/cql-message-characteristic-codes#notes" ] ;
         fhir:CodeSystem.property.description [ fhir:value "Notes about the message, especially how to address the issue being identified" ] ;
         fhir:CodeSystem.property.type [ fhir:value "string" ]
      ], [
         fhir:index 5 ;
         fhir:CodeSystem.property.code [ fhir:value "spec-link" ] ;
         fhir:CodeSystem.property.uri [ fhir:value "http://cql.hl7.org/CodeSystem/cql-message-characteristic-codes#spec-link" ] ;
         fhir:CodeSystem.property.description [ fhir:value "A URL to the point in the specification where this message is defined" ] ;
         fhir:CodeSystem.property.type [ fhir:value "string" ]
      ] ;
      fhir:CodeSystem.concept [
         fhir:index 0 ;
         fhir:CodeSystem.concept.code [ fhir:value "000-00000" ] ;
         fhir:CodeSystem.concept.display [ fhir:value "Internal" ] ;
         fhir:CodeSystem.concept.definition [ fhir:value "Internal translator error" ] ;
         fhir:CodeSystem.concept.property [
           fhir:index 0 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "category" ] ;
           fhir:CodeSystem.concept.property.valueCode [ fhir:value "compile-time" ]
         ], [
           fhir:index 1 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "severity" ] ;
           fhir:CodeSystem.concept.property.valueCode [ fhir:value "error" ]
         ], [
           fhir:index 2 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "source" ] ;
           fhir:CodeSystem.concept.property.valueCode [ fhir:value "content" ]
         ], [
           fhir:index 3 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "example" ] ;
           fhir:CodeSystem.concept.property.valueString [ fhir:value "Internal translator error" ]
         ], [
           fhir:index 4 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "notes" ] ;
           fhir:CodeSystem.concept.property.valueString [ fhir:value "This message code typically indicates an unexpected error was encountered while attempting to compile CQL." ]
         ], [
           fhir:index 5 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "spec-link" ] ;
           fhir:CodeSystem.concept.property.valueString [ fhir:value "20-m-messages.html#messages" ]
         ]
      ], [
         fhir:index 1 ;
         fhir:CodeSystem.concept.code [ fhir:value "001-00000" ] ;
         fhir:CodeSystem.concept.display [ fhir:value "Lexical" ] ;
         fhir:CodeSystem.concept.definition [ fhir:value "Lexical error" ] ;
         fhir:CodeSystem.concept.property [
           fhir:index 0 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "category" ] ;
           fhir:CodeSystem.concept.property.valueCode [ fhir:value "lexical" ]
         ], [
           fhir:index 1 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "severity" ] ;
           fhir:CodeSystem.concept.property.valueCode [ fhir:value "error" ]
         ], [
           fhir:index 2 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "source" ] ;
           fhir:CodeSystem.concept.property.valueCode [ fhir:value "content" ]
         ], [
           fhir:index 3 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "example" ] ;
           fhir:CodeSystem.concept.property.valueString [ fhir:value "Lexical error" ]
         ], [
           fhir:index 4 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "notes" ] ;
           fhir:CodeSystem.concept.property.valueString [ fhir:value "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." ]
         ], [
           fhir:index 5 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "spec-link" ] ;
           fhir:CodeSystem.concept.property.valueString [ fhir:value "20-m-messages.html#messages" ]
         ]
      ], [
         fhir:index 2 ;
         fhir:CodeSystem.concept.code [ fhir:value "002-00000" ] ;
         fhir:CodeSystem.concept.display [ fhir:value "Syntax" ] ;
         fhir:CodeSystem.concept.definition [ fhir:value "Syntax error" ] ;
         fhir:CodeSystem.concept.property [
           fhir:index 0 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "category" ] ;
           fhir:CodeSystem.concept.property.valueCode [ fhir:value "syntax" ]
         ], [
           fhir:index 1 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "severity" ] ;
           fhir:CodeSystem.concept.property.valueCode [ fhir:value "error" ]
         ], [
           fhir:index 2 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "source" ] ;
           fhir:CodeSystem.concept.property.valueCode [ fhir:value "content" ]
         ], [
           fhir:index 3 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "example" ] ;
           fhir:CodeSystem.concept.property.valueString [ fhir:value "Syntax error" ]
         ], [
           fhir:index 4 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "notes" ] ;
           fhir:CodeSystem.concept.property.valueString [ fhir:value "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." ]
         ], [
           fhir:index 5 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "spec-link" ] ;
           fhir:CodeSystem.concept.property.valueString [ fhir:value "20-m-messages.html#messages" ]
         ]
      ], [
         fhir:index 3 ;
         fhir:CodeSystem.concept.code [ fhir:value "003-00000" ] ;
         fhir:CodeSystem.concept.display [ fhir:value "Semantic" ] ;
         fhir:CodeSystem.concept.definition [ fhir:value "Semantic error" ] ;
         fhir:CodeSystem.concept.property [
           fhir:index 0 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "category" ] ;
           fhir:CodeSystem.concept.property.valueCode [ fhir:value "semantic" ]
         ], [
           fhir:index 1 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "severity" ] ;
           fhir:CodeSystem.concept.property.valueCode [ fhir:value "error" ]
         ], [
           fhir:index 2 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "source" ] ;
           fhir:CodeSystem.concept.property.valueCode [ fhir:value "content" ]
         ], [
           fhir:index 3 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "example" ] ;
           fhir:CodeSystem.concept.property.valueString [ fhir:value "Semantic error" ]
         ], [
           fhir:index 4 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "notes" ] ;
           fhir:CodeSystem.concept.property.valueString [ fhir:value "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." ]
         ], [
           fhir:index 5 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "spec-link" ] ;
           fhir:CodeSystem.concept.property.valueString [ fhir:value "20-m-messages.html#messages" ]
         ]
      ], [
         fhir:index 4 ;
         fhir:CodeSystem.concept.code [ fhir:value "003-10000" ] ;
         fhir:CodeSystem.concept.display [ fhir:value "Conditional expression resulted in a choice type" ] ;
         fhir:CodeSystem.concept.definition [ fhir:value "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." ] ;
         fhir:CodeSystem.concept.property [
           fhir:index 0 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "category" ] ;
           fhir:CodeSystem.concept.property.valueCode [ fhir:value "semantic" ]
         ], [
           fhir:index 1 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "severity" ] ;
           fhir:CodeSystem.concept.property.valueCode [ fhir:value "warning" ]
         ], [
           fhir:index 2 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "source" ] ;
           fhir:CodeSystem.concept.property.valueCode [ fhir:value "content" ]
         ], [
           fhir:index 3 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "example" ] ;
           fhir:CodeSystem.concept.property.valueString [ fhir:value "Conditional expression resulted in a choice type `Choice<Boolean, List<Integer>`" ]
         ], [
           fhir:index 4 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "notes" ] ;
           fhir:CodeSystem.concept.property.valueString [ fhir:value "This message may be suppressed with the @suppressWarning tag" ]
         ], [
           fhir:index 5 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "spec-link" ] ;
           fhir:CodeSystem.concept.property.valueString [ fhir:value "03-developersguide.html#type-inference-of-conditional-expressions" ]
         ]
      ], [
         fhir:index 5 ;
         fhir:CodeSystem.concept.code [ fhir:value "100-00000" ] ;
         fhir:CodeSystem.concept.display [ fhir:value "Run-time" ] ;
         fhir:CodeSystem.concept.definition [ fhir:value "Runtime error" ] ;
         fhir:CodeSystem.concept.property [
           fhir:index 0 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "category" ] ;
           fhir:CodeSystem.concept.property.valueCode [ fhir:value "run-time" ]
         ], [
           fhir:index 1 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "severity" ] ;
           fhir:CodeSystem.concept.property.valueCode [ fhir:value "error" ]
         ], [
           fhir:index 2 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "source" ] ;
           fhir:CodeSystem.concept.property.valueCode [ fhir:value "content" ]
         ], [
           fhir:index 3 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "example" ] ;
           fhir:CodeSystem.concept.property.valueString [ fhir:value "Run-time error" ]
         ], [
           fhir:index 4 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "notes" ] ;
           fhir:CodeSystem.concept.property.valueString [ fhir:value "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." ]
         ], [
           fhir:index 5 ;
           fhir:CodeSystem.concept.property.code [ fhir:value "spec-link" ] ;
           fhir:CodeSystem.concept.property.valueString [ fhir:value "20-m-messages.html#messages" ]
         ]
      ] .

    # - ontology header ------------------------------------------------------------

    <http://hl7.org/fhir/CodeSystem/cql-message-codes.ttl> a owl:Ontology ;
      owl:imports fhir:fhir.ttl ;
      owl:versionIRI <http://build.fhir.org/CodeSystem/cql-message-codes.ttl> .