cql-language-capabilities
type: CodeSystem
node role: treeRoot
id:
  v: cql-language-capabilities
text:
  status:
    v: generated
  div: Generated Narrative: CodeSystem cql-language-capabilities Properties This code system defines the following properties for its concepts Name Code URI Type Description 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: Lvl Code Display Definition Version Value Value Meaning Reference 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 …
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-wg
  value: code
    v: cds
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
  value: code
    v: trial-use
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm
  value: integer
    v: 2
url:
  v: http://cql.hl7.org/CodeSystem/cql-language-capabilities
version:
  v: 2.0.0-ballot
name:
  v: CQLLanguageCapabilityCodes
title:
  v: CQL Language Capability Codes
status:
  v: active
experimental:
  v: false
date:
  v: 2025-10-24T16:45:25+00:00
publisher:
  v: Clinical Decision Support WG
contact:
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/dss/index.cfm
description:
  v: Codes for CQL language capabilities.
case sensitive:
  v: true
value set:
  v: http://cql.hl7.org/ValueSet/cql-language-capability
  link: http://cql.hl7.org/ValueSet/cql-language-capability
hierarchy meaning:
  v: is-a
content:
  v: complete
property:
  code:
    v: version
  uri:
    v: http://cql.hl7.org/CodeSystem/cql-capability-characteristic-codes#version
  description:
    v: The version in which the capability was introduced in the specification
  type:
    v: string
property:
  code:
    v: versionTo
  uri:
    v: http://cql.hl7.org/CodeSystem/cql-capability-characteristic-codes#versionTo
  description:
    v: The last version in which the capability was included in the specification
  type:
    v: string
property:
  code:
    v: value
  uri:
    v: http://cql.hl7.org/CodeSystem/cql-capability-characteristic-codes#value
  description:
    v: A qualifier value used to provide more detail about the capability
  type:
    v: string
property:
  code:
    v: valueMeaning
  uri:
    v: http://cql.hl7.org/CodeSystem/cql-capability-characteristic-codes#valueMeaning
  description:
    v: A description of the meaning of qualifier values for the capability
  type:
    v: string
property:
  code:
    v: reference
  uri:
    v: http://cql.hl7.org/CodeSystem/cql-capability-characteristic-codes#reference
  description:
    v: A reference to the specification documenting this capability
  type:
    v: string
concept:
  code:
    v: decimal-precision-and-scale
  display:
    v: Decimal precision and scale
  definition:
    v: How many total digits (precision) and how many digits to the right of the decimal point (scale) the implementation supports for Decimal values.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: value
    value: string
      v: 28,8
  property:
    code:
      v: valueMeaning
    value: string
      v: The supported precision and scale of decimal values
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#decimal
concept:
  code:
    v: datetime-precision-and-scale
  display:
    v: Datetime precision and scale
  definition:
    v: The finest granularity (precision) and smallest increment (scale) supported for date/time values.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#datetime
concept:
  code:
    v: ucum-unit-conversion-support
  display:
    v: UCUM unit conversion support
  definition:
    v: Whether and how the engine can automatically convert between units of measure using UCUM.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#convertquantity
concept:
  code:
    v: regex-dialect
  display:
    v: Regex dialect
  definition:
    v: Which flavor of regular expressions the implementation supports.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#matches
concept:
  code:
    v: supported-data-models
  display:
    v: Supported data models
  definition:
    v: Which external models the engine can evaluate against.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/05-languagesemantics.html#data-model
concept:
  code:
    v: expand-operator
  display:
    v: Expand operator

v: Expand on ValueSet/Interval.

code:
  v: version
value: string
  v: 1.3

code:
  v: reference
value: string
  v: https://cql.hl7.org/05-languagesemantics.html#collapse-and-expand-operators

code:
  v: fhirpath-support
display:
  v: FHIRPath Support
definition:
  v: Ability to evaluate/translate FHIRPath within CQL.
property:
  code:
    v: version
  value: string
    v: 1.3
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/16-i-fhirpathtranslation.html

code:
  v: precision-operators-for-decimal-and-date-time-types
display:
  v: Precision operators for Decimal and Date/Time types
definition:
  v: Operators that adjust/control precision.
property:
  code:
    v: version
  value: string
    v: 1.4
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#precision

code:
  v: model-defined-contexts
display:
  v: Model-defined contexts
definition:
  v: Contexts defined by the data model.
property:
  code:
    v: version
  value: string
    v: 1.4
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/05-languagesemantics.html#context-support

code:
  v: library-namespaces
display:
  v: Library namespaces
definition:
  v: Organize libraries into namespaces.
property:
  code:
    v: version
  value: string
    v: 1.4
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/07-physicalrepresentation.html#media-types-and-namespaces

code:
  v: related-context-retrieves
display:
  v: Related-context retrieves
definition:
  v: Context-relative retrieve operations.
property:
  code:
    v: version
  value: string
    v: 1.4
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/05-languagesemantics.html#retrieve-paths

code:
  v: unit-conversion-support
display:
  v: Unit conversion support
definition:
  v: Convert between compatible UCUM units.
property:
  code:
    v: version
  value: string
    v: 1.4
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/05-languagesemantics.html#conversions

code:
  v: modular-arithmetic-for-quantities
display:
  v: Modular arithmetic for quantities
definition:
  v: Modulo/remainder with Quantity.
property:
  code:
    v: version
  value: string
    v: 1.5
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/05-languagesemantics.html#quantity-arithmetic

code:
  v: expand-a-single-interval
display:
  v: Expand a single interval
definition:
  v: Expand applied to a single Interval.
property:
  code:
    v: version
  value: string
    v: 1.5
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#expand

code:
  v: aggregate-clause
display:
  v: Aggregate clause
definition:
  v: Query clause for aggregation.
property:
  code:
    v: version
  value: string
    v: 1.5
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/05-languagesemantics.html#aggregate-clause

code:
  v: include-retrieves
display:
  v: Include retrieves
definition:
  v: Retrieve that follows model references.
property:
  code:
    v: version
  value: string
    v: 1.5
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/05-languagesemantics.html#retrieve-paths

code:
  v: searchpath-retrieves
display:
  v: Searchpath retrieves
definition:
  v: Retrieve using a search path expression.
property:
  code:
    v: version
  value: string
    v: 1.5
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/05-languagesemantics.html#retrieve-paths

code:
  v: id-retrieves
display:
  v: Id retrieves
definition:
  v: Retrieve by unique identifier.
property:
  code:
    v: version
  value: string
    v: 1.5
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/05-languagesemantics.html#retrieve-paths

code:
  v: system-data-types
display:
  v: System Data Types
definition:
  v: Primitive, structured, and collection types defined by the System namespace.
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#types
concept:
  code:
    v: system.integer
  display:
    v: System.Integer
  definition:
    v: Whole numbers with no fractional component.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#integer
concept:
  code:
    v: system.long
  display:
    v: System.Long
  definition:
    v: 64-bit signed integers.
  property:
    code:
      v: version
    value: string
      v: 1.5
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#long
concept:
  code:
    v: system.decimal
  display:
    v: System.Decimal
  definition:
    v: Numbers with fractional precision and scale.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#decimal
concept:
  code:
    v: system.string
  display:
    v: System.String
  definition:
    v: Sequence of text characters.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#string
concept:
  code:
    v: system.boolean
  display:
    v: System.Boolean
  definition:
    v: Logical truth values.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#boolean
concept:
  code:
    v: system.date
  display:
    v: System.Date
  definition:
    v: Calendar date without time.
  property:
    code:
      v: version
    value: string
      v: 1.3
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#date
concept:
  code:
    v: system.time
  display:
    v: System.Time
  definition:
    v: Time of day without date.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#time
concept:
  code:
    v: system.datetime
  display:
    v: System.DateTime
  definition:
    v: Date and time point (optional offset).
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#datetime
concept:
  code:
    v: system.quantity
  display:
    v: System.Quantity
  definition:
    v: Numeric value with unit.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#quantity
concept:
  code:
    v: system.ratio
  display:
    v: System.Ratio
  definition:
    v: Fractional relationship between two Quantities.
  property:
    code:
      v: version
    value: string
      v: 1.3
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#ratio
concept:
  code:
    v: system.interval
  display:
    v: System.Interval
  definition:
    v: Range over an ordered type.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3
concept:
  code:
    v: system.list

v: System.List

v: Ordered collection of elements of a type.

code:
  v: version
value: string
  v: 1.0

code:
  v: reference
value: string
  v: https://cql.hl7.org/63-expressionlanguagesemantics.html#collection-types

code:
  v: system.tuple
display:
  v: System.Tuple
definition:
  v: Structured type with named elements.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/63-expressionlanguagesemantics.html#structured-types

code:
  v: system.choice
display:
  v: System.Choice
definition:
  v: Value of one among several types.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/63-expressionlanguagesemantics.html#choice-types

code:
  v: system.codesystem
display:
  v: System.CodeSystem
definition:
  v: Reference to an external code system.
property:
  code:
    v: version
  value: string
    v: 1.5
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#codesystem

code:
  v: system.valueset
display:
  v: System.ValueSet
definition:
  v: Reference to a set of codes.
property:
  code:
    v: version
  value: string
    v: 1.5
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#valueset

code:
  v: system.vocabulary
display:
  v: System.Vocabulary
definition:
  v: Base type for vocabulary-related types.
property:
  code:
    v: version
  value: string
    v: 1.5
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#vocabulary

code:
  v: logical-operators
display:
  v: Logical Operators
definition:
  v: and, or, not, implies under 3-valued logic.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#logical-operators
concept:
  code:
    v: logical-operators.and
  display:
    v: Logical Operator and
  definition:
    v: The and operator returns true if both its arguments are true. If either argument is false, the result is false. Otherwise, the result is null.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#and
concept:
  code:
    v: logical-operators.or
  display:
    v: Logical Operator or
  definition:
    v: The or operator returns true if either of its arguments are true. If both arguments are false, the result is false. Otherwise, the result is null.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#or
concept:
  code:
    v: logical-operators.not
  display:
    v: Logical Operator not
  definition:
    v: The not operator returns true if the argument is false and false if the argument is true. Otherwise, the result is null.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#not
concept:
  code:
    v: logical-operators.xor
  display:
    v: Logical Operator xor
  definition:
    v: The xor (exclusive or) operator returns true if one argument is true and the other is false. If both arguments are true or both arguments are false, the result is false. Otherwise, the result is null.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#xor
concept:
  code:
    v: logical-operators.implies
  display:
    v: Logical Operator implies
  definition:
    v: The implies operator returns the logical implication of its arguments. This means that if the left operand evaluates to true, this operator returns the boolean evaluation of the right operand. If the left operand evaluates to false, this operator returns true. Otherwise, this operator returns true if the right operand evaluates to true, and null otherwise
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#implies

code:
  v: type-operators
display:
  v: Type Operators
definition:
  v: Type inspection and conversion operators.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#type-operators
concept:
  code:
    v: type-operators.as
  display:
    v: Type Operator as
  definition:
    v: The as operator allows the result of an expression to be cast as a given target type. This allows expressions to be written that are statically typed against the expected run-time type of the argument.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#as
concept:
  code:
    v: type-operators.cast-as
  display:
    v: Type Operator as
  definition:
    v: (See the as operator in addition) The cast prefix indicates that if the argument is not of the specified type at run-time then an exception is thrown.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#as
concept:
  code:
    v: type-operators.is
  display:
    v: Type Operator is
  definition:
    v: The is operator allows the type of a result to be tested. If the run-time type of the argument is the same as or derived from the type being tested, the result of the operator is true; otherwise, the result is false.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#is
concept:
  code:
    v: type-operators.children
  display:
    v: Type Operator children
  definition:
    v: For structured types, the Children operator returns a list of all the values of the elements of the type. List-valued elements are expanded and added to the result individually, rather than as a single list.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#children
concept:
  code:
    v: type-operators.descendants
  display:
    v: Type Operator descendants
  definition:
    v: or structured types, the Descendants operator returns a list of all the values of the elements of the type, recursively. List-valued elements are expanded and added to the result individually, rather than as a single list.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#descendants
concept:
  code:
    v: type-operators.convert-quantity
  display:
    v: Type Operator convert-quantity
  definition:
    v: The convert operator converts a value to a specific type. The result of the operator is the value of the argument converted to the target type, if possible. If there is no valid conversion from the actual value to the target type, the result is null.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#convert
concept:
  code:
    v: type-operators.to-boolean
  display:
    v: Type Operator to-boolean
  definition:
    v: The ToBoolean operator converts the value of its argument to a Boolean value.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#toboolean
concept:
  code:
    v: type-operators.to-integer
  display:
    v: Type Operator to-integer
  definition:
    v: The ToInteger operator converts the value of its argument to an Integer value.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#tointeger
concept:
  code:
    v: type-operators.to-long
  display:
    v: Type Operator to-long
  definition:
    v: The ToLong operator converts the value of its argument to a Long value.
  property:
    code:
      v: version
    value: string
      v: 1.5
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#tolong
concept:
  code:
    v: type-operators.to-decimal
  display:
    v: Type Operator to-decimal
  definition:
    v: The ToDecimal operator converts the value of its argument to a Decimal value.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#todecimal
concept:
  code:
    v: type-operators.to-quantity
  display:
    v: Type Operator to-quantity
  definition:
    v: The ToQuantity operator converts the value of its argument to a Quantity value. The operation does not perform any unit conversion, that capability is supported by the ConvertQuantity operator.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#toquantity

code:
  v: type-operators.to-ratio
display:
  v: Type Operator to-ratio
definition:
  v: The ToRatio operator converts the value of its argument to a Ratio value.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#toratio

code:
  v: type-operators.to-date
display:
  v: Type Operator to-date
definition:
  v: The ToDate operator converts the value of its argument to a Date value.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#todate

code:
  v: type-operators.to-datetime
display:
  v: Type Operator to-datetime
definition:
  v: The ToDateTime operator converts the value of its argument to a DateTime value.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#todatetime

code:
  v: type-operators.to-time
display:
  v: Type Operator to-time
definition:
  v: The ToTime operator converts the value of its argument to a Time value. The operator expects the string to be formatted using ISO-8601 time representation.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#totime

code:
  v: type-operators.to-string
display:
  v: Type Operator to-string
definition:
  v: The ToString operator converts the value of its argument to a String value.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#tostring

code:
  v: type-operators.converts-to-boolean
display:
  v: Type Operator converts-to-boolean
definition:
  v: The ConvertsToBoolean operator returns true if its argument is or can be converted to a Boolean value.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#convertstoboolean

code:
  v: type-operators.converts-to-integer
display:
  v: Type Operator converts-to-integer
definition:
  v: The ConvertsToInteger operator returns true if its argument is or can be converted to an Integer value. See the ToInteger operator for a description of the supported conversions.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#convertstointeger

code:
  v: type-operators.converts-to-long
display:
  v: Type Operator converts-to-long
definition:
  v: The ConvertsToLong operator returns true if its argument is or can be converted to a Long value.
property:
  code:
    v: version
  value: string
    v: 1.5
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#convertstolong

code:
  v: type-operators.converts-to-decimal
display:
  v: Type Operator converts-to-decimal
definition:
  v: The ToDecimal operator returns true if its argument is or can be converted to a Decimal value.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#convertstodecimal

code:
  v: type-operators.converts-to-quantity
display:
  v: Type Operator converts-to-quantity
definition:
  v: The ConvertsToQuantity operator returns true if its argument is or can be converted to a Quantity value. See the ToQuantity operator for a description of the supported conversions.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#convertstoquantity

code:
  v: type-operators.converts-to-ratio
display:
  v: Type Operator converts-to-ration
definition:
  v: The ConvertsToRatio operator returns true if its argument is or can be converted to a Ratio value
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#convertstoratio

code:
  v: type-operators.converts-to-date
display:
  v: Type Operator converts-to-date
definition:
  v: The ConvertsToDate operator returns true if its argument is or can be converted to a Date value.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#convertstodate

code:
  v: type-operators.converts-to-datetime
display:
  v: Type Operator converts-to-datetime
definition:
  v: The ConvertsToDateTime operator returns true if its argument is or can be converted to a DateTime value.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#convertstodatetime

code:
  v: type-operators.converts-to-time
display:
  v: Type Operator converts-to-time
definition:
  v: The ConvertsToTime operator returns true if its argument is or can be converted to a Time value.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#convertstotime

code:
  v: type-operators.converts-to-string
display:
  v: Type Operator converts-to-string
definition:
  v: The ConvertsToString operator returns true if its argument is or can be converted to a String value.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#convertstostring

code:
  v: nullological-operators
display:
  v: Nullological Operators
definition:
  v: Operators dealing with null/missing information.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#nullological-operators
concept:
  code:
    v: nullological-operators.coalesce
  display:
    v: Nullological Operators coalesce
  definition:
    v: The Coalesce operator returns the first non-null result in a list of arguments. If all arguments evaluate to null, the result is null.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#coalesce
concept:
  code:
    v: nullological-operators.is-null
  display:
    v: Nullological Operators is-null
  definition:
    v: The is null operator determines whether or not its argument evaluates to null. If the argument evaluates to null, the result is true; otherwise, the result is false.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#isnull
concept:
  code:
    v: nullological-operators.is-true
  display:
    v: Nullological Operators coalesce
  definition:
    v: The is true operator determines whether or not its argument evaluates to true. If the argument evaluates to true, the result is true; otherwise, the result is false.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#istrue
concept:
  code:
    v: nullological-operators.is-false
  display:
    v: Nullological Operators is-false
  definition:
    v: The is false operator determines whether or not its argument evaluates to false. If the argument evaluates to false, the result is true; otherwise, the result is false.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#isfalse

code:
  v: comparison-operators
display:
  v: Comparison Operators
definition:
  v: Equal, not equal, <, <=, >, >=, in/not in, etc.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#comparison-operators
concept:
  code:
    v: comparison-operators.equal
  display:
    v: Comparison Operators equal
  definition:
    v: The equal (=) operator returns true if the arguments are equal; false if the arguments are known unequal, and null otherwise. Equality semantics are defined to be value-based.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#equal
concept:
  code:
    v: comparison-operators.equivalent
  display:
    v: Comparison Operators equivalent
  definition:
    v: The equivalent (~) operator returns true if the arguments are equivalent in value, or if they are both null; and false otherwise.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#equivalent
concept:
  code:
    v: comparison-operators.greater
  display:
    v: Comparison Operators greater
  definition:
    v: The greater (>) operator returns true if the first argument is greater than the second argument.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#greater
concept:
  code:
    v: comparison-operators.greater-or-equal
  display:
    v: Comparison Operators greater or equal
  definition:
    v: The greater or equal (>=) operator returns true if the first argument is greater than or equal to the second argument.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#greater-or-equal
concept:
  code:
    v: comparison-operators.less
  display:
    v: Comparison Operators less
  definition:
    v: The less (<) operator returns true if the first argument is less than the second argument.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#less
concept:
  code:
    v: comparison-operators.less-or-equal
  display:
    v: Comparison Operators less-or-equal
  definition:
    v: The less or equal (<=) operator returns true if the first argument is less than or equal to the second argument.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#less-or-equal
concept:
  code:
    v: comparison-operators.not-equal
  display:
    v: Comparison Operators not-equal
  definition:
    v: The not equal (!=) operator returns true if its arguments are not the same value.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#not-equal
concept:
  code:
    v: comparison-operators.not-equivalent
  display:
    v: Comparison Operators not-equivalent
  definition:
    v: The not equivalent (!~) operator returns true if its arguments are not equivalent.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#not-equivalent
concept:
  code:
    v: comparison-operators.between
  display:
    v: Comparison Operators between
  definition:
    v: The between operator determines whether the first argument is within a given range, inclusive. If the first argument is greater than or equal to the low argument, and less than or equal to the high argument, the result is true, otherwise, the result is false.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#between

code:
  v: arithmetic-operators
display:
  v: Arithmetic Operators
definition:
  v: Add, subtract, multiply, divide, mod, round, etc.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#arithmetic-operators
concept:
  code:
    v: arithmetic-operators.abs
  display:
    v: Arithmetic Operators abs
  definition:
    v: The Abs operator returns the absolute value of its argument.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#abs
concept:
  code:
    v: arithmetic-operators.add
  display:
    v: Arithmetic Operators add
  definition:
    v: The add (+) operator performs numeric addition of its arguments.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#add
concept:
  code:
    v: arithmetic-operators.ceiling
  display:
    v: Arithmetic Operators ceiling
  definition:
    v: The Ceiling operator returns the first integer greater than or equal to the argument.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#ceiling
concept:
  code:
    v: arithmetic-operators.divide
  display:
    v: Arithmetic Operators divide
  definition:
    v: The divide (/) operator performs numeric division of its arguments. Note that this operator is Decimal division; for Integer division, use the truncated divide (div) operator.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#string-operators
concept:
  code:
    v: arithmetic-operators.floor
  display:
    v: Arithmetic Operators floor
  definition:
    v: The Floor operator returns the first integer less than or equal to the argument.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#floor
concept:
  code:
    v: arithmetic-operators.exp
  display:
    v: Arithmetic Operators exp
  definition:
    v: The Exp operator raises e to the power of its argument.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#exp
concept:
  code:
    v: arithmetic-operators.highboundary
  display:
    v: Arithmetic Operators highboundary
  definition:
    v: The HighBoundary function returns the greatest possible value of the input to the specified precision.
  property:
    code:
      v: version
    value: string
      v: 1.5
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#highboundary
concept:
  code:
    v: arithmetic-operators.log
  display:
    v: Arithmetic Operators log
  definition:
    v: The Log operator computes the logarithm of its first argument, using the second argument as the base.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#log
concept:
  code:
    v: arithmetic-operators.lowboundary
  display:
    v: Arithmetic Operators lowboundary
  definition:
    v: The LowBoundary function returns the least possible value of the input to the specified precision.
  property:
    code:
      v: version
    value: string
      v: 1.5
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#lowboundary
concept:
  code:
    v: arithmetic-operators.ln
  display:
    v: Arithmetic Operators ln
  definition:
    v: The Ln operator computes the natural logarithm of its argument.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#ln
concept:
  code:
    v: arithmetic-operators.maximum
  display:
    v: Arithmetic Operators maximum
  definition:
    v: The maximum operator returns the maximum representable value for the given type, defined for the Integer, Long, Decimal, Quantity, Date, DateTime, and Time types.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#maximum

code:
  v: arithmetic-operators.minimum
display:
  v: Arithmetic Operators minimum
definition:
  v: The minimum operator returns the minimum representable value for the given type, defined for the Integer, Long, Decimal, Quantity, Date, DateTime, and Time types.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#minimum

code:
  v: arithmetic-operators.mod
display:
  v: Arithmetic Operators mod
definition:
  v: The mod operator computes the remainder of the division of its arguments.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#mod

code:
  v: arithmetic-operators.multiply
display:
  v: Arithmetic Operators multiply
definition:
  v: The multiply (*) operator performs numeric multiplication of its arguments.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#multiply

code:
  v: arithmetic-operators.negate
display:
  v: Arithmetic Operators negate
definition:
  v: The negate (-) operator returns the negative of its argument.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#negate

code:
  v: arithmetic-operators.precision
display:
  v: Arithmetic Operators precision
definition:
  v: The Precision function returns the number of digits of precision in the input value.
property:
  code:
    v: version
  value: string
    v: 1.5
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#precision

code:
  v: arithmetic-operators.predecessor
display:
  v: Arithmetic Operators predecessor
definition:
  v: The predecessor operator returns the predecessor of the argument. For example, the predecessor of 2 is 1. If the argument is already the minimum value for the type, a null is returned.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#predecessor

code:
  v: arithmetic-operators.power
display:
  v: Arithmetic Operators power
definition:
  v: The power (^) operator raises the first argument to the power given by the second argument.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#power

code:
  v: arithmetic-operators.round
display:
  v: Arithmetic Operators round
definition:
  v: The Round operator returns the nearest whole number to its argument. The semantics of round are defined as a traditional round (i.e. to the nearest whole number), meaning that a decimal value greater than or equal to 0.5 and less than 1.0 will round to 1, and a decimal value less than or equal to -0.5 and greater than -1.0 will round to -1.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#round

code:
  v: arithmetic-operators.subtract
display:
  v: Arithmetic Operators subtract
definition:
  v: The subtract (-) operator performs numeric subtraction of its arguments.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#subtract

code:
  v: arithmetic-operators.successor
display:
  v: Arithmetic Operators successor
definition:
  v: The successor operator returns the successor of the argument. For example, the successor of 1 is 2. If the argument is already the maximum value for the type, a null is returned.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#successor

code:
  v: arithmetic-operators.truncate
display:
  v: Arithmetic Operators truncate
definition:
  v: The Truncate operator returns the integer component of its argument.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#truncate

code:
  v: arithmetic-operators.div
display:
  v: Arithmetic Operators div
definition:
  v: The div operator performs truncated division of its arguments.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#div

code:
  v: string-operators
display:
  v: String Operators
definition:
  v: Length, substring, startsWith, endsWith, matches, replaceMatches, etc.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#string-operators
concept:
  code:
    v: string-operators.combine
  display:
    v: String Operators combine
  definition:
    v: The Combine operator combines a list of strings, optionally separating each string with the given separator.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#combine
concept:
  code:
    v: string-operators.concatenate
  display:
    v: String Operators concatenate
  definition:
    v: The concatenate (+ or &) operator performs string concatenation of its arguments.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#concatenate
concept:
  code:
    v: string-operators.endwith
  display:
    v: String Operators endwith
  definition:
    v: The EndsWith operator returns true if the given string ends with the given suffix.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#endwith
concept:
  code:
    v: string-operators.indexer
  display:
    v: String Operators indexer
  definition:
    v: The indexer ([]) operator returns the character at the indexth position in a string.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#indexer
concept:
  code:
    v: string-operators.lastpositionof
  display:
    v: String Operators lastpositionof
  definition:
    v: The LastPositionOf operator returns the 0-based index of the last appearance of the given pattern in the given string.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#lastpositionof
concept:
  code:
    v: string-operators.length
  display:
    v: String Operators length
  definition:
    v: The Length operator returns the number of characters in a string.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#length
concept:
  code:
    v: string-operators.lower
  display:
    v: String Operators lower
  definition:
    v: The Lower operator returns the given string with all characters converted to their lower case equivalents.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#lower
concept:
  code:
    v: string-operators.matches
  display:
    v: String Operators matches
  definition:
    v: The Matches operator returns true if the given string matches the given regular expression pattern. Regular expressions should function consistently, regardless of any culture- and locale-specific settings in the environment, should be case-sensitive, use partial matching, use single line mode, and allow Unicode characters. The start/end of line markers ^ and $ can be used to match the entire string.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#matches
concept:
  code:
    v: string-operators.positionof
  display:
    v: String Operators positionof
  definition:
    v: The PositionOf operator returns the 0-based index of the given pattern in the given string.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#positionof
concept:
  code:
    v: string-operators.replacematches
  display:
    v: String Operators replacematches
  definition:
    v: The ReplaceMatches operator matches the given string using the given regular expression pattern, replacing each match with the given substitution. The substitution string may refer to identified match groups in the regular expression. Regular expressions should function consistently, regardless of any culture- and locale-specific settings in the environment, should be case-sensitive, use partial matching, use single line mode, and allow Unicode characters. The start and end of line markers ^, $ can be used to match the entire string.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#replacematches
concept:
  code:
    v: string-operators.split
  display:
    v: String Operators split
  definition:
    v: The Split operator splits a string into a list of strings using a separator.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#split

code:
  v: string-operators.splitonmatches
display:
  v: String Operators splitonmatches
definition:
  v: The SplitOnMatches operator splits a string into a list of strings using a separator that is defined by a regular expression pattern.
property:
  code:
    v: version
  value: string
    v: 1.3
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#splitonmatches

code:
  v: string-operators.startswith
display:
  v: String Operators startswith
definition:
  v: The StartsWith operator returns true if the given string starts with the given prefix.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#startswith

code:
  v: string-operators.substring
display:
  v: String Operators substring
definition:
  v: The Substring operator returns the string within stringToSub, starting at the 0-based index startIndex, and consisting of length characters.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#substring

code:
  v: string-operators.upper
display:
  v: String Operators upper
definition:
  v: The Upper operator returns the given string with all characters converted to their upper case equivalents.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#upper

code:
  v: date-and-time-operators
display:
  v: Date and Time Operators
definition:
  v: Date/time arithmetic, components, now/today, comparisons, etc.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#date-and-time-operators
concept:
  code:
    v: date-and-time-operators.add
  display:
    v: Date and Time Operators add
  definition:
    v: The add (+) operator returns the value of the first argument, incremented by the time-valued quantity, respecting variable length periods for calendar years and months.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#add
concept:
  code:
    v: date-and-time-operators.after
  display:
    v: Date and Time Operators after
  definition:
    v: The after-precision-of operator compares two Date, DateTime, or Time values to the specified precision to determine whether the first argument is the after the second argument. The comparison is performed by considering each precision in order, beginning with years (or hours for time values). If the values are the same, comparison proceeds to the next precision; if the first value is greater than the second, the result is true; if the first value is less than the second, the result is false; if either input has no value for the precision, the comparison stops and the result is null; if the specified precision has been reached, the comparison stops and the result is false.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#after
concept:
  code:
    v: date-and-time-operators.before
  display:
    v: Date and Time Operators before
  definition:
    v: The before-precision-of operator compares two Date, DateTime, or Time values to the specified precision to determine whether the first argument is the before the second argument. The comparison is performed by considering each precision in order, beginning with years (or hours for time values). If the values are the same, comparison proceeds to the next precision; if the first value is less than the second, the result is true; if the first value is greater than the second, the result is false; if either input has no value for the precision, the comparison stops and the result is null; if the specified precision has been reached, the comparison stops and the result is false.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#before
concept:
  code:
    v: date-and-time-operators.date
  display:
    v: Date and Time Operators date
  definition:
    v: The Date operator constructs a date value from the given components.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#date
concept:
  code:
    v: date-and-time-operators.datetime
  display:
    v: Date and Time Operators datetime
  definition:
    v: The DateTime operator constructs a DateTime value from the given components.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#datetime
concept:
  code:
    v: date-and-time-operators.from
  display:
    v: Date and Time Operators from
  definition:
    v: The component-from operator returns the specified component of the argument.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#from
concept:
  code:
    v: date-and-time-operators.difference
  display:
    v: Date and Time Operators difference
  definition:
    v: The difference-between operator returns the number of boundaries crossed for the specified precision between the first and second arguments. If the first argument is after the second argument, the result is negative. The result of this operation is always an integer; any fractional boundaries are dropped.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#difference
concept:
  code:
    v: date-and-time-operators.duration
  display:
    v: Date and Time Operators duration
  definition:
    v: The duration-between operator returns the number of whole calendar periods for the specified precision between the first and second arguments. If the first argument is after the second argument, the result is negative. The result of this operation is always an integer; any fractional periods are dropped.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#duration
concept:
  code:
    v: date-and-time-operators.now
  display:
    v: Date and Time Operators now
  definition:
    v: The Now operator returns the date and time of the start timestamp associated with the evaluation request.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#now
concept:
  code:
    v: date-and-time-operators.on-or-after
  display:
    v: Date and Time Operators on or after
  definition:
    v: The on or after operator for Date, DateTime, and Time values is a synonym for the same or after operator and is supported to enable natural phrasing. See the description of the Same Or After (Date, DateTime, or Time) operator.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#on-or-after
concept:
  code:
    v: date-and-time-operators.on-or-before
  display:
    v: Date and Time Operators on or before
  definition:
    v: The on or before operator for Date, DateTime, and Time values is a synonym for the same or before operator and is supported to enable natural phrasing. See the description of the Same Or Before (Date, DateTime, or Time) operator.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#on-or-before

code:
  v: date-and-time-operators.same-as
display:
  v: Date and Time Operators same as
definition:
  v: The same-precision-as operator compares two Date, DateTime, or Time values to the specified precision for equality. The comparison is performed by considering each precision in order, beginning with years (or hours for time values). If the values are the same, comparison proceeds to the next precision; if the values are different, the comparison stops and the result is false; if either input has no value for the precision, the comparison stops and the result is null; if the specified precision has been reached, the comparison stops and the result is true.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#same-as

code:
  v: date-and-time-operators.same-or-after
display:
  v: Date and Time Operators same or after
definition:
  v: The same-precision-or after operator compares two Date, DateTime, or Time values to the specified precision to determine whether the first argument is the same or after the second argument. The comparison is performed by considering each precision in order, beginning with years (or hours for time values). If the values are the same, comparison proceeds to the next precision; if the first value is greater than the second, the result is true; if the first value is less than the second, the result is false; if either input has no value for the precision, the comparison stops and the result is null; if the specified precision has been reached, the comparison stops and the result is true.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#same-or-after

code:
  v: date-and-time-operators.same-or-before
display:
  v: Date and Time Operators same or before
definition:
  v: The same-precision-or before operator compares two Date, DateTime, or Time values to the specified precision to determine whether the first argument is the same or before the second argument. The comparison is performed by considering each precision in order, beginning with years (or hours for time values). If the values are the same, comparison proceeds to the next precision; if the first value is less than the second, the result is true; if the first value is greater than the second, the result is false; if either input has no value for the precision, the comparison stops and the result is null; if the specified precision has been reached, the comparison stops and the result is true.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#same-or-before

code:
  v: date-and-time-operators.subtract
display:
  v: Date and Time Operators subtract
definition:
  v: The subtract (-) operator returns the value of the given Date, DateTime, or Time, decremented by the time-valued quantity, respecting variable length periods for calendar years and months.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#subtract

code:
  v: date-and-time-operators.time
display:
  v: Date and Time Operators time
definition:
  v: The Time operator constructs a time value from the given components.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#time

code:
  v: date-and-time-operators.timeofday
display:
  v: Date and Time Operators timeofday
definition:
  v: The TimeOfDay operator returns the time of day of the start timestamp associated with the evaluation request. See the Now operator for more information on the rationale for defining the TimeOfDay operator in this way.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#timeofday

code:
  v: date-and-time-operators.today
display:
  v: Date and Time Operators today
definition:
  v: The Today operator returns the date of the start timestamp associated with the evaluation request. See the Now operator for more information on the rationale for defining the Today operator in this way.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#today

code:
  v: interval-operators
display:
  v: Interval Operators
definition:
  v: contains, in, union, intersect, width, expand, etc.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3
concept:
  code:
    v: interval-operators.after
  display:
    v: Interval Operators after
  definition:
    v: The after operator for intervals returns true if the first interval starts after the second one ends. In other words, if the starting point of the first interval is greater than the ending point of the second interval.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#after
concept:
  code:
    v: interval-operators.before
  display:
    v: Interval Operators before
  definition:
    v: The before operator for intervals returns true if the first interval ends before the second one starts. In other words, if the ending point of the first interval is less than the starting point of the second interval.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#before
concept:
  code:
    v: interval-operators.collapse
  display:
    v: Interval Operators collapse
  definition:
    v: The collapse operator returns the unique set of intervals that completely covers the ranges present in the given list of intervals. In other words, adjacent intervals within a sorted list are merged if they either overlap or meet.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#collapse
concept:
  code:
    v: interval-operators.contains
  display:
    v: Interval Operators contains
  definition:
    v: The contains operator for intervals returns true if the given point is equal to the starting or ending point of the interval, or greater than the starting point and less than the ending point. For open interval boundaries, exclusive comparison operators are used. For closed interval boundaries, if the interval boundary is null, the result of the boundary comparison is considered true.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#contains
concept:
  code:
    v: interval-operators.end
  display:
    v: Interval Operators end
  definition:
    v: The End operator returns the ending point of an interval.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#end
concept:
  code:
    v: interval-operators.ends
  display:
    v: Interval Operators ends
  definition:
    v: The ends operator returns true if the first interval ends the second. More precisely, if the starting point of the first interval is greater than or equal to the starting point of the second, and the ending point of the first interval is equal to the ending point of the second.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#ends
concept:
  code:
    v: interval-operators.equal
  display:
    v: Interval Operators equal
  definition:
    v: The equal (=) operator for intervals returns true if and only if the intervals are over the same point type, and they have the same value for the starting and ending points of the intervals as determined by the Start and End operators
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#
concept:
  code:
    v: interval-operators.equivalent
  display:
    v: Interval Operators equivalent
  definition:
    v: The equivalent (~) operator for intervals returns true if and only if the intervals are over the same point type, and the starting and ending points of the intervals as determined by the Start and End operators are equivalent.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#equivalent
concept:
  code:
    v: interval-operators.except
  display:
    v: Interval Operators except
  definition:
    v: The except operator for intervals returns the set difference of two intervals. More precisely, this operator returns the portion of the first interval that does not overlap with the second. Note that to avoid returning an improper interval, if the second argument is properly contained within the first and does not start or end it, this operator returns null.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#except
concept:
  code:
    v: interval-operators.expand
  display:
    v: Interval Operators expand
  definition:
    v: The expand operator returns the set of intervals of size per for all the intervals in the input, or the list of points covering the range of the given interval, if invoked on a single interval.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#expand
concept:
  code:
    v: interval-operators.in
  display:
    v: Interval Operators in
  definition:
    v: The in operator (can also be invoked using during) for intervals returns true if the given point is equal to the starting or ending point of the interval, or greater than the starting point and less than the ending point. For open interval boundaries, exclusive comparison operators are used. For closed interval boundaries, if the interval boundary is null, the result of the boundary comparison is considered true.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#in

code:
  v: interval-operators.includes
display:
  v: Interval Operators includes
definition:
  v: The includes operator for intervals returns true if the first interval completely includes the second. More precisely, if the starting point of the first interval is less than or equal to the starting point of the second interval, and the ending point of the first interval is greater than or equal to the ending point of the second interval.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#includes

code:
  v: interval-operators.included-in
display:
  v: Interval Operators included in
definition:
  v: The included in (or during) operator for intervals returns true if the first interval is completely included in the second. More precisely, if the starting point of the first interval is greater than or equal to the starting point of the second interval, and the ending point of the first interval is less than or equal to the ending point of the second interval.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#included-in

code:
  v: interval-operators.intersect
display:
  v: Interval Operators intersect
definition:
  v: The intersect operator for intervals returns the intersection of two intervals. More precisely, the operator returns the interval that defines the overlapping portion of both arguments. If the arguments do not overlap, this operator returns null.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#intersect

code:
  v: interval-operators.meets
display:
  v: Interval Operators meets
definition:
  v: The meets operator returns true if the first interval ends immediately before the second interval starts, or if the first interval starts immediately after the second interval ends. In other words, if the ending point of the first interval is equal to the predecessor of the starting point of the second, or if the starting point of the first interval is equal to the successor of the ending point of the second.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#meets

code:
  v: interval-operators.not-equal
display:
  v: Interval Operators not equal
definition:
  v: The not equal (!=) operator for intervals returns true if its arguments are not the same value.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#not-equal

code:
  v: interval-operators.not-equivalent
display:
  v: Interval Operators not equivalent
definition:
  v: The not equivalent (!~) operator for intervals returns true if its arguments are not equivalent.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#not-equivalent

code:
  v: interval-operators.on-or-after
display:
  v: Interval Operators on or after
definition:
  v: The on or after operator for intervals is a synonym for the same or after operator and is supported to enable natural phrasing. See the description of the Same Or After (Intervals) operator.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#on-or-after

code:
  v: interval-operators.on-or-before
display:
  v: Interval Operators on or before
definition:
  v: The on or before operator for Date-, DateTime-, or Time-based intervals is a synonym for the same or before operator and is supported to enable natural phrasing. See the description of the Same Or Before (Intervals) operator.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#on-or-before

code:
  v: interval-operators.overlaps
display:
  v: Interval Operators overlaps
definition:
  v: The overlaps operator returns true if the first interval overlaps the second. More precisely, if the starting or ending point of either interval is in the other, or if the ending point of the first interval is greater than or equal to the starting point of the second interval, and the starting point of the first interval is less than or equal to the ending point of the second interval.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#overlaps

code:
  v: interval-operators.point-from
display:
  v: Interval Operators point from
definition:
  v: The point from operator extracts the single point from a unit interval. If the argument is not a unit interval, a run-time error is thrown.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#point-from

code:
  v: interval-operators.properly-includes
display:
  v: Interval Operators properly includes
definition:
  v: The properly includes operator for intervals returns true if the first interval completely includes the second and the first interval is strictly larger than the second. More precisely, if the starting point of the first interval is less than or equal to the starting point of the second interval, and the ending point of the first interval is greater than or equal to the ending point of the second interval, and they are not the same interval.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#properly-includes

code:
  v: interval-operators.properly-included-in
display:
  v: Interval Operators properly included in
definition:
  v: The properly included in (or properly during) operator for intervals returns true if the first interval is completely included in the second and the first interval is strictly smaller than the second. More precisely, if the starting point of the first interval is greater than or equal to the starting point of the second interval, and the ending point of the first interval is less than or equal to the ending point of the second interval, and they are not the same interval.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#included-in

code:
  v: interval-operators.same-as
display:
  v: Interval Operators same as
definition:
  v: The same-precision-as operator for intervals returns true if the two intervals start and end at the same value, using the semantics described in the Start and End operators to determine interval boundaries, and for Date, DateTime, or Time value, performing the comparisons at the specified precision, as described in the Same As operator for Date, DateTime, or Time values.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#same-as

code:
  v: interval-operators.same-or-after
display:
  v: Interval Operators same or after
definition:
  v: The same-precision-or after operator for intervals returns true if the first interval starts on or after the second one ends, using the semantics described in the Start and End operators to determine interval boundaries, and for Date, DateTime, or Time values, performing the comparisons at the specified precision, as described in the Same or After (Date, DateTime, or Time) operator for Date, DateTime, or Time values.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#same-or-after

code:
  v: interval-operators.same-or-before
display:
  v: Interval Operators same or before
definition:
  v: The same-precision-or before operator returns true if the first interval ends on or before the second one starts, using the semantics described in the Start and End operators to determine interval boundaries, and for Date, DateTime, or Time values, performing the comparisons at the specified precision, as described in the Same or Before (Date, DateTime, or Time) operator for Date, DateTime, or Time values.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#same-or-before

code:
  v: interval-operators.size
display:
  v: Interval Operators size
definition:
  v: The Size operator returns the size of an interval. The result of this operator is equivalent to invoking: (end of argument – start of argument) + point-size, where point-size is determined by successor of minimum T - minimum T.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#size

code:
  v: interval-operators.start
display:
  v: Interval Operators start
definition:
  v: The Start operator returns the starting point of an interval.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#start

code:
  v: interval-operators.starts
display:
  v: Interval Operators starts
definition:
  v: The starts operator returns true if the first interval starts the second. More precisely, if the starting point of the first is equal to the starting point of the second interval and the ending point of the first interval is less than or equal to the ending point of the second interval.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#starts

code:
  v: interval-operators.union
display:
  v: Interval Operators union
definition:
  v: The union operator for intervals returns the union of the intervals. More precisely, the operator returns the interval that starts at the earliest starting point in either argument, and ends at the latest starting point in either argument. If the arguments do not overlap or meet, this operator returns null.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#union

code:
  v: interval-operators.width
display:
  v: Interval Operators width
definition:
  v: The width operator returns the width of an interval. The result of this operator is equivalent to invoking: (end of argument – start of argument).
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#width

code:
  v: list-operators
display:
  v: List Operators
definition:
  v: size, first/last, contains, union/intersect/except, map/filter/distinct, sort/reverse/zip, etc.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#list-operators
concept:
  code:
    v: list-operators.contains
  display:
    v: List Operators contains
  definition:
    v: The contains operator for lists returns true if the given element is in the list using equality semantics, with the exception that null elements are considered equal.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#contains
concept:
  code:
    v: list-operators.distinct
  display:
    v: List Operators distinct
  definition:
    v: The distinct operator returns the given list with duplicates eliminated using equality semantics.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#distinct
concept:
  code:
    v: list-operators.equal
  display:
    v: List Operators equal
  definition:
    v: The equal (=) operator for lists returns true if and only if the lists have the same element type, and have the same elements by value, in the same order.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#equal
concept:
  code:
    v: list-operators.equivalent
  display:
    v: List Operators equivalent
  definition:
    v: The equivalent (~) operator for lists returns true if and only if the lists contain elements of the same type, have the same number of elements, and for each element in the lists, in order, the elements are equivalent.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#equivalent
concept:
  code:
    v: list-operators.except
  display:
    v: List Operators except
  definition:
    v: The except operator returns the set difference of two lists. More precisely, the operator returns a list with the elements that appear in the first operand that do not appear in the second operand.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#except
concept:
  code:
    v: list-operators.exists
  display:
    v: List Operators exists
  definition:
    v: The exists operator returns true if the list contains any non-null elements.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#exists
concept:
  code:
    v: list-operators.flatten
  display:
    v: List Operators flatten
  definition:
    v: The flatten operator flattens a list of lists into a single list.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#flatten
concept:
  code:
    v: list-operators.first
  display:
    v: List Operators first
  definition:
    v: The First operator returns the first element in a list. The operator is equivalent to invoking the indexer with an index of 0.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#first
concept:
  code:
    v: list-operators.in
  display:
    v: List Operators in
  definition:
    v: The in operator for lists returns true if the given element is in the given list using equality semantics, with the exception that null elements are considered equal.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#in
concept:
  code:
    v: list-operators.includes
  display:
    v: List Operators includes
  definition:
    v: The includes operator for lists returns true if the first list contains every element of the second list using equality semantics, with the exception that null elements are considered equal.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#includes
concept:
  code:
    v: list-operators.included_in
  display:
    v: List Operators included in
  definition:
    v: The included in operator for lists returns true if every element of the first list is in the second list using equality semantics.
  property:
    code:
      v: version
    value: string
      v: 1.0
  property:
    code:
      v: reference
    value: string
      v: https://cql.hl7.org/09-b-cqlreference.html#included-in

code:
  v: list-operators.indexer
display:
  v: List Operators indexer
definition:
  v: The indexer ([]) operator returns the element at the indexth position in a list.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#indexer

code:
  v: list-operators.indexof
display:
  v: List Operators IndexOf
definition:
  v: The IndexOf operator returns the 0-based index of the given element in the given source list using equality semantics, with the exception that nulls are considered equal.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#indexof

code:
  v: list-operators.intersect
display:
  v: List Operators intersect
definition:
  v: The intersect operator for lists returns the intersection of two lists. More precisely, the operator returns a list containing only the elements that appear in both lists.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#intersect

code:
  v: list-operators.last
display:
  v: List Operators last
definition:
  v: The Last operator returns the last element in a list. In a list of length N, the operator is equivalent to invoking the indexer with an index of N - 1
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#last

code:
  v: list-operators.length
display:
  v: List Operators length
definition:
  v: The Length operator returns the number of elements in a list.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#length

code:
  v: list-operators.not_equal
display:
  v: List Operators not equal
definition:
  v: The not equal (!=) operator for lists returns true if its arguments are not the same value.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#not_equal

code:
  v: list-operators.not_equivalent
display:
  v: List Operators not equivalent
definition:
  v: The not equivalent (!~) operator for lists returns true if its arguments are not equivalent.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#not_equivalent

code:
  v: list-operators.properly_includes
display:
  v: List Operators properly includes
definition:
  v: The properly includes operator for lists returns true if the first list contains every element of the second list, and the first list is strictly larger than the second list.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#properly_includes

code:
  v: list-operators.properly_included_in
display:
  v: List Operators properly included in
definition:
  v: The properly included in operator for lists returns true if every element of the first list is in the second list and the first list is strictly smaller than the second list.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#properly_included_in

code:
  v: list-operators.singleton_from
display:
  v: List Operators singleton from
definition:
  v: The singleton from operator extracts a single element from the source list. If the source list is empty, the result is null. If the source list contains one element, that element is returned. If the list contains more than one element, a run-time error is thrown.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#singleton_from

code:
  v: list-operators.skip
display:
  v: List Operators skip
definition:
  v: The Skip operator returns the elements in the list, skipping the first number elements. If the list has less number elements, the result is empty.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#skip

code:
  v: list-operators.tail
display:
  v: List Operators tail
definition:
  v: The Tail operator returns all but the first element from the given list. If the list is empty, the result is empty.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#tail

code:
  v: list-operators.take
display:
  v: List Operators take
definition:
  v: The Take operator returns the first number elements from the given list. If the list has less than number elements, the result only contains the elements in the list.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#take

code:
  v: list-operators.union
display:
  v: List Operators union
definition:
  v: The union operator for lists returns a list with all unique elements from both arguments.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#union

code:
  v: aggregate-functions
display:
  v: Aggregate Functions
definition:
  v: count, sum, min, max, average, median, mode, etc.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#aggregate-functions

code:
  v: clinical-operators
display:
  v: Clinical Operators
definition:
  v: Retrieve/terminology functions; temporal/duration in clinical context.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#clinical-operators

code:
  v: diagnostic-operators
display:
  v: Diagnostic Operators
definition:
  v: Errors and messaging functions.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#errors-and-messaging

code:
  v: single-source-query
display:
  v: Single source query
definition:
  v: Query over one source.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/74-queryevaluation.html#evaluate-sources

code:
  v: relationships-query
display:
  v: Relationships query
definition:
  v: Query involving two or more sources.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/74-queryevaluation.html#evaluate-sources

code:
  v: let-clause-query
display:
  v: Let clause query
definition:
  v: Introduce local bindings.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/74-queryevaluation.html#let-clause

code:
  v: where-clause-query
display:
  v: Where clause query
definition:
  v: Filter using Boolean conditions.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/74-queryevaluation.html#where-clause

code:
  v: return-clause-query
display:
  v: Return clause query
definition:
  v: Specify the shape/content of returned rows.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/74-queryevaluation.html#return-clause

code:
  v: aggregate-clause-query
display:
  v: Aggregate clause query
definition:
  v: Reduce rows to a summary value.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/74-queryevaluation.html#aggregate-clause

code:
  v: multi-source-query
display:
  v: Multi source query
definition:
  v: Query using two or more sources.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/74-queryevaluation.html#evaluate-sources

code:
  v: unfiltered-context-retrieve
display:
  v: Unfiltered context retrieve
definition:
  v: All data of a type in the current context.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/05-languagesemantics.html#language-capabilities

code:
  v: terminology-based-retrieve
display:
  v: Terminology-based retrieve
definition:
  v: Retrieve filtered by ValueSet/CodeSystem/Code.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/05-languagesemantics.html#retrieve-paths

code:
  v: valueset-terminology-target-retrieve
display:
  v: Valueset terminology target retrieve
definition:
  v: Retrieve filtered by a ValueSet reference.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/05-languagesemantics.html#retrieve-paths

code:
  v: codesystem-terminology-target-retrieve
display:
  v: CodeSystem terminology target retrieve
definition:
  v: Retrieve filtered by a CodeSystem.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/05-languagesemantics.html#retrieve-paths

code:
  v: code-terminology-target-retrieve
display:
  v: Code terminology target retrieve
definition:
  v: Retrieve filtered by a single Code.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/05-languagesemantics.html#retrieve-paths

code:
  v: searchpath-retrieve
display:
  v: Searchpath retrieve
definition:
  v: Retrieve using a search path expression.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/05-languagesemantics.html#retrieve-paths

code:
  v: include-retrieve
display:
  v: Include retrieve
definition:
  v: Retrieve that includes related records via references.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/05-languagesemantics.html#retrieve-paths

code:
  v: related-context-retrieve
display:
  v: Related-context retrieve
definition:
  v: Retrieve scoped to a related context entity.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/05-languagesemantics.html#retrieve-paths

code:
  v: profile-based-retrieve
display:
  v: Profile-based retrieve
definition:
  v: Retrieve constrained to a profile.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/42-conformancelevels.html#strict-conformance

code:
  v: tuple
display:
  v: Tuple
definition:
  v: Structured type with named elements.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/63-expressionlanguagesemantics.html#structured-types

code:
  v: choice
display:
  v: Choice
definition:
  v: Value that may be one of several specified types.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/63-expressionlanguagesemantics.html#choice-types

code:
  v: list<T>
display:
  v: List<T>
definition:
  v: Ordered collection of elements of type T.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/63-expressionlanguagesemantics.html#collection-types

code:
  v: interval<T>
display:
  v: Interval<T>
definition:
  v: Range of values of type T.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3

code:
  v: interval<integer>
display:
  v: Interval<Integer>
definition:
  v: Range of integers.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3

code:
  v: interval<decimal>
display:
  v: Interval<Decimal>
definition:
  v: Range of decimal numbers.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3

code:
  v: interval<date>
display:
  v: Interval<Date>
definition:
  v: Range of dates (no time).
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3

code:
  v: interval
display:
  v: Interval<Time>
definition:
  v: Range of times of day (no date).
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3

code:
  v: interval<datetime>
display:
  v: Interval<DateTime>
definition:
  v: Range of full date/times.
property:
  code:
    v: version
  value: string
    v: 1.0
property:
  code:
    v: reference
  value: string
    v: https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3