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 Language Capability Codes

Official URL: http://cql.hl7.org/CodeSystem/cql-language-capabilities Version: 2.0.0-ballot
Standards status: Trial-use Maturity Level: 2 Computable Name: CQLLanguageCapabilityCodes

Codes for CQL language capabilities.

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

Properties

This code system defines the following properties for its concepts

NameCodeURITypeDescription
Version version http://cql.hl7.org/CodeSystem/cql-capability-characteristic-codes#version string The version in which the capability was introduced in the specification
VersionTo versionTo http://cql.hl7.org/CodeSystem/cql-capability-characteristic-codes#versionTo string The last version in which the capability was included in the specification
Value value http://cql.hl7.org/CodeSystem/cql-capability-characteristic-codes#value string A qualifier value used to provide more detail about the capability
Value Meaning valueMeaning http://cql.hl7.org/CodeSystem/cql-capability-characteristic-codes#valueMeaning string A description of the meaning of qualifier values for the capability
Reference reference http://cql.hl7.org/CodeSystem/cql-capability-characteristic-codes#reference string A reference to the specification documenting this capability

Concepts

This case-sensitive code system http://cql.hl7.org/CodeSystem/cql-language-capabilities defines the following codes in a Is-A hierarchy:

LvlCodeDisplayDefinitionVersionValueValue MeaningReference
1 decimal-precision-and-scale Decimal precision and scale How many total digits (precision) and how many digits to the right of the decimal point (scale) the implementation supports for Decimal values. 1.0 28,8 The supported precision and scale of decimal values https://cql.hl7.org/09-b-cqlreference.html#decimal
1 datetime-precision-and-scale Datetime precision and scale The finest granularity (precision) and smallest increment (scale) supported for date/time values. 1.0 https://cql.hl7.org/09-b-cqlreference.html#datetime
1 ucum-unit-conversion-support UCUM unit conversion support Whether and how the engine can automatically convert between units of measure using UCUM. 1.0 https://cql.hl7.org/09-b-cqlreference.html#convertquantity
1 regex-dialect Regex dialect Which flavor of regular expressions the implementation supports. 1.0 https://cql.hl7.org/09-b-cqlreference.html#matches
1 supported-data-models Supported data models Which external models the engine can evaluate against. 1.0 https://cql.hl7.org/05-languagesemantics.html#data-model
1 expand-operator Expand operator Expand on ValueSet/Interval. 1.3 https://cql.hl7.org/05-languagesemantics.html#collapse-and-expand-operators
1 fhirpath-support FHIRPath Support Ability to evaluate/translate FHIRPath within CQL. 1.3 https://cql.hl7.org/16-i-fhirpathtranslation.html
1 precision-operators-for-decimal-and-date-time-types Precision operators for Decimal and Date/Time types Operators that adjust/control precision. 1.4 https://cql.hl7.org/09-b-cqlreference.html#precision
1 model-defined-contexts Model-defined contexts Contexts defined by the data model. 1.4 https://cql.hl7.org/05-languagesemantics.html#context-support
1 library-namespaces Library namespaces Organize libraries into namespaces. 1.4 https://cql.hl7.org/07-physicalrepresentation.html#media-types-and-namespaces
1 related-context-retrieves Related-context retrieves Context-relative retrieve operations. 1.4 https://cql.hl7.org/05-languagesemantics.html#retrieve-paths
1 unit-conversion-support Unit conversion support Convert between compatible UCUM units. 1.4 https://cql.hl7.org/05-languagesemantics.html#conversions
1 modular-arithmetic-for-quantities Modular arithmetic for quantities Modulo/remainder with Quantity. 1.5 https://cql.hl7.org/05-languagesemantics.html#quantity-arithmetic
1 expand-a-single-interval Expand a single interval Expand applied to a single Interval. 1.5 https://cql.hl7.org/09-b-cqlreference.html#expand
1 aggregate-clause Aggregate clause Query clause for aggregation. 1.5 https://cql.hl7.org/05-languagesemantics.html#aggregate-clause
1 include-retrieves Include retrieves Retrieve that follows model references. 1.5 https://cql.hl7.org/05-languagesemantics.html#retrieve-paths
1 searchpath-retrieves Searchpath retrieves Retrieve using a search path expression. 1.5 https://cql.hl7.org/05-languagesemantics.html#retrieve-paths
1 id-retrieves Id retrieves Retrieve by unique identifier. 1.5 https://cql.hl7.org/05-languagesemantics.html#retrieve-paths
1 system-data-types System Data Types Primitive, structured, and collection types defined by the System namespace. https://cql.hl7.org/09-b-cqlreference.html#types
2   system.integer System.Integer Whole numbers with no fractional component. 1.0 https://cql.hl7.org/09-b-cqlreference.html#integer
2   system.long System.Long 64-bit signed integers. 1.5 https://cql.hl7.org/09-b-cqlreference.html#long
2   system.decimal System.Decimal Numbers with fractional precision and scale. 1.0 https://cql.hl7.org/09-b-cqlreference.html#decimal
2   system.string System.String Sequence of text characters. 1.0 https://cql.hl7.org/09-b-cqlreference.html#string
2   system.boolean System.Boolean Logical truth values. 1.0 https://cql.hl7.org/09-b-cqlreference.html#boolean
2   system.date System.Date Calendar date without time. 1.3 https://cql.hl7.org/09-b-cqlreference.html#date
2   system.time System.Time Time of day without date. 1.0 https://cql.hl7.org/09-b-cqlreference.html#time
2   system.datetime System.DateTime Date and time point (optional offset). 1.0 https://cql.hl7.org/09-b-cqlreference.html#datetime
2   system.quantity System.Quantity Numeric value with unit. 1.0 https://cql.hl7.org/09-b-cqlreference.html#quantity
2   system.ratio System.Ratio Fractional relationship between two Quantities. 1.3 https://cql.hl7.org/09-b-cqlreference.html#ratio
2   system.interval System.Interval Range over an ordered type. 1.0 https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3
2   system.list System.List Ordered collection of elements of a type. 1.0 https://cql.hl7.org/63-expressionlanguagesemantics.html#collection-types
2   system.tuple System.Tuple Structured type with named elements. 1.0 https://cql.hl7.org/63-expressionlanguagesemantics.html#structured-types
2   system.choice System.Choice Value of one among several types. 1.0 https://cql.hl7.org/63-expressionlanguagesemantics.html#choice-types
2   system.codesystem System.CodeSystem Reference to an external code system. 1.5 https://cql.hl7.org/09-b-cqlreference.html#codesystem
2   system.valueset System.ValueSet Reference to a set of codes. 1.5 https://cql.hl7.org/09-b-cqlreference.html#valueset
2   system.vocabulary System.Vocabulary Base type for vocabulary-related types. 1.5 https://cql.hl7.org/09-b-cqlreference.html#vocabulary
1 logical-operators Logical Operators and, or, not, implies under 3-valued logic. 1.0 https://cql.hl7.org/09-b-cqlreference.html#logical-operators
1 type-operators Type Operators Type inspection and conversion operators. 1.0 https://cql.hl7.org/09-b-cqlreference.html#type-operators
1 nullological-operators Nullological Operators Operators dealing with null/missing information. 1.0 https://cql.hl7.org/09-b-cqlreference.html#nullological-operators
1 comparison-operators Comparison Operators Equal, not equal, <, <=, >, >=, in/not in, etc. 1.0 https://cql.hl7.org/09-b-cqlreference.html#comparison-operators
1 arithmetic-operators Arithmetic Operators Add, subtract, multiply, divide, mod, round, etc. 1.0 https://cql.hl7.org/09-b-cqlreference.html#arithmetic-operators
1 string-operators String Operators Length, substring, startsWith, endsWith, matches, replaceMatches, etc. 1.0 https://cql.hl7.org/09-b-cqlreference.html#string-operators
1 date-and-time-operators Date and Time Operators Date/time arithmetic, components, now/today, comparisons, etc. 1.0 https://cql.hl7.org/09-b-cqlreference.html#date-and-time-operators
1 interval-operators Interval Operators contains, in, union, intersect, width, expand, etc. 1.0 https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3
1 list-operators List Operators size, first/last, contains, union/intersect/except, map/filter/distinct, sort/reverse/zip, etc. 1.0 https://cql.hl7.org/09-b-cqlreference.html#list-operators
1 aggregate-functions Aggregate Functions count, sum, min, max, average, median, mode, etc. 1.0 https://cql.hl7.org/09-b-cqlreference.html#aggregate-functions
1 clinical-operators Clinical Operators Retrieve/terminology functions; temporal/duration in clinical context. 1.0 https://cql.hl7.org/09-b-cqlreference.html#clinical-operators
1 diagnostic-operators Diagnostic Operators Errors and messaging functions. 1.0 https://cql.hl7.org/09-b-cqlreference.html#errors-and-messaging
1 single-source-query Single source query Query over one source. 1.0 https://cql.hl7.org/74-queryevaluation.html#evaluate-sources
1 relationships-query Relationships query Query involving two or more sources. 1.0 https://cql.hl7.org/74-queryevaluation.html#evaluate-sources
1 let-clause-query Let clause query Introduce local bindings. 1.0 https://cql.hl7.org/74-queryevaluation.html#let-clause
1 where-clause-query Where clause query Filter using Boolean conditions. 1.0 https://cql.hl7.org/74-queryevaluation.html#where-clause
1 return-clause-query Return clause query Specify the shape/content of returned rows. 1.0 https://cql.hl7.org/74-queryevaluation.html#return-clause
1 aggregate-clause-query Aggregate clause query Reduce rows to a summary value. 1.0 https://cql.hl7.org/74-queryevaluation.html#aggregate-clause
1 multi-source-query Multi source query Query using two or more sources. 1.0 https://cql.hl7.org/74-queryevaluation.html#evaluate-sources
1 unfiltered-context-retrieve Unfiltered context retrieve All data of a type in the current context. 1.0 https://cql.hl7.org/05-languagesemantics.html#language-capabilities
1 terminology-based-retrieve Terminology-based retrieve Retrieve filtered by ValueSet/CodeSystem/Code. 1.0 https://cql.hl7.org/05-languagesemantics.html#retrieve-paths
1 valueset-terminology-target-retrieve Valueset terminology target retrieve Retrieve filtered by a ValueSet reference. 1.0 https://cql.hl7.org/05-languagesemantics.html#retrieve-paths
1 codesystem-terminology-target-retrieve CodeSystem terminology target retrieve Retrieve filtered by a CodeSystem. 1.0 https://cql.hl7.org/05-languagesemantics.html#retrieve-paths
1 code-terminology-target-retrieve Code terminology target retrieve Retrieve filtered by a single Code. 1.0 https://cql.hl7.org/05-languagesemantics.html#retrieve-paths
1 searchpath-retrieve Searchpath retrieve Retrieve using a search path expression. 1.0 https://cql.hl7.org/05-languagesemantics.html#retrieve-paths
1 include-retrieve Include retrieve Retrieve that includes related records via references. 1.0 https://cql.hl7.org/05-languagesemantics.html#retrieve-paths
1 related-context-retrieve Related-context retrieve Retrieve scoped to a related context entity. 1.0 https://cql.hl7.org/05-languagesemantics.html#retrieve-paths
1 profile-based-retrieve Profile-based retrieve Retrieve constrained to a profile. 1.0 https://cql.hl7.org/42-conformancelevels.html#strict-conformance
1 tuple Tuple Structured type with named elements. 1.0 https://cql.hl7.org/63-expressionlanguagesemantics.html#structured-types
1 choice Choice Value that may be one of several specified types. 1.0 https://cql.hl7.org/63-expressionlanguagesemantics.html#choice-types
1 list<T> List<T> Ordered collection of elements of type T. 1.0 https://cql.hl7.org/63-expressionlanguagesemantics.html#collection-types
1 interval<T> Interval<T> Range of values of type T. 1.0 https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3
1 interval<integer> Interval<Integer> Range of integers. 1.0 https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3
1 interval<decimal> Interval<Decimal> Range of decimal numbers. 1.0 https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3
1 interval<date> Interval<Date> Range of dates (no time). 1.0 https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3
1 interval<time> Interval<Time> Range of times of day (no date). 1.0 https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3
1 interval<datetime> Interval<DateTime> Range of full date/times. 1.0 https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3