Clinical Quality Language Specification, published by Clinical Decision Support WG. This guide is not an authorized publication; it is the continuous build for version 2.0.0-ballot built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/cql/ and changes regularly. See the Directory of published versions
| Page standards status: Trial-use | Maturity Level: 2 |
@prefix fhir: <http://hl7.org/fhir/> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . # - resource ------------------------------------------------------------------- a fhir:CodeSystem ; fhir:nodeRole fhir:treeRoot ; fhir:id [ fhir:v "cql-language-capabilities"] ; # fhir:text [ fhir:status [ fhir:v "generated" ] ; fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: CodeSystem cql-language-capabilities</b></p><a name=\"cql-language-capabilities\"> </a><a name=\"hccql-language-capabilities\"> </a><p><b>Properties</b></p><p><b>This code system defines the following properties for its concepts</b></p><table class=\"grid\"><tr><td><b>Name</b></td><td><b>Code</b></td><td><b>URI</b></td><td><b>Type</b></td><td><b>Description</b></td></tr><tr><td>Version</td><td>version</td><td>http://cql.hl7.org/CodeSystem/cql-capability-characteristic-codes#version</td><td>string</td><td>The version in which the capability was introduced in the specification</td></tr><tr><td>VersionTo</td><td>versionTo</td><td>http://cql.hl7.org/CodeSystem/cql-capability-characteristic-codes#versionTo</td><td>string</td><td>The last version in which the capability was included in the specification</td></tr><tr><td>Value</td><td>value</td><td>http://cql.hl7.org/CodeSystem/cql-capability-characteristic-codes#value</td><td>string</td><td>A qualifier value used to provide more detail about the capability</td></tr><tr><td>Value Meaning</td><td>valueMeaning</td><td>http://cql.hl7.org/CodeSystem/cql-capability-characteristic-codes#valueMeaning</td><td>string</td><td>A description of the meaning of qualifier values for the capability</td></tr><tr><td>Reference</td><td>reference</td><td>http://cql.hl7.org/CodeSystem/cql-capability-characteristic-codes#reference</td><td>string</td><td>A reference to the specification documenting this capability</td></tr></table><p><b>Concepts</b></p><p>This case-sensitive code system <code>http://cql.hl7.org/CodeSystem/cql-language-capabilities</code> defines the following codes in a Is-A hierarchy:</p><table class=\"codes\"><tr><td><b>Lvl</b></td><td style=\"white-space:nowrap\"><b>Code</b></td><td><b>Display</b></td><td><b>Definition</b></td><td><b>Version</b></td><td><b>Value</b></td><td><b>Value Meaning</b></td><td><b>Reference</b></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">decimal-precision-and-scale<a name=\"cql-language-capabilities-decimal-precision-and-scale\"> </a></td><td>Decimal precision and scale</td><td>How many total digits (precision) and how many digits to the right of the decimal point (scale) the implementation supports for Decimal values.</td><td>1.0</td><td>28,8</td><td>The supported precision and scale of decimal values</td><td><code>https://cql.hl7.org/09-b-cqlreference.html#decimal</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">datetime-precision-and-scale<a name=\"cql-language-capabilities-datetime-precision-and-scale\"> </a></td><td>Datetime precision and scale</td><td>The finest granularity (precision) and smallest increment (scale) supported for date/time values.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#datetime</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">ucum-unit-conversion-support<a name=\"cql-language-capabilities-ucum-unit-conversion-support\"> </a></td><td>UCUM unit conversion support</td><td>Whether and how the engine can automatically convert between units of measure using UCUM.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#convertquantity</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">regex-dialect<a name=\"cql-language-capabilities-regex-dialect\"> </a></td><td>Regex dialect</td><td>Which flavor of regular expressions the implementation supports.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#matches</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">supported-data-models<a name=\"cql-language-capabilities-supported-data-models\"> </a></td><td>Supported data models</td><td>Which external models the engine can evaluate against.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/05-languagesemantics.html#data-model</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">expand-operator<a name=\"cql-language-capabilities-expand-operator\"> </a></td><td>Expand operator</td><td>Expand on ValueSet/Interval.</td><td>1.3</td><td/><td/><td><code>https://cql.hl7.org/05-languagesemantics.html#collapse-and-expand-operators</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">fhirpath-support<a name=\"cql-language-capabilities-fhirpath-support\"> </a></td><td>FHIRPath Support</td><td>Ability to evaluate/translate FHIRPath within CQL.</td><td>1.3</td><td/><td/><td><code>https://cql.hl7.org/16-i-fhirpathtranslation.html</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">precision-operators-for-decimal-and-date-time-types<a name=\"cql-language-capabilities-precision-operators-for-decimal-and-date-time-types\"> </a></td><td>Precision operators for Decimal and Date/Time types</td><td>Operators that adjust/control precision.</td><td>1.4</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#precision</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">model-defined-contexts<a name=\"cql-language-capabilities-model-defined-contexts\"> </a></td><td>Model-defined contexts</td><td>Contexts defined by the data model.</td><td>1.4</td><td/><td/><td><code>https://cql.hl7.org/05-languagesemantics.html#context-support</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">library-namespaces<a name=\"cql-language-capabilities-library-namespaces\"> </a></td><td>Library namespaces</td><td>Organize libraries into namespaces.</td><td>1.4</td><td/><td/><td><code>https://cql.hl7.org/07-physicalrepresentation.html#media-types-and-namespaces</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">related-context-retrieves<a name=\"cql-language-capabilities-related-context-retrieves\"> </a></td><td>Related-context retrieves</td><td>Context-relative retrieve operations.</td><td>1.4</td><td/><td/><td><code>https://cql.hl7.org/05-languagesemantics.html#retrieve-paths</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">unit-conversion-support<a name=\"cql-language-capabilities-unit-conversion-support\"> </a></td><td>Unit conversion support</td><td>Convert between compatible UCUM units.</td><td>1.4</td><td/><td/><td><code>https://cql.hl7.org/05-languagesemantics.html#conversions</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">modular-arithmetic-for-quantities<a name=\"cql-language-capabilities-modular-arithmetic-for-quantities\"> </a></td><td>Modular arithmetic for quantities</td><td>Modulo/remainder with Quantity.</td><td>1.5</td><td/><td/><td><code>https://cql.hl7.org/05-languagesemantics.html#quantity-arithmetic</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">expand-a-single-interval<a name=\"cql-language-capabilities-expand-a-single-interval\"> </a></td><td>Expand a single interval</td><td>Expand applied to a single Interval.</td><td>1.5</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#expand</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">aggregate-clause<a name=\"cql-language-capabilities-aggregate-clause\"> </a></td><td>Aggregate clause</td><td>Query clause for aggregation.</td><td>1.5</td><td/><td/><td><code>https://cql.hl7.org/05-languagesemantics.html#aggregate-clause</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">include-retrieves<a name=\"cql-language-capabilities-include-retrieves\"> </a></td><td>Include retrieves</td><td>Retrieve that follows model references.</td><td>1.5</td><td/><td/><td><code>https://cql.hl7.org/05-languagesemantics.html#retrieve-paths</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">searchpath-retrieves<a name=\"cql-language-capabilities-searchpath-retrieves\"> </a></td><td>Searchpath retrieves</td><td>Retrieve using a search path expression.</td><td>1.5</td><td/><td/><td><code>https://cql.hl7.org/05-languagesemantics.html#retrieve-paths</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">id-retrieves<a name=\"cql-language-capabilities-id-retrieves\"> </a></td><td>Id retrieves</td><td>Retrieve by unique identifier.</td><td>1.5</td><td/><td/><td><code>https://cql.hl7.org/05-languagesemantics.html#retrieve-paths</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">system-data-types<a name=\"cql-language-capabilities-system-data-types\"> </a></td><td>System Data Types</td><td>Primitive, structured, and collection types defined by the System namespace.</td><td/><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#types</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> system.integer<a name=\"cql-language-capabilities-system.46integer\"> </a></td><td>System.Integer</td><td>Whole numbers with no fractional component.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#integer</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> system.long<a name=\"cql-language-capabilities-system.46long\"> </a></td><td>System.Long</td><td>64-bit signed integers.</td><td>1.5</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#long</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> system.decimal<a name=\"cql-language-capabilities-system.46decimal\"> </a></td><td>System.Decimal</td><td>Numbers with fractional precision and scale.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#decimal</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> system.string<a name=\"cql-language-capabilities-system.46string\"> </a></td><td>System.String</td><td>Sequence of text characters.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#string</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> system.boolean<a name=\"cql-language-capabilities-system.46boolean\"> </a></td><td>System.Boolean</td><td>Logical truth values.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#boolean</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> system.date<a name=\"cql-language-capabilities-system.46date\"> </a></td><td>System.Date</td><td>Calendar date without time.</td><td>1.3</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#date</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> system.time<a name=\"cql-language-capabilities-system.46time\"> </a></td><td>System.Time</td><td>Time of day without date.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#time</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> system.datetime<a name=\"cql-language-capabilities-system.46datetime\"> </a></td><td>System.DateTime</td><td>Date and time point (optional offset).</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#datetime</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> system.quantity<a name=\"cql-language-capabilities-system.46quantity\"> </a></td><td>System.Quantity</td><td>Numeric value with unit.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#quantity</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> system.ratio<a name=\"cql-language-capabilities-system.46ratio\"> </a></td><td>System.Ratio</td><td>Fractional relationship between two Quantities.</td><td>1.3</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#ratio</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> system.interval<a name=\"cql-language-capabilities-system.46interval\"> </a></td><td>System.Interval</td><td>Range over an ordered type.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> system.list<a name=\"cql-language-capabilities-system.46list\"> </a></td><td>System.List</td><td>Ordered collection of elements of a type.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/63-expressionlanguagesemantics.html#collection-types</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> system.tuple<a name=\"cql-language-capabilities-system.46tuple\"> </a></td><td>System.Tuple</td><td>Structured type with named elements.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/63-expressionlanguagesemantics.html#structured-types</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> system.choice<a name=\"cql-language-capabilities-system.46choice\"> </a></td><td>System.Choice</td><td>Value of one among several types.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/63-expressionlanguagesemantics.html#choice-types</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> system.codesystem<a name=\"cql-language-capabilities-system.46codesystem\"> </a></td><td>System.CodeSystem</td><td>Reference to an external code system.</td><td>1.5</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#codesystem</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> system.valueset<a name=\"cql-language-capabilities-system.46valueset\"> </a></td><td>System.ValueSet</td><td>Reference to a set of codes.</td><td>1.5</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#valueset</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> system.vocabulary<a name=\"cql-language-capabilities-system.46vocabulary\"> </a></td><td>System.Vocabulary</td><td>Base type for vocabulary-related types.</td><td>1.5</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#vocabulary</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">logical-operators<a name=\"cql-language-capabilities-logical-operators\"> </a></td><td>Logical Operators</td><td>and, or, not, implies under 3-valued logic.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#logical-operators</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> logical-operators.and<a name=\"cql-language-capabilities-logical-operators.46and\"> </a></td><td>Logical Operator and</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#and</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> logical-operators.or<a name=\"cql-language-capabilities-logical-operators.46or\"> </a></td><td>Logical Operator or</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#or</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> logical-operators.not<a name=\"cql-language-capabilities-logical-operators.46not\"> </a></td><td>Logical Operator not</td><td>The not operator returns true if the argument is false and false if the argument is true. Otherwise, the result is null.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#not</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> logical-operators.xor<a name=\"cql-language-capabilities-logical-operators.46xor\"> </a></td><td>Logical Operator xor</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#xor</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> logical-operators.implies<a name=\"cql-language-capabilities-logical-operators.46implies\"> </a></td><td>Logical Operator implies</td><td>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</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#implies</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">type-operators<a name=\"cql-language-capabilities-type-operators\"> </a></td><td>Type Operators</td><td>Type inspection and conversion operators.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#type-operators</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> type-operators.as<a name=\"cql-language-capabilities-type-operators.46as\"> </a></td><td>Type Operator as</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#as</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> type-operators.cast-as<a name=\"cql-language-capabilities-type-operators.46cast-as\"> </a></td><td>Type Operator as</td><td>(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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#as</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> type-operators.is<a name=\"cql-language-capabilities-type-operators.46is\"> </a></td><td>Type Operator is</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#is</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> type-operators.children<a name=\"cql-language-capabilities-type-operators.46children\"> </a></td><td>Type Operator children</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#children</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> type-operators.descendants<a name=\"cql-language-capabilities-type-operators.46descendants\"> </a></td><td>Type Operator descendants</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#descendants</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> type-operators.convert-quantity<a name=\"cql-language-capabilities-type-operators.46convert-quantity\"> </a></td><td>Type Operator convert-quantity</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#convert</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> type-operators.to-boolean<a name=\"cql-language-capabilities-type-operators.46to-boolean\"> </a></td><td>Type Operator to-boolean</td><td>The ToBoolean operator converts the value of its argument to a Boolean value.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#toboolean</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> type-operators.to-integer<a name=\"cql-language-capabilities-type-operators.46to-integer\"> </a></td><td>Type Operator to-integer</td><td>The ToInteger operator converts the value of its argument to an Integer value.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#tointeger</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> type-operators.to-long<a name=\"cql-language-capabilities-type-operators.46to-long\"> </a></td><td>Type Operator to-long</td><td>The ToLong operator converts the value of its argument to a Long value.</td><td>1.5</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#tolong</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> type-operators.to-decimal<a name=\"cql-language-capabilities-type-operators.46to-decimal\"> </a></td><td>Type Operator to-decimal</td><td>The ToDecimal operator converts the value of its argument to a Decimal value.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#todecimal</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> type-operators.to-quantity<a name=\"cql-language-capabilities-type-operators.46to-quantity\"> </a></td><td>Type Operator to-quantity</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#toquantity</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> type-operators.to-ratio<a name=\"cql-language-capabilities-type-operators.46to-ratio\"> </a></td><td>Type Operator to-ratio</td><td>The ToRatio operator converts the value of its argument to a Ratio value.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#toratio</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> type-operators.to-date<a name=\"cql-language-capabilities-type-operators.46to-date\"> </a></td><td>Type Operator to-date</td><td>The ToDate operator converts the value of its argument to a Date value.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#todate</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> type-operators.to-datetime<a name=\"cql-language-capabilities-type-operators.46to-datetime\"> </a></td><td>Type Operator to-datetime</td><td>The ToDateTime operator converts the value of its argument to a DateTime value.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#todatetime</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> type-operators.to-time<a name=\"cql-language-capabilities-type-operators.46to-time\"> </a></td><td>Type Operator to-time</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#totime</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> type-operators.to-string<a name=\"cql-language-capabilities-type-operators.46to-string\"> </a></td><td>Type Operator to-string</td><td>The ToString operator converts the value of its argument to a String value.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#tostring</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> type-operators.converts-to-boolean<a name=\"cql-language-capabilities-type-operators.46converts-to-boolean\"> </a></td><td>Type Operator converts-to-boolean</td><td>The ConvertsToBoolean operator returns true if its argument is or can be converted to a Boolean value.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#convertstoboolean</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> type-operators.converts-to-integer<a name=\"cql-language-capabilities-type-operators.46converts-to-integer\"> </a></td><td>Type Operator converts-to-integer</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#convertstointeger</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> type-operators.converts-to-long<a name=\"cql-language-capabilities-type-operators.46converts-to-long\"> </a></td><td>Type Operator converts-to-long</td><td>The ConvertsToLong operator returns true if its argument is or can be converted to a Long value.</td><td>1.5</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#convertstolong</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> type-operators.converts-to-decimal<a name=\"cql-language-capabilities-type-operators.46converts-to-decimal\"> </a></td><td>Type Operator converts-to-decimal</td><td>The ToDecimal operator returns true if its argument is or can be converted to a Decimal value.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#convertstodecimal</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> type-operators.converts-to-quantity<a name=\"cql-language-capabilities-type-operators.46converts-to-quantity\"> </a></td><td>Type Operator converts-to-quantity</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#convertstoquantity</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> type-operators.converts-to-ratio<a name=\"cql-language-capabilities-type-operators.46converts-to-ratio\"> </a></td><td>Type Operator converts-to-ration</td><td>The ConvertsToRatio operator returns true if its argument is or can be converted to a Ratio value</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#convertstoratio</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> type-operators.converts-to-date<a name=\"cql-language-capabilities-type-operators.46converts-to-date\"> </a></td><td>Type Operator converts-to-date</td><td>The ConvertsToDate operator returns true if its argument is or can be converted to a Date value.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#convertstodate</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> type-operators.converts-to-datetime<a name=\"cql-language-capabilities-type-operators.46converts-to-datetime\"> </a></td><td>Type Operator converts-to-datetime</td><td>The ConvertsToDateTime operator returns true if its argument is or can be converted to a DateTime value.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#convertstodatetime</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> type-operators.converts-to-time<a name=\"cql-language-capabilities-type-operators.46converts-to-time\"> </a></td><td>Type Operator converts-to-time</td><td>The ConvertsToTime operator returns true if its argument is or can be converted to a Time value.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#convertstotime</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> type-operators.converts-to-string<a name=\"cql-language-capabilities-type-operators.46converts-to-string\"> </a></td><td>Type Operator converts-to-string</td><td>The ConvertsToString operator returns true if its argument is or can be converted to a String value.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#convertstostring</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">nullological-operators<a name=\"cql-language-capabilities-nullological-operators\"> </a></td><td>Nullological Operators</td><td>Operators dealing with null/missing information.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#nullological-operators</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> nullological-operators.coalesce<a name=\"cql-language-capabilities-nullological-operators.46coalesce\"> </a></td><td>Nullological Operators coalesce</td><td>The Coalesce operator returns the first non-null result in a list of arguments. If all arguments evaluate to null, the result is null.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#coalesce</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> nullological-operators.is-null<a name=\"cql-language-capabilities-nullological-operators.46is-null\"> </a></td><td>Nullological Operators is-null</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#isnull</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> nullological-operators.is-true<a name=\"cql-language-capabilities-nullological-operators.46is-true\"> </a></td><td>Nullological Operators coalesce</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#istrue</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> nullological-operators.is-false<a name=\"cql-language-capabilities-nullological-operators.46is-false\"> </a></td><td>Nullological Operators is-false</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#isfalse</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">comparison-operators<a name=\"cql-language-capabilities-comparison-operators\"> </a></td><td>Comparison Operators</td><td>Equal, not equal, <, <=, >, >=, in/not in, etc.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#comparison-operators</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> comparison-operators.equal<a name=\"cql-language-capabilities-comparison-operators.46equal\"> </a></td><td>Comparison Operators equal</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#equal</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> comparison-operators.equivalent<a name=\"cql-language-capabilities-comparison-operators.46equivalent\"> </a></td><td>Comparison Operators equivalent</td><td>The equivalent (~) operator returns true if the arguments are equivalent in value, or if they are both null; and false otherwise.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#equivalent</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> comparison-operators.greater<a name=\"cql-language-capabilities-comparison-operators.46greater\"> </a></td><td>Comparison Operators greater</td><td>The greater (>) operator returns true if the first argument is greater than the second argument.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#greater</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> comparison-operators.greater-or-equal<a name=\"cql-language-capabilities-comparison-operators.46greater-or-equal\"> </a></td><td>Comparison Operators greater or equal</td><td>The greater or equal (>=) operator returns true if the first argument is greater than or equal to the second argument.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#greater-or-equal</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> comparison-operators.less<a name=\"cql-language-capabilities-comparison-operators.46less\"> </a></td><td>Comparison Operators less</td><td>The less (<) operator returns true if the first argument is less than the second argument.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#less</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> comparison-operators.less-or-equal<a name=\"cql-language-capabilities-comparison-operators.46less-or-equal\"> </a></td><td>Comparison Operators less-or-equal</td><td>The less or equal (<=) operator returns true if the first argument is less than or equal to the second argument.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#less-or-equal</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> comparison-operators.not-equal<a name=\"cql-language-capabilities-comparison-operators.46not-equal\"> </a></td><td>Comparison Operators not-equal</td><td>The not equal (!=) operator returns true if its arguments are not the same value.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#not-equal</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> comparison-operators.not-equivalent<a name=\"cql-language-capabilities-comparison-operators.46not-equivalent\"> </a></td><td>Comparison Operators not-equivalent</td><td>The not equivalent (!~) operator returns true if its arguments are not equivalent.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#not-equivalent</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> comparison-operators.between<a name=\"cql-language-capabilities-comparison-operators.46between\"> </a></td><td>Comparison Operators between</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#between</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">arithmetic-operators<a name=\"cql-language-capabilities-arithmetic-operators\"> </a></td><td>Arithmetic Operators</td><td>Add, subtract, multiply, divide, mod, round, etc.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#arithmetic-operators</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> arithmetic-operators.abs<a name=\"cql-language-capabilities-arithmetic-operators.46abs\"> </a></td><td>Arithmetic Operators abs</td><td>The Abs operator returns the absolute value of its argument.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#abs</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> arithmetic-operators.add<a name=\"cql-language-capabilities-arithmetic-operators.46add\"> </a></td><td>Arithmetic Operators add</td><td>The add (+) operator performs numeric addition of its arguments.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#add</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> arithmetic-operators.ceiling<a name=\"cql-language-capabilities-arithmetic-operators.46ceiling\"> </a></td><td>Arithmetic Operators ceiling</td><td>The Ceiling operator returns the first integer greater than or equal to the argument.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#ceiling</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> arithmetic-operators.divide<a name=\"cql-language-capabilities-arithmetic-operators.46divide\"> </a></td><td>Arithmetic Operators divide</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#string-operators</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> arithmetic-operators.floor<a name=\"cql-language-capabilities-arithmetic-operators.46floor\"> </a></td><td>Arithmetic Operators floor</td><td>The Floor operator returns the first integer less than or equal to the argument.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#floor</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> arithmetic-operators.exp<a name=\"cql-language-capabilities-arithmetic-operators.46exp\"> </a></td><td>Arithmetic Operators exp</td><td>The Exp operator raises e to the power of its argument.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#exp</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> arithmetic-operators.highboundary<a name=\"cql-language-capabilities-arithmetic-operators.46highboundary\"> </a></td><td>Arithmetic Operators highboundary</td><td>The HighBoundary function returns the greatest possible value of the input to the specified precision.</td><td>1.5</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#highboundary</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> arithmetic-operators.log<a name=\"cql-language-capabilities-arithmetic-operators.46log\"> </a></td><td>Arithmetic Operators log</td><td>The Log operator computes the logarithm of its first argument, using the second argument as the base.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#log</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> arithmetic-operators.lowboundary<a name=\"cql-language-capabilities-arithmetic-operators.46lowboundary\"> </a></td><td>Arithmetic Operators lowboundary</td><td>The LowBoundary function returns the least possible value of the input to the specified precision.</td><td>1.5</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#lowboundary</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> arithmetic-operators.ln<a name=\"cql-language-capabilities-arithmetic-operators.46ln\"> </a></td><td>Arithmetic Operators ln</td><td>The Ln operator computes the natural logarithm of its argument.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#ln</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> arithmetic-operators.maximum<a name=\"cql-language-capabilities-arithmetic-operators.46maximum\"> </a></td><td>Arithmetic Operators maximum</td><td>The maximum operator returns the maximum representable value for the given type, defined for the Integer, Long, Decimal, Quantity, Date, DateTime, and Time types.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#maximum</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> arithmetic-operators.minimum<a name=\"cql-language-capabilities-arithmetic-operators.46minimum\"> </a></td><td>Arithmetic Operators minimum</td><td>The minimum operator returns the minimum representable value for the given type, defined for the Integer, Long, Decimal, Quantity, Date, DateTime, and Time types.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#minimum</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> arithmetic-operators.mod<a name=\"cql-language-capabilities-arithmetic-operators.46mod\"> </a></td><td>Arithmetic Operators mod</td><td>The mod operator computes the remainder of the division of its arguments.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#mod</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> arithmetic-operators.multiply<a name=\"cql-language-capabilities-arithmetic-operators.46multiply\"> </a></td><td>Arithmetic Operators multiply</td><td>The multiply (*) operator performs numeric multiplication of its arguments.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#multiply</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> arithmetic-operators.negate<a name=\"cql-language-capabilities-arithmetic-operators.46negate\"> </a></td><td>Arithmetic Operators negate</td><td>The negate (-) operator returns the negative of its argument.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#negate</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> arithmetic-operators.precision<a name=\"cql-language-capabilities-arithmetic-operators.46precision\"> </a></td><td>Arithmetic Operators precision</td><td>The Precision function returns the number of digits of precision in the input value.</td><td>1.5</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#precision</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> arithmetic-operators.predecessor<a name=\"cql-language-capabilities-arithmetic-operators.46predecessor\"> </a></td><td>Arithmetic Operators predecessor</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#predecessor</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> arithmetic-operators.power<a name=\"cql-language-capabilities-arithmetic-operators.46power\"> </a></td><td>Arithmetic Operators power</td><td>The power (^) operator raises the first argument to the power given by the second argument.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#power</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> arithmetic-operators.round<a name=\"cql-language-capabilities-arithmetic-operators.46round\"> </a></td><td>Arithmetic Operators round</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#round</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> arithmetic-operators.subtract<a name=\"cql-language-capabilities-arithmetic-operators.46subtract\"> </a></td><td>Arithmetic Operators subtract</td><td>The subtract (-) operator performs numeric subtraction of its arguments.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#subtract</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> arithmetic-operators.successor<a name=\"cql-language-capabilities-arithmetic-operators.46successor\"> </a></td><td>Arithmetic Operators successor</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#successor</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> arithmetic-operators.truncate<a name=\"cql-language-capabilities-arithmetic-operators.46truncate\"> </a></td><td>Arithmetic Operators truncate</td><td>The Truncate operator returns the integer component of its argument.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#truncate</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> arithmetic-operators.div<a name=\"cql-language-capabilities-arithmetic-operators.46div\"> </a></td><td>Arithmetic Operators div</td><td>The div operator performs truncated division of its arguments.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#div</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">string-operators<a name=\"cql-language-capabilities-string-operators\"> </a></td><td>String Operators</td><td>Length, substring, startsWith, endsWith, matches, replaceMatches, etc.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#string-operators</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> string-operators.combine<a name=\"cql-language-capabilities-string-operators.46combine\"> </a></td><td>String Operators combine</td><td>The Combine operator combines a list of strings, optionally separating each string with the given separator.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#combine</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> string-operators.concatenate<a name=\"cql-language-capabilities-string-operators.46concatenate\"> </a></td><td>String Operators concatenate</td><td>The concatenate (+ or &) operator performs string concatenation of its arguments.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#concatenate</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> string-operators.endwith<a name=\"cql-language-capabilities-string-operators.46endwith\"> </a></td><td>String Operators endwith</td><td>The EndsWith operator returns true if the given string ends with the given suffix.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#endwith</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> string-operators.indexer<a name=\"cql-language-capabilities-string-operators.46indexer\"> </a></td><td>String Operators indexer</td><td>The indexer ([]) operator returns the character at the indexth position in a string.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#indexer</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> string-operators.lastpositionof<a name=\"cql-language-capabilities-string-operators.46lastpositionof\"> </a></td><td>String Operators lastpositionof</td><td>The LastPositionOf operator returns the 0-based index of the last appearance of the given pattern in the given string.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#lastpositionof</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> string-operators.length<a name=\"cql-language-capabilities-string-operators.46length\"> </a></td><td>String Operators length</td><td>The Length operator returns the number of characters in a string.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#length</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> string-operators.lower<a name=\"cql-language-capabilities-string-operators.46lower\"> </a></td><td>String Operators lower</td><td>The Lower operator returns the given string with all characters converted to their lower case equivalents.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#lower</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> string-operators.matches<a name=\"cql-language-capabilities-string-operators.46matches\"> </a></td><td>String Operators matches</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#matches</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> string-operators.positionof<a name=\"cql-language-capabilities-string-operators.46positionof\"> </a></td><td>String Operators positionof</td><td>The PositionOf operator returns the 0-based index of the given pattern in the given string.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#positionof</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> string-operators.replacematches<a name=\"cql-language-capabilities-string-operators.46replacematches\"> </a></td><td>String Operators replacematches</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#replacematches</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> string-operators.split<a name=\"cql-language-capabilities-string-operators.46split\"> </a></td><td>String Operators split</td><td>The Split operator splits a string into a list of strings using a separator.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#split</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> string-operators.splitonmatches<a name=\"cql-language-capabilities-string-operators.46splitonmatches\"> </a></td><td>String Operators splitonmatches</td><td>The SplitOnMatches operator splits a string into a list of strings using a separator that is defined by a regular expression pattern.</td><td>1.3</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#splitonmatches</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> string-operators.startswith<a name=\"cql-language-capabilities-string-operators.46startswith\"> </a></td><td>String Operators startswith</td><td>The StartsWith operator returns true if the given string starts with the given prefix.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#startswith</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> string-operators.substring<a name=\"cql-language-capabilities-string-operators.46substring\"> </a></td><td>String Operators substring</td><td>The Substring operator returns the string within stringToSub, starting at the 0-based index startIndex, and consisting of length characters.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#substring</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> string-operators.upper<a name=\"cql-language-capabilities-string-operators.46upper\"> </a></td><td>String Operators upper</td><td>The Upper operator returns the given string with all characters converted to their upper case equivalents.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#upper</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">date-and-time-operators<a name=\"cql-language-capabilities-date-and-time-operators\"> </a></td><td>Date and Time Operators</td><td>Date/time arithmetic, components, now/today, comparisons, etc.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#date-and-time-operators</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> date-and-time-operators.add<a name=\"cql-language-capabilities-date-and-time-operators.46add\"> </a></td><td>Date and Time Operators add</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#add</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> date-and-time-operators.after<a name=\"cql-language-capabilities-date-and-time-operators.46after\"> </a></td><td>Date and Time Operators after</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#after</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> date-and-time-operators.before<a name=\"cql-language-capabilities-date-and-time-operators.46before\"> </a></td><td>Date and Time Operators before</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#before</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> date-and-time-operators.date<a name=\"cql-language-capabilities-date-and-time-operators.46date\"> </a></td><td>Date and Time Operators date</td><td>The Date operator constructs a date value from the given components.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#date</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> date-and-time-operators.datetime<a name=\"cql-language-capabilities-date-and-time-operators.46datetime\"> </a></td><td>Date and Time Operators datetime</td><td>The DateTime operator constructs a DateTime value from the given components.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#datetime</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> date-and-time-operators.from<a name=\"cql-language-capabilities-date-and-time-operators.46from\"> </a></td><td>Date and Time Operators from</td><td>The component-from operator returns the specified component of the argument.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#from</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> date-and-time-operators.difference<a name=\"cql-language-capabilities-date-and-time-operators.46difference\"> </a></td><td>Date and Time Operators difference</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#difference</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> date-and-time-operators.duration<a name=\"cql-language-capabilities-date-and-time-operators.46duration\"> </a></td><td>Date and Time Operators duration</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#duration</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> date-and-time-operators.now<a name=\"cql-language-capabilities-date-and-time-operators.46now\"> </a></td><td>Date and Time Operators now</td><td>The Now operator returns the date and time of the start timestamp associated with the evaluation request.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#now</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> date-and-time-operators.on-or-after<a name=\"cql-language-capabilities-date-and-time-operators.46on-or-after\"> </a></td><td>Date and Time Operators on or after</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#on-or-after</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> date-and-time-operators.on-or-before<a name=\"cql-language-capabilities-date-and-time-operators.46on-or-before\"> </a></td><td>Date and Time Operators on or before</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#on-or-before</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> date-and-time-operators.same-as<a name=\"cql-language-capabilities-date-and-time-operators.46same-as\"> </a></td><td>Date and Time Operators same as</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#same-as</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> date-and-time-operators.same-or-after<a name=\"cql-language-capabilities-date-and-time-operators.46same-or-after\"> </a></td><td>Date and Time Operators same or after</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#same-or-after</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> date-and-time-operators.same-or-before<a name=\"cql-language-capabilities-date-and-time-operators.46same-or-before\"> </a></td><td>Date and Time Operators same or before</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#same-or-before</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> date-and-time-operators.subtract<a name=\"cql-language-capabilities-date-and-time-operators.46subtract\"> </a></td><td>Date and Time Operators subtract</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#subtract</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> date-and-time-operators.time<a name=\"cql-language-capabilities-date-and-time-operators.46time\"> </a></td><td>Date and Time Operators time</td><td>The Time operator constructs a time value from the given components.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#time</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> date-and-time-operators.timeofday<a name=\"cql-language-capabilities-date-and-time-operators.46timeofday\"> </a></td><td>Date and Time Operators timeofday</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#timeofday</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> date-and-time-operators.today<a name=\"cql-language-capabilities-date-and-time-operators.46today\"> </a></td><td>Date and Time Operators today</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#today</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">interval-operators<a name=\"cql-language-capabilities-interval-operators\"> </a></td><td>Interval Operators</td><td>contains, in, union, intersect, width, expand, etc.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.after<a name=\"cql-language-capabilities-interval-operators.46after\"> </a></td><td>Interval Operators after</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#after</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.before<a name=\"cql-language-capabilities-interval-operators.46before\"> </a></td><td>Interval Operators before</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#before</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.collapse<a name=\"cql-language-capabilities-interval-operators.46collapse\"> </a></td><td>Interval Operators collapse</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#collapse</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.contains<a name=\"cql-language-capabilities-interval-operators.46contains\"> </a></td><td>Interval Operators contains</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#contains</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.end<a name=\"cql-language-capabilities-interval-operators.46end\"> </a></td><td>Interval Operators end</td><td>The End operator returns the ending point of an interval.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#end</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.ends<a name=\"cql-language-capabilities-interval-operators.46ends\"> </a></td><td>Interval Operators ends</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#ends</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.equal<a name=\"cql-language-capabilities-interval-operators.46equal\"> </a></td><td>Interval Operators equal</td><td>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</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.equivalent<a name=\"cql-language-capabilities-interval-operators.46equivalent\"> </a></td><td>Interval Operators equivalent</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#equivalent</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.except<a name=\"cql-language-capabilities-interval-operators.46except\"> </a></td><td>Interval Operators except</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#except</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.expand<a name=\"cql-language-capabilities-interval-operators.46expand\"> </a></td><td>Interval Operators expand</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#expand</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.in<a name=\"cql-language-capabilities-interval-operators.46in\"> </a></td><td>Interval Operators in</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#in</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.includes<a name=\"cql-language-capabilities-interval-operators.46includes\"> </a></td><td>Interval Operators includes</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#includes</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.included-in<a name=\"cql-language-capabilities-interval-operators.46included-in\"> </a></td><td>Interval Operators included in</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#included-in</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.intersect<a name=\"cql-language-capabilities-interval-operators.46intersect\"> </a></td><td>Interval Operators intersect</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#intersect</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.meets<a name=\"cql-language-capabilities-interval-operators.46meets\"> </a></td><td>Interval Operators meets</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#meets</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.not-equal<a name=\"cql-language-capabilities-interval-operators.46not-equal\"> </a></td><td>Interval Operators not equal</td><td>The not equal (!=) operator for intervals returns true if its arguments are not the same value.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#not-equal</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.not-equivalent<a name=\"cql-language-capabilities-interval-operators.46not-equivalent\"> </a></td><td>Interval Operators not equivalent</td><td>The not equivalent (!~) operator for intervals returns true if its arguments are not equivalent.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#not-equivalent</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.on-or-after<a name=\"cql-language-capabilities-interval-operators.46on-or-after\"> </a></td><td>Interval Operators on or after</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#on-or-after</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.on-or-before<a name=\"cql-language-capabilities-interval-operators.46on-or-before\"> </a></td><td>Interval Operators on or before</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#on-or-before</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.overlaps<a name=\"cql-language-capabilities-interval-operators.46overlaps\"> </a></td><td>Interval Operators overlaps</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#overlaps</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.point-from<a name=\"cql-language-capabilities-interval-operators.46point-from\"> </a></td><td>Interval Operators point from</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#point-from</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.properly-includes<a name=\"cql-language-capabilities-interval-operators.46properly-includes\"> </a></td><td>Interval Operators properly includes</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#properly-includes</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.properly-included-in<a name=\"cql-language-capabilities-interval-operators.46properly-included-in\"> </a></td><td>Interval Operators properly included in</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#included-in</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.same-as<a name=\"cql-language-capabilities-interval-operators.46same-as\"> </a></td><td>Interval Operators same as</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#same-as</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.same-or-after<a name=\"cql-language-capabilities-interval-operators.46same-or-after\"> </a></td><td>Interval Operators same or after</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#same-or-after</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.same-or-before<a name=\"cql-language-capabilities-interval-operators.46same-or-before\"> </a></td><td>Interval Operators same or before</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#same-or-before</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.size<a name=\"cql-language-capabilities-interval-operators.46size\"> </a></td><td>Interval Operators size</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#size</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.start<a name=\"cql-language-capabilities-interval-operators.46start\"> </a></td><td>Interval Operators start</td><td>The Start operator returns the starting point of an interval.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#start</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.starts<a name=\"cql-language-capabilities-interval-operators.46starts\"> </a></td><td>Interval Operators starts</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#starts</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.union<a name=\"cql-language-capabilities-interval-operators.46union\"> </a></td><td>Interval Operators union</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#union</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> interval-operators.width<a name=\"cql-language-capabilities-interval-operators.46width\"> </a></td><td>Interval Operators width</td><td>The width operator returns the width of an interval. The result of this operator is equivalent to invoking: (end of argument – start of argument).</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#width</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">list-operators<a name=\"cql-language-capabilities-list-operators\"> </a></td><td>List Operators</td><td>size, first/last, contains, union/intersect/except, map/filter/distinct, sort/reverse/zip, etc.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#list-operators</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> list-operators.contains<a name=\"cql-language-capabilities-list-operators.46contains\"> </a></td><td>List Operators contains</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#contains</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> list-operators.distinct<a name=\"cql-language-capabilities-list-operators.46distinct\"> </a></td><td>List Operators distinct</td><td>The distinct operator returns the given list with duplicates eliminated using equality semantics.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#distinct</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> list-operators.equal<a name=\"cql-language-capabilities-list-operators.46equal\"> </a></td><td>List Operators equal</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#equal</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> list-operators.equivalent<a name=\"cql-language-capabilities-list-operators.46equivalent\"> </a></td><td>List Operators equivalent</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#equivalent</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> list-operators.except<a name=\"cql-language-capabilities-list-operators.46except\"> </a></td><td>List Operators except</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#except</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> list-operators.exists<a name=\"cql-language-capabilities-list-operators.46exists\"> </a></td><td>List Operators exists</td><td>The exists operator returns true if the list contains any non-null elements.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#exists</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> list-operators.flatten<a name=\"cql-language-capabilities-list-operators.46flatten\"> </a></td><td>List Operators flatten</td><td>The flatten operator flattens a list of lists into a single list.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#flatten</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> list-operators.first<a name=\"cql-language-capabilities-list-operators.46first\"> </a></td><td>List Operators first</td><td>The First operator returns the first element in a list. The operator is equivalent to invoking the indexer with an index of 0.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#first</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> list-operators.in<a name=\"cql-language-capabilities-list-operators.46in\"> </a></td><td>List Operators in</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#in</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> list-operators.includes<a name=\"cql-language-capabilities-list-operators.46includes\"> </a></td><td>List Operators includes</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#includes</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> list-operators.included_in<a name=\"cql-language-capabilities-list-operators.46included_in\"> </a></td><td>List Operators included in</td><td>The included in operator for lists returns true if every element of the first list is in the second list using equality semantics.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#included-in</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> list-operators.indexer<a name=\"cql-language-capabilities-list-operators.46indexer\"> </a></td><td>List Operators indexer</td><td>The indexer ([]) operator returns the element at the indexth position in a list.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#indexer</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> list-operators.indexof<a name=\"cql-language-capabilities-list-operators.46indexof\"> </a></td><td>List Operators IndexOf</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#indexof</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> list-operators.intersect<a name=\"cql-language-capabilities-list-operators.46intersect\"> </a></td><td>List Operators intersect</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#intersect</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> list-operators.last<a name=\"cql-language-capabilities-list-operators.46last\"> </a></td><td>List Operators last</td><td>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</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#last</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> list-operators.length<a name=\"cql-language-capabilities-list-operators.46length\"> </a></td><td>List Operators length</td><td>The Length operator returns the number of elements in a list.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#length</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> list-operators.not_equal<a name=\"cql-language-capabilities-list-operators.46not_equal\"> </a></td><td>List Operators not equal</td><td>The not equal (!=) operator for lists returns true if its arguments are not the same value.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#not_equal</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> list-operators.not_equivalent<a name=\"cql-language-capabilities-list-operators.46not_equivalent\"> </a></td><td>List Operators not equivalent</td><td>The not equivalent (!~) operator for lists returns true if its arguments are not equivalent.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#not_equivalent</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> list-operators.properly_includes<a name=\"cql-language-capabilities-list-operators.46properly_includes\"> </a></td><td>List Operators properly includes</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#properly_includes</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> list-operators.properly_included_in<a name=\"cql-language-capabilities-list-operators.46properly_included_in\"> </a></td><td>List Operators properly included in</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#properly_included_in</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> list-operators.singleton_from<a name=\"cql-language-capabilities-list-operators.46singleton_from\"> </a></td><td>List Operators singleton from</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#singleton_from</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> list-operators.skip<a name=\"cql-language-capabilities-list-operators.46skip\"> </a></td><td>List Operators skip</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#skip</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> list-operators.tail<a name=\"cql-language-capabilities-list-operators.46tail\"> </a></td><td>List Operators tail</td><td>The Tail operator returns all but the first element from the given list. If the list is empty, the result is empty.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#tail</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> list-operators.take<a name=\"cql-language-capabilities-list-operators.46take\"> </a></td><td>List Operators take</td><td>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.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#take</code></td></tr><tr><td>2</td><td style=\"white-space:nowrap\"> list-operators.union<a name=\"cql-language-capabilities-list-operators.46union\"> </a></td><td>List Operators union</td><td>The union operator for lists returns a list with all unique elements from both arguments.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#union</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">aggregate-functions<a name=\"cql-language-capabilities-aggregate-functions\"> </a></td><td>Aggregate Functions</td><td>count, sum, min, max, average, median, mode, etc.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#aggregate-functions</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">clinical-operators<a name=\"cql-language-capabilities-clinical-operators\"> </a></td><td>Clinical Operators</td><td>Retrieve/terminology functions; temporal/duration in clinical context.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#clinical-operators</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">diagnostic-operators<a name=\"cql-language-capabilities-diagnostic-operators\"> </a></td><td>Diagnostic Operators</td><td>Errors and messaging functions.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#errors-and-messaging</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">single-source-query<a name=\"cql-language-capabilities-single-source-query\"> </a></td><td>Single source query</td><td>Query over one source.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/74-queryevaluation.html#evaluate-sources</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">relationships-query<a name=\"cql-language-capabilities-relationships-query\"> </a></td><td>Relationships query</td><td>Query involving two or more sources.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/74-queryevaluation.html#evaluate-sources</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">let-clause-query<a name=\"cql-language-capabilities-let-clause-query\"> </a></td><td>Let clause query</td><td>Introduce local bindings.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/74-queryevaluation.html#let-clause</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">where-clause-query<a name=\"cql-language-capabilities-where-clause-query\"> </a></td><td>Where clause query</td><td>Filter using Boolean conditions.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/74-queryevaluation.html#where-clause</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">return-clause-query<a name=\"cql-language-capabilities-return-clause-query\"> </a></td><td>Return clause query</td><td>Specify the shape/content of returned rows.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/74-queryevaluation.html#return-clause</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">aggregate-clause-query<a name=\"cql-language-capabilities-aggregate-clause-query\"> </a></td><td>Aggregate clause query</td><td>Reduce rows to a summary value.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/74-queryevaluation.html#aggregate-clause</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">multi-source-query<a name=\"cql-language-capabilities-multi-source-query\"> </a></td><td>Multi source query</td><td>Query using two or more sources.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/74-queryevaluation.html#evaluate-sources</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">unfiltered-context-retrieve<a name=\"cql-language-capabilities-unfiltered-context-retrieve\"> </a></td><td>Unfiltered context retrieve</td><td>All data of a type in the current context.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/05-languagesemantics.html#language-capabilities</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">terminology-based-retrieve<a name=\"cql-language-capabilities-terminology-based-retrieve\"> </a></td><td>Terminology-based retrieve</td><td>Retrieve filtered by ValueSet/CodeSystem/Code.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/05-languagesemantics.html#retrieve-paths</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">valueset-terminology-target-retrieve<a name=\"cql-language-capabilities-valueset-terminology-target-retrieve\"> </a></td><td>Valueset terminology target retrieve</td><td>Retrieve filtered by a ValueSet reference.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/05-languagesemantics.html#retrieve-paths</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">codesystem-terminology-target-retrieve<a name=\"cql-language-capabilities-codesystem-terminology-target-retrieve\"> </a></td><td>CodeSystem terminology target retrieve</td><td>Retrieve filtered by a CodeSystem.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/05-languagesemantics.html#retrieve-paths</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">code-terminology-target-retrieve<a name=\"cql-language-capabilities-code-terminology-target-retrieve\"> </a></td><td>Code terminology target retrieve</td><td>Retrieve filtered by a single Code.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/05-languagesemantics.html#retrieve-paths</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">searchpath-retrieve<a name=\"cql-language-capabilities-searchpath-retrieve\"> </a></td><td>Searchpath retrieve</td><td>Retrieve using a search path expression.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/05-languagesemantics.html#retrieve-paths</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">include-retrieve<a name=\"cql-language-capabilities-include-retrieve\"> </a></td><td>Include retrieve</td><td>Retrieve that includes related records via references.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/05-languagesemantics.html#retrieve-paths</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">related-context-retrieve<a name=\"cql-language-capabilities-related-context-retrieve\"> </a></td><td>Related-context retrieve</td><td>Retrieve scoped to a related context entity.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/05-languagesemantics.html#retrieve-paths</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">profile-based-retrieve<a name=\"cql-language-capabilities-profile-based-retrieve\"> </a></td><td>Profile-based retrieve</td><td>Retrieve constrained to a profile.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/42-conformancelevels.html#strict-conformance</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">tuple<a name=\"cql-language-capabilities-tuple\"> </a></td><td>Tuple</td><td>Structured type with named elements.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/63-expressionlanguagesemantics.html#structured-types</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">choice<a name=\"cql-language-capabilities-choice\"> </a></td><td>Choice</td><td>Value that may be one of several specified types.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/63-expressionlanguagesemantics.html#choice-types</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">list<T><a name=\"cql-language-capabilities-list.60T.62\"> </a></td><td>List<T></td><td>Ordered collection of elements of type T.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/63-expressionlanguagesemantics.html#collection-types</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">interval<T><a name=\"cql-language-capabilities-interval.60T.62\"> </a></td><td>Interval<T></td><td>Range of values of type T.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">interval<integer><a name=\"cql-language-capabilities-interval.60integer.62\"> </a></td><td>Interval<Integer></td><td>Range of integers.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">interval<decimal><a name=\"cql-language-capabilities-interval.60decimal.62\"> </a></td><td>Interval<Decimal></td><td>Range of decimal numbers.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">interval<date><a name=\"cql-language-capabilities-interval.60date.62\"> </a></td><td>Interval<Date></td><td>Range of dates (no time).</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">interval<time><a name=\"cql-language-capabilities-interval.60time.62\"> </a></td><td>Interval<Time></td><td>Range of times of day (no date).</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3</code></td></tr><tr><td>1</td><td style=\"white-space:nowrap\">interval<datetime><a name=\"cql-language-capabilities-interval.60datetime.62\"> </a></td><td>Interval<DateTime></td><td>Range of full date/times.</td><td>1.0</td><td/><td/><td><code>https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3</code></td></tr></table></div>"^^rdf:XMLLiteral ] ; # fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "cds" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "trial-use" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 2 ] ] ) ; # fhir:url [ fhir:v "http://cql.hl7.org/CodeSystem/cql-language-capabilities"^^xsd:anyURI] ; # fhir:version [ fhir:v "2.0.0-ballot"] ; # fhir:name [ fhir:v "CQLLanguageCapabilityCodes"] ; # fhir:title [ fhir:v "CQL Language Capability Codes"] ; # fhir:status [ fhir:v "active"] ; # fhir:experimental [ fhir:v false] ; # fhir:date [ fhir:v "2025-10-24T16:45:25+00:00"^^xsd:dateTime] ; # fhir:publisher [ fhir:v "Clinical Decision Support WG"] ; # fhir:contact ( [ ( fhir:telecom [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "http://www.hl7.org/Special/committees/dss/index.cfm" ] ] ) ] ) ; # fhir:description [ fhir:v "Codes for CQL language capabilities."] ; # fhir:caseSensitive [ fhir:v true] ; # fhir:valueSet [ fhir:v "http://cql.hl7.org/ValueSet/cql-language-capability"^^xsd:anyURI ; fhir:link <http://cql.hl7.org/ValueSet/cql-language-capability> ] ; # fhir:hierarchyMeaning [ fhir:v "is-a"] ; # fhir:content [ fhir:v "complete"] ; # fhir:property ( [ fhir:code [ fhir:v "version" ] ; fhir:uri [ fhir:v "http://cql.hl7.org/CodeSystem/cql-capability-characteristic-codes#version"^^xsd:anyURI ] ; fhir:description [ fhir:v "The version in which the capability was introduced in the specification" ] ; fhir:type [ fhir:v "string" ] ] [ fhir:code [ fhir:v "versionTo" ] ; fhir:uri [ fhir:v "http://cql.hl7.org/CodeSystem/cql-capability-characteristic-codes#versionTo"^^xsd:anyURI ] ; fhir:description [ fhir:v "The last version in which the capability was included in the specification" ] ; fhir:type [ fhir:v "string" ] ] [ fhir:code [ fhir:v "value" ] ; fhir:uri [ fhir:v "http://cql.hl7.org/CodeSystem/cql-capability-characteristic-codes#value"^^xsd:anyURI ] ; fhir:description [ fhir:v "A qualifier value used to provide more detail about the capability" ] ; fhir:type [ fhir:v "string" ] ] [ fhir:code [ fhir:v "valueMeaning" ] ; fhir:uri [ fhir:v "http://cql.hl7.org/CodeSystem/cql-capability-characteristic-codes#valueMeaning"^^xsd:anyURI ] ; fhir:description [ fhir:v "A description of the meaning of qualifier values for the capability" ] ; fhir:type [ fhir:v "string" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:uri [ fhir:v "http://cql.hl7.org/CodeSystem/cql-capability-characteristic-codes#reference"^^xsd:anyURI ] ; fhir:description [ fhir:v "A reference to the specification documenting this capability" ] ; fhir:type [ fhir:v "string" ] ] ) ; # fhir:concept ( [ fhir:code [ fhir:v "decimal-precision-and-scale" ] ; fhir:display [ fhir:v "Decimal precision and scale" ] ; fhir:definition [ fhir:v "How many total digits (precision) and how many digits to the right of the decimal point (scale) the implementation supports for Decimal values." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "value" ] ; fhir:value [ a fhir:string ; fhir:v "28,8" ] ] [ fhir:code [ fhir:v "valueMeaning" ] ; fhir:value [ a fhir:string ; fhir:v "The supported precision and scale of decimal values" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#decimal" ] ] ) ] [ fhir:code [ fhir:v "datetime-precision-and-scale" ] ; fhir:display [ fhir:v "Datetime precision and scale" ] ; fhir:definition [ fhir:v "The finest granularity (precision) and smallest increment (scale) supported for date/time values." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#datetime" ] ] ) ] [ fhir:code [ fhir:v "ucum-unit-conversion-support" ] ; fhir:display [ fhir:v "UCUM unit conversion support" ] ; fhir:definition [ fhir:v "Whether and how the engine can automatically convert between units of measure using UCUM." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#convertquantity" ] ] ) ] [ fhir:code [ fhir:v "regex-dialect" ] ; fhir:display [ fhir:v "Regex dialect" ] ; fhir:definition [ fhir:v "Which flavor of regular expressions the implementation supports." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#matches" ] ] ) ] [ fhir:code [ fhir:v "supported-data-models" ] ; fhir:display [ fhir:v "Supported data models" ] ; fhir:definition [ fhir:v "Which external models the engine can evaluate against." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/05-languagesemantics.html#data-model" ] ] ) ] [ fhir:code [ fhir:v "expand-operator" ] ; fhir:display [ fhir:v "Expand operator" ] ; fhir:definition [ fhir:v "Expand on ValueSet/Interval." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.3" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/05-languagesemantics.html#collapse-and-expand-operators" ] ] ) ] [ fhir:code [ fhir:v "fhirpath-support" ] ; fhir:display [ fhir:v "FHIRPath Support" ] ; fhir:definition [ fhir:v "Ability to evaluate/translate FHIRPath within CQL." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.3" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/16-i-fhirpathtranslation.html" ] ] ) ] [ fhir:code [ fhir:v "precision-operators-for-decimal-and-date-time-types" ] ; fhir:display [ fhir:v "Precision operators for Decimal and Date/Time types" ] ; fhir:definition [ fhir:v "Operators that adjust/control precision." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.4" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#precision" ] ] ) ] [ fhir:code [ fhir:v "model-defined-contexts" ] ; fhir:display [ fhir:v "Model-defined contexts" ] ; fhir:definition [ fhir:v "Contexts defined by the data model." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.4" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/05-languagesemantics.html#context-support" ] ] ) ] [ fhir:code [ fhir:v "library-namespaces" ] ; fhir:display [ fhir:v "Library namespaces" ] ; fhir:definition [ fhir:v "Organize libraries into namespaces." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.4" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/07-physicalrepresentation.html#media-types-and-namespaces" ] ] ) ] [ fhir:code [ fhir:v "related-context-retrieves" ] ; fhir:display [ fhir:v "Related-context retrieves" ] ; fhir:definition [ fhir:v "Context-relative retrieve operations." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.4" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/05-languagesemantics.html#retrieve-paths" ] ] ) ] [ fhir:code [ fhir:v "unit-conversion-support" ] ; fhir:display [ fhir:v "Unit conversion support" ] ; fhir:definition [ fhir:v "Convert between compatible UCUM units." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.4" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/05-languagesemantics.html#conversions" ] ] ) ] [ fhir:code [ fhir:v "modular-arithmetic-for-quantities" ] ; fhir:display [ fhir:v "Modular arithmetic for quantities" ] ; fhir:definition [ fhir:v "Modulo/remainder with Quantity." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.5" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/05-languagesemantics.html#quantity-arithmetic" ] ] ) ] [ fhir:code [ fhir:v "expand-a-single-interval" ] ; fhir:display [ fhir:v "Expand a single interval" ] ; fhir:definition [ fhir:v "Expand applied to a single Interval." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.5" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#expand" ] ] ) ] [ fhir:code [ fhir:v "aggregate-clause" ] ; fhir:display [ fhir:v "Aggregate clause" ] ; fhir:definition [ fhir:v "Query clause for aggregation." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.5" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/05-languagesemantics.html#aggregate-clause" ] ] ) ] [ fhir:code [ fhir:v "include-retrieves" ] ; fhir:display [ fhir:v "Include retrieves" ] ; fhir:definition [ fhir:v "Retrieve that follows model references." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.5" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/05-languagesemantics.html#retrieve-paths" ] ] ) ] [ fhir:code [ fhir:v "searchpath-retrieves" ] ; fhir:display [ fhir:v "Searchpath retrieves" ] ; fhir:definition [ fhir:v "Retrieve using a search path expression." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.5" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/05-languagesemantics.html#retrieve-paths" ] ] ) ] [ fhir:code [ fhir:v "id-retrieves" ] ; fhir:display [ fhir:v "Id retrieves" ] ; fhir:definition [ fhir:v "Retrieve by unique identifier." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.5" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/05-languagesemantics.html#retrieve-paths" ] ] ) ] [ fhir:code [ fhir:v "system-data-types" ] ; fhir:display [ fhir:v "System Data Types" ] ; fhir:definition [ fhir:v "Primitive, structured, and collection types defined by the System namespace." ] ; ( fhir:property [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#types" ] ] ) ; ( fhir:concept [ fhir:code [ fhir:v "system.integer" ] ; fhir:display [ fhir:v "System.Integer" ] ; fhir:definition [ fhir:v "Whole numbers with no fractional component." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#integer" ] ] ) ] [ fhir:code [ fhir:v "system.long" ] ; fhir:display [ fhir:v "System.Long" ] ; fhir:definition [ fhir:v "64-bit signed integers." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.5" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#long" ] ] ) ] [ fhir:code [ fhir:v "system.decimal" ] ; fhir:display [ fhir:v "System.Decimal" ] ; fhir:definition [ fhir:v "Numbers with fractional precision and scale." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#decimal" ] ] ) ] [ fhir:code [ fhir:v "system.string" ] ; fhir:display [ fhir:v "System.String" ] ; fhir:definition [ fhir:v "Sequence of text characters." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#string" ] ] ) ] [ fhir:code [ fhir:v "system.boolean" ] ; fhir:display [ fhir:v "System.Boolean" ] ; fhir:definition [ fhir:v "Logical truth values." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#boolean" ] ] ) ] [ fhir:code [ fhir:v "system.date" ] ; fhir:display [ fhir:v "System.Date" ] ; fhir:definition [ fhir:v "Calendar date without time." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.3" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#date" ] ] ) ] [ fhir:code [ fhir:v "system.time" ] ; fhir:display [ fhir:v "System.Time" ] ; fhir:definition [ fhir:v "Time of day without date." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#time" ] ] ) ] [ fhir:code [ fhir:v "system.datetime" ] ; fhir:display [ fhir:v "System.DateTime" ] ; fhir:definition [ fhir:v "Date and time point (optional offset)." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#datetime" ] ] ) ] [ fhir:code [ fhir:v "system.quantity" ] ; fhir:display [ fhir:v "System.Quantity" ] ; fhir:definition [ fhir:v "Numeric value with unit." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#quantity" ] ] ) ] [ fhir:code [ fhir:v "system.ratio" ] ; fhir:display [ fhir:v "System.Ratio" ] ; fhir:definition [ fhir:v "Fractional relationship between two Quantities." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.3" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#ratio" ] ] ) ] [ fhir:code [ fhir:v "system.interval" ] ; fhir:display [ fhir:v "System.Interval" ] ; fhir:definition [ fhir:v "Range over an ordered type." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3" ] ] ) ] [ fhir:code [ fhir:v "system.list" ] ; fhir:display [ fhir:v "System.List" ] ; fhir:definition [ fhir:v "Ordered collection of elements of a type." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/63-expressionlanguagesemantics.html#collection-types" ] ] ) ] [ fhir:code [ fhir:v "system.tuple" ] ; fhir:display [ fhir:v "System.Tuple" ] ; fhir:definition [ fhir:v "Structured type with named elements." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/63-expressionlanguagesemantics.html#structured-types" ] ] ) ] [ fhir:code [ fhir:v "system.choice" ] ; fhir:display [ fhir:v "System.Choice" ] ; fhir:definition [ fhir:v "Value of one among several types." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/63-expressionlanguagesemantics.html#choice-types" ] ] ) ] [ fhir:code [ fhir:v "system.codesystem" ] ; fhir:display [ fhir:v "System.CodeSystem" ] ; fhir:definition [ fhir:v "Reference to an external code system." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.5" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#codesystem" ] ] ) ] [ fhir:code [ fhir:v "system.valueset" ] ; fhir:display [ fhir:v "System.ValueSet" ] ; fhir:definition [ fhir:v "Reference to a set of codes." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.5" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#valueset" ] ] ) ] [ fhir:code [ fhir:v "system.vocabulary" ] ; fhir:display [ fhir:v "System.Vocabulary" ] ; fhir:definition [ fhir:v "Base type for vocabulary-related types." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.5" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#vocabulary" ] ] ) ] ) ] [ fhir:code [ fhir:v "logical-operators" ] ; fhir:display [ fhir:v "Logical Operators" ] ; fhir:definition [ fhir:v "and, or, not, implies under 3-valued logic." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#logical-operators" ] ] ) ; ( fhir:concept [ fhir:code [ fhir:v "logical-operators.and" ] ; fhir:display [ fhir:v "Logical Operator and" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#and" ] ] ) ] [ fhir:code [ fhir:v "logical-operators.or" ] ; fhir:display [ fhir:v "Logical Operator or" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#or" ] ] ) ] [ fhir:code [ fhir:v "logical-operators.not" ] ; fhir:display [ fhir:v "Logical Operator not" ] ; fhir:definition [ fhir:v "The not operator returns true if the argument is false and false if the argument is true. Otherwise, the result is null." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#not" ] ] ) ] [ fhir:code [ fhir:v "logical-operators.xor" ] ; fhir:display [ fhir:v "Logical Operator xor" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#xor" ] ] ) ] [ fhir:code [ fhir:v "logical-operators.implies" ] ; fhir:display [ fhir:v "Logical Operator implies" ] ; fhir:definition [ fhir: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" ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#implies" ] ] ) ] ) ] [ fhir:code [ fhir:v "type-operators" ] ; fhir:display [ fhir:v "Type Operators" ] ; fhir:definition [ fhir:v "Type inspection and conversion operators." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#type-operators" ] ] ) ; ( fhir:concept [ fhir:code [ fhir:v "type-operators.as" ] ; fhir:display [ fhir:v "Type Operator as" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#as" ] ] ) ] [ fhir:code [ fhir:v "type-operators.cast-as" ] ; fhir:display [ fhir:v "Type Operator as" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#as" ] ] ) ] [ fhir:code [ fhir:v "type-operators.is" ] ; fhir:display [ fhir:v "Type Operator is" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#is" ] ] ) ] [ fhir:code [ fhir:v "type-operators.children" ] ; fhir:display [ fhir:v "Type Operator children" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#children" ] ] ) ] [ fhir:code [ fhir:v "type-operators.descendants" ] ; fhir:display [ fhir:v "Type Operator descendants" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#descendants" ] ] ) ] [ fhir:code [ fhir:v "type-operators.convert-quantity" ] ; fhir:display [ fhir:v "Type Operator convert-quantity" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#convert" ] ] ) ] [ fhir:code [ fhir:v "type-operators.to-boolean" ] ; fhir:display [ fhir:v "Type Operator to-boolean" ] ; fhir:definition [ fhir:v "The ToBoolean operator converts the value of its argument to a Boolean value." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#toboolean" ] ] ) ] [ fhir:code [ fhir:v "type-operators.to-integer" ] ; fhir:display [ fhir:v "Type Operator to-integer" ] ; fhir:definition [ fhir:v "The ToInteger operator converts the value of its argument to an Integer value." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#tointeger" ] ] ) ] [ fhir:code [ fhir:v "type-operators.to-long" ] ; fhir:display [ fhir:v "Type Operator to-long" ] ; fhir:definition [ fhir:v "The ToLong operator converts the value of its argument to a Long value." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.5" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#tolong" ] ] ) ] [ fhir:code [ fhir:v "type-operators.to-decimal" ] ; fhir:display [ fhir:v "Type Operator to-decimal" ] ; fhir:definition [ fhir:v "The ToDecimal operator converts the value of its argument to a Decimal value." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#todecimal" ] ] ) ] [ fhir:code [ fhir:v "type-operators.to-quantity" ] ; fhir:display [ fhir:v "Type Operator to-quantity" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#toquantity" ] ] ) ] [ fhir:code [ fhir:v "type-operators.to-ratio" ] ; fhir:display [ fhir:v "Type Operator to-ratio" ] ; fhir:definition [ fhir:v "The ToRatio operator converts the value of its argument to a Ratio value." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#toratio" ] ] ) ] [ fhir:code [ fhir:v "type-operators.to-date" ] ; fhir:display [ fhir:v "Type Operator to-date" ] ; fhir:definition [ fhir:v "The ToDate operator converts the value of its argument to a Date value." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#todate" ] ] ) ] [ fhir:code [ fhir:v "type-operators.to-datetime" ] ; fhir:display [ fhir:v "Type Operator to-datetime" ] ; fhir:definition [ fhir:v "The ToDateTime operator converts the value of its argument to a DateTime value." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#todatetime" ] ] ) ] [ fhir:code [ fhir:v "type-operators.to-time" ] ; fhir:display [ fhir:v "Type Operator to-time" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#totime" ] ] ) ] [ fhir:code [ fhir:v "type-operators.to-string" ] ; fhir:display [ fhir:v "Type Operator to-string" ] ; fhir:definition [ fhir:v "The ToString operator converts the value of its argument to a String value." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#tostring" ] ] ) ] [ fhir:code [ fhir:v "type-operators.converts-to-boolean" ] ; fhir:display [ fhir:v "Type Operator converts-to-boolean" ] ; fhir:definition [ fhir:v "The ConvertsToBoolean operator returns true if its argument is or can be converted to a Boolean value." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#convertstoboolean" ] ] ) ] [ fhir:code [ fhir:v "type-operators.converts-to-integer" ] ; fhir:display [ fhir:v "Type Operator converts-to-integer" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#convertstointeger" ] ] ) ] [ fhir:code [ fhir:v "type-operators.converts-to-long" ] ; fhir:display [ fhir:v "Type Operator converts-to-long" ] ; fhir:definition [ fhir:v "The ConvertsToLong operator returns true if its argument is or can be converted to a Long value." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.5" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#convertstolong" ] ] ) ] [ fhir:code [ fhir:v "type-operators.converts-to-decimal" ] ; fhir:display [ fhir:v "Type Operator converts-to-decimal" ] ; fhir:definition [ fhir:v "The ToDecimal operator returns true if its argument is or can be converted to a Decimal value." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#convertstodecimal" ] ] ) ] [ fhir:code [ fhir:v "type-operators.converts-to-quantity" ] ; fhir:display [ fhir:v "Type Operator converts-to-quantity" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#convertstoquantity" ] ] ) ] [ fhir:code [ fhir:v "type-operators.converts-to-ratio" ] ; fhir:display [ fhir:v "Type Operator converts-to-ration" ] ; fhir:definition [ fhir:v "The ConvertsToRatio operator returns true if its argument is or can be converted to a Ratio value" ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#convertstoratio" ] ] ) ] [ fhir:code [ fhir:v "type-operators.converts-to-date" ] ; fhir:display [ fhir:v "Type Operator converts-to-date" ] ; fhir:definition [ fhir:v "The ConvertsToDate operator returns true if its argument is or can be converted to a Date value." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#convertstodate" ] ] ) ] [ fhir:code [ fhir:v "type-operators.converts-to-datetime" ] ; fhir:display [ fhir:v "Type Operator converts-to-datetime" ] ; fhir:definition [ fhir:v "The ConvertsToDateTime operator returns true if its argument is or can be converted to a DateTime value." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#convertstodatetime" ] ] ) ] [ fhir:code [ fhir:v "type-operators.converts-to-time" ] ; fhir:display [ fhir:v "Type Operator converts-to-time" ] ; fhir:definition [ fhir:v "The ConvertsToTime operator returns true if its argument is or can be converted to a Time value." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#convertstotime" ] ] ) ] [ fhir:code [ fhir:v "type-operators.converts-to-string" ] ; fhir:display [ fhir:v "Type Operator converts-to-string" ] ; fhir:definition [ fhir:v "The ConvertsToString operator returns true if its argument is or can be converted to a String value." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#convertstostring" ] ] ) ] ) ] [ fhir:code [ fhir:v "nullological-operators" ] ; fhir:display [ fhir:v "Nullological Operators" ] ; fhir:definition [ fhir:v "Operators dealing with null/missing information." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#nullological-operators" ] ] ) ; ( fhir:concept [ fhir:code [ fhir:v "nullological-operators.coalesce" ] ; fhir:display [ fhir:v "Nullological Operators coalesce" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#coalesce" ] ] ) ] [ fhir:code [ fhir:v "nullological-operators.is-null" ] ; fhir:display [ fhir:v "Nullological Operators is-null" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#isnull" ] ] ) ] [ fhir:code [ fhir:v "nullological-operators.is-true" ] ; fhir:display [ fhir:v "Nullological Operators coalesce" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#istrue" ] ] ) ] [ fhir:code [ fhir:v "nullological-operators.is-false" ] ; fhir:display [ fhir:v "Nullological Operators is-false" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#isfalse" ] ] ) ] ) ] [ fhir:code [ fhir:v "comparison-operators" ] ; fhir:display [ fhir:v "Comparison Operators" ] ; fhir:definition [ fhir:v "Equal, not equal, <, <=, >, >=, in/not in, etc." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#comparison-operators" ] ] ) ; ( fhir:concept [ fhir:code [ fhir:v "comparison-operators.equal" ] ; fhir:display [ fhir:v "Comparison Operators equal" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#equal" ] ] ) ] [ fhir:code [ fhir:v "comparison-operators.equivalent" ] ; fhir:display [ fhir:v "Comparison Operators equivalent" ] ; fhir:definition [ fhir:v "The equivalent (~) operator returns true if the arguments are equivalent in value, or if they are both null; and false otherwise." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#equivalent" ] ] ) ] [ fhir:code [ fhir:v "comparison-operators.greater" ] ; fhir:display [ fhir:v "Comparison Operators greater" ] ; fhir:definition [ fhir:v "The greater (>) operator returns true if the first argument is greater than the second argument." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#greater" ] ] ) ] [ fhir:code [ fhir:v "comparison-operators.greater-or-equal" ] ; fhir:display [ fhir:v "Comparison Operators greater or equal" ] ; fhir:definition [ fhir:v "The greater or equal (>=) operator returns true if the first argument is greater than or equal to the second argument." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#greater-or-equal" ] ] ) ] [ fhir:code [ fhir:v "comparison-operators.less" ] ; fhir:display [ fhir:v "Comparison Operators less" ] ; fhir:definition [ fhir:v "The less (<) operator returns true if the first argument is less than the second argument." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#less" ] ] ) ] [ fhir:code [ fhir:v "comparison-operators.less-or-equal" ] ; fhir:display [ fhir:v "Comparison Operators less-or-equal" ] ; fhir:definition [ fhir:v "The less or equal (<=) operator returns true if the first argument is less than or equal to the second argument." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#less-or-equal" ] ] ) ] [ fhir:code [ fhir:v "comparison-operators.not-equal" ] ; fhir:display [ fhir:v "Comparison Operators not-equal" ] ; fhir:definition [ fhir:v "The not equal (!=) operator returns true if its arguments are not the same value." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#not-equal" ] ] ) ] [ fhir:code [ fhir:v "comparison-operators.not-equivalent" ] ; fhir:display [ fhir:v "Comparison Operators not-equivalent" ] ; fhir:definition [ fhir:v "The not equivalent (!~) operator returns true if its arguments are not equivalent." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#not-equivalent" ] ] ) ] [ fhir:code [ fhir:v "comparison-operators.between" ] ; fhir:display [ fhir:v "Comparison Operators between" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#between" ] ] ) ] ) ] [ fhir:code [ fhir:v "arithmetic-operators" ] ; fhir:display [ fhir:v "Arithmetic Operators" ] ; fhir:definition [ fhir:v "Add, subtract, multiply, divide, mod, round, etc." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#arithmetic-operators" ] ] ) ; ( fhir:concept [ fhir:code [ fhir:v "arithmetic-operators.abs" ] ; fhir:display [ fhir:v "Arithmetic Operators abs" ] ; fhir:definition [ fhir:v "The Abs operator returns the absolute value of its argument." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#abs" ] ] ) ] [ fhir:code [ fhir:v "arithmetic-operators.add" ] ; fhir:display [ fhir:v "Arithmetic Operators add" ] ; fhir:definition [ fhir:v "The add (+) operator performs numeric addition of its arguments." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#add" ] ] ) ] [ fhir:code [ fhir:v "arithmetic-operators.ceiling" ] ; fhir:display [ fhir:v "Arithmetic Operators ceiling" ] ; fhir:definition [ fhir:v "The Ceiling operator returns the first integer greater than or equal to the argument." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#ceiling" ] ] ) ] [ fhir:code [ fhir:v "arithmetic-operators.divide" ] ; fhir:display [ fhir:v "Arithmetic Operators divide" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#string-operators" ] ] ) ] [ fhir:code [ fhir:v "arithmetic-operators.floor" ] ; fhir:display [ fhir:v "Arithmetic Operators floor" ] ; fhir:definition [ fhir:v "The Floor operator returns the first integer less than or equal to the argument." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#floor" ] ] ) ] [ fhir:code [ fhir:v "arithmetic-operators.exp" ] ; fhir:display [ fhir:v "Arithmetic Operators exp" ] ; fhir:definition [ fhir:v "The Exp operator raises e to the power of its argument." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#exp" ] ] ) ] [ fhir:code [ fhir:v "arithmetic-operators.highboundary" ] ; fhir:display [ fhir:v "Arithmetic Operators highboundary" ] ; fhir:definition [ fhir:v "The HighBoundary function returns the greatest possible value of the input to the specified precision." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.5" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#highboundary" ] ] ) ] [ fhir:code [ fhir:v "arithmetic-operators.log" ] ; fhir:display [ fhir:v "Arithmetic Operators log" ] ; fhir:definition [ fhir:v "The Log operator computes the logarithm of its first argument, using the second argument as the base." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#log" ] ] ) ] [ fhir:code [ fhir:v "arithmetic-operators.lowboundary" ] ; fhir:display [ fhir:v "Arithmetic Operators lowboundary" ] ; fhir:definition [ fhir:v "The LowBoundary function returns the least possible value of the input to the specified precision." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.5" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#lowboundary" ] ] ) ] [ fhir:code [ fhir:v "arithmetic-operators.ln" ] ; fhir:display [ fhir:v "Arithmetic Operators ln" ] ; fhir:definition [ fhir:v "The Ln operator computes the natural logarithm of its argument." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#ln" ] ] ) ] [ fhir:code [ fhir:v "arithmetic-operators.maximum" ] ; fhir:display [ fhir:v "Arithmetic Operators maximum" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#maximum" ] ] ) ] [ fhir:code [ fhir:v "arithmetic-operators.minimum" ] ; fhir:display [ fhir:v "Arithmetic Operators minimum" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#minimum" ] ] ) ] [ fhir:code [ fhir:v "arithmetic-operators.mod" ] ; fhir:display [ fhir:v "Arithmetic Operators mod" ] ; fhir:definition [ fhir:v "The mod operator computes the remainder of the division of its arguments." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#mod" ] ] ) ] [ fhir:code [ fhir:v "arithmetic-operators.multiply" ] ; fhir:display [ fhir:v "Arithmetic Operators multiply" ] ; fhir:definition [ fhir:v "The multiply (*) operator performs numeric multiplication of its arguments." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#multiply" ] ] ) ] [ fhir:code [ fhir:v "arithmetic-operators.negate" ] ; fhir:display [ fhir:v "Arithmetic Operators negate" ] ; fhir:definition [ fhir:v "The negate (-) operator returns the negative of its argument." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#negate" ] ] ) ] [ fhir:code [ fhir:v "arithmetic-operators.precision" ] ; fhir:display [ fhir:v "Arithmetic Operators precision" ] ; fhir:definition [ fhir:v "The Precision function returns the number of digits of precision in the input value." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.5" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#precision" ] ] ) ] [ fhir:code [ fhir:v "arithmetic-operators.predecessor" ] ; fhir:display [ fhir:v "Arithmetic Operators predecessor" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#predecessor" ] ] ) ] [ fhir:code [ fhir:v "arithmetic-operators.power" ] ; fhir:display [ fhir:v "Arithmetic Operators power" ] ; fhir:definition [ fhir:v "The power (^) operator raises the first argument to the power given by the second argument." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#power" ] ] ) ] [ fhir:code [ fhir:v "arithmetic-operators.round" ] ; fhir:display [ fhir:v "Arithmetic Operators round" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#round" ] ] ) ] [ fhir:code [ fhir:v "arithmetic-operators.subtract" ] ; fhir:display [ fhir:v "Arithmetic Operators subtract" ] ; fhir:definition [ fhir:v "The subtract (-) operator performs numeric subtraction of its arguments." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#subtract" ] ] ) ] [ fhir:code [ fhir:v "arithmetic-operators.successor" ] ; fhir:display [ fhir:v "Arithmetic Operators successor" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#successor" ] ] ) ] [ fhir:code [ fhir:v "arithmetic-operators.truncate" ] ; fhir:display [ fhir:v "Arithmetic Operators truncate" ] ; fhir:definition [ fhir:v "The Truncate operator returns the integer component of its argument." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#truncate" ] ] ) ] [ fhir:code [ fhir:v "arithmetic-operators.div" ] ; fhir:display [ fhir:v "Arithmetic Operators div" ] ; fhir:definition [ fhir:v "The div operator performs truncated division of its arguments." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#div" ] ] ) ] ) ] [ fhir:code [ fhir:v "string-operators" ] ; fhir:display [ fhir:v "String Operators" ] ; fhir:definition [ fhir:v "Length, substring, startsWith, endsWith, matches, replaceMatches, etc." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#string-operators" ] ] ) ; ( fhir:concept [ fhir:code [ fhir:v "string-operators.combine" ] ; fhir:display [ fhir:v "String Operators combine" ] ; fhir:definition [ fhir:v "The Combine operator combines a list of strings, optionally separating each string with the given separator." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#combine" ] ] ) ] [ fhir:code [ fhir:v "string-operators.concatenate" ] ; fhir:display [ fhir:v "String Operators concatenate" ] ; fhir:definition [ fhir:v "The concatenate (+ or &) operator performs string concatenation of its arguments." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#concatenate" ] ] ) ] [ fhir:code [ fhir:v "string-operators.endwith" ] ; fhir:display [ fhir:v "String Operators endwith" ] ; fhir:definition [ fhir:v "The EndsWith operator returns true if the given string ends with the given suffix." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#endwith" ] ] ) ] [ fhir:code [ fhir:v "string-operators.indexer" ] ; fhir:display [ fhir:v "String Operators indexer" ] ; fhir:definition [ fhir:v "The indexer ([]) operator returns the character at the indexth position in a string." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#indexer" ] ] ) ] [ fhir:code [ fhir:v "string-operators.lastpositionof" ] ; fhir:display [ fhir:v "String Operators lastpositionof" ] ; fhir:definition [ fhir:v "The LastPositionOf operator returns the 0-based index of the last appearance of the given pattern in the given string." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#lastpositionof" ] ] ) ] [ fhir:code [ fhir:v "string-operators.length" ] ; fhir:display [ fhir:v "String Operators length" ] ; fhir:definition [ fhir:v "The Length operator returns the number of characters in a string." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#length" ] ] ) ] [ fhir:code [ fhir:v "string-operators.lower" ] ; fhir:display [ fhir:v "String Operators lower" ] ; fhir:definition [ fhir:v "The Lower operator returns the given string with all characters converted to their lower case equivalents." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#lower" ] ] ) ] [ fhir:code [ fhir:v "string-operators.matches" ] ; fhir:display [ fhir:v "String Operators matches" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#matches" ] ] ) ] [ fhir:code [ fhir:v "string-operators.positionof" ] ; fhir:display [ fhir:v "String Operators positionof" ] ; fhir:definition [ fhir:v "The PositionOf operator returns the 0-based index of the given pattern in the given string." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#positionof" ] ] ) ] [ fhir:code [ fhir:v "string-operators.replacematches" ] ; fhir:display [ fhir:v "String Operators replacematches" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#replacematches" ] ] ) ] [ fhir:code [ fhir:v "string-operators.split" ] ; fhir:display [ fhir:v "String Operators split" ] ; fhir:definition [ fhir:v "The Split operator splits a string into a list of strings using a separator." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#split" ] ] ) ] [ fhir:code [ fhir:v "string-operators.splitonmatches" ] ; fhir:display [ fhir:v "String Operators splitonmatches" ] ; fhir:definition [ fhir:v "The SplitOnMatches operator splits a string into a list of strings using a separator that is defined by a regular expression pattern." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.3" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#splitonmatches" ] ] ) ] [ fhir:code [ fhir:v "string-operators.startswith" ] ; fhir:display [ fhir:v "String Operators startswith" ] ; fhir:definition [ fhir:v "The StartsWith operator returns true if the given string starts with the given prefix." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#startswith" ] ] ) ] [ fhir:code [ fhir:v "string-operators.substring" ] ; fhir:display [ fhir:v "String Operators substring" ] ; fhir:definition [ fhir:v "The Substring operator returns the string within stringToSub, starting at the 0-based index startIndex, and consisting of length characters." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#substring" ] ] ) ] [ fhir:code [ fhir:v "string-operators.upper" ] ; fhir:display [ fhir:v "String Operators upper" ] ; fhir:definition [ fhir:v "The Upper operator returns the given string with all characters converted to their upper case equivalents." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#upper" ] ] ) ] ) ] [ fhir:code [ fhir:v "date-and-time-operators" ] ; fhir:display [ fhir:v "Date and Time Operators" ] ; fhir:definition [ fhir:v "Date/time arithmetic, components, now/today, comparisons, etc." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#date-and-time-operators" ] ] ) ; ( fhir:concept [ fhir:code [ fhir:v "date-and-time-operators.add" ] ; fhir:display [ fhir:v "Date and Time Operators add" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#add" ] ] ) ] [ fhir:code [ fhir:v "date-and-time-operators.after" ] ; fhir:display [ fhir:v "Date and Time Operators after" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#after" ] ] ) ] [ fhir:code [ fhir:v "date-and-time-operators.before" ] ; fhir:display [ fhir:v "Date and Time Operators before" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#before" ] ] ) ] [ fhir:code [ fhir:v "date-and-time-operators.date" ] ; fhir:display [ fhir:v "Date and Time Operators date" ] ; fhir:definition [ fhir:v "The Date operator constructs a date value from the given components." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#date" ] ] ) ] [ fhir:code [ fhir:v "date-and-time-operators.datetime" ] ; fhir:display [ fhir:v "Date and Time Operators datetime" ] ; fhir:definition [ fhir:v "The DateTime operator constructs a DateTime value from the given components." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#datetime" ] ] ) ] [ fhir:code [ fhir:v "date-and-time-operators.from" ] ; fhir:display [ fhir:v "Date and Time Operators from" ] ; fhir:definition [ fhir:v "The component-from operator returns the specified component of the argument." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#from" ] ] ) ] [ fhir:code [ fhir:v "date-and-time-operators.difference" ] ; fhir:display [ fhir:v "Date and Time Operators difference" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#difference" ] ] ) ] [ fhir:code [ fhir:v "date-and-time-operators.duration" ] ; fhir:display [ fhir:v "Date and Time Operators duration" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#duration" ] ] ) ] [ fhir:code [ fhir:v "date-and-time-operators.now" ] ; fhir:display [ fhir:v "Date and Time Operators now" ] ; fhir:definition [ fhir:v "The Now operator returns the date and time of the start timestamp associated with the evaluation request." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#now" ] ] ) ] [ fhir:code [ fhir:v "date-and-time-operators.on-or-after" ] ; fhir:display [ fhir:v "Date and Time Operators on or after" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#on-or-after" ] ] ) ] [ fhir:code [ fhir:v "date-and-time-operators.on-or-before" ] ; fhir:display [ fhir:v "Date and Time Operators on or before" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#on-or-before" ] ] ) ] [ fhir:code [ fhir:v "date-and-time-operators.same-as" ] ; fhir:display [ fhir:v "Date and Time Operators same as" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#same-as" ] ] ) ] [ fhir:code [ fhir:v "date-and-time-operators.same-or-after" ] ; fhir:display [ fhir:v "Date and Time Operators same or after" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#same-or-after" ] ] ) ] [ fhir:code [ fhir:v "date-and-time-operators.same-or-before" ] ; fhir:display [ fhir:v "Date and Time Operators same or before" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#same-or-before" ] ] ) ] [ fhir:code [ fhir:v "date-and-time-operators.subtract" ] ; fhir:display [ fhir:v "Date and Time Operators subtract" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#subtract" ] ] ) ] [ fhir:code [ fhir:v "date-and-time-operators.time" ] ; fhir:display [ fhir:v "Date and Time Operators time" ] ; fhir:definition [ fhir:v "The Time operator constructs a time value from the given components." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#time" ] ] ) ] [ fhir:code [ fhir:v "date-and-time-operators.timeofday" ] ; fhir:display [ fhir:v "Date and Time Operators timeofday" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#timeofday" ] ] ) ] [ fhir:code [ fhir:v "date-and-time-operators.today" ] ; fhir:display [ fhir:v "Date and Time Operators today" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#today" ] ] ) ] ) ] [ fhir:code [ fhir:v "interval-operators" ] ; fhir:display [ fhir:v "Interval Operators" ] ; fhir:definition [ fhir:v "contains, in, union, intersect, width, expand, etc." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3" ] ] ) ; ( fhir:concept [ fhir:code [ fhir:v "interval-operators.after" ] ; fhir:display [ fhir:v "Interval Operators after" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#after" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.before" ] ; fhir:display [ fhir:v "Interval Operators before" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#before" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.collapse" ] ; fhir:display [ fhir:v "Interval Operators collapse" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#collapse" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.contains" ] ; fhir:display [ fhir:v "Interval Operators contains" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#contains" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.end" ] ; fhir:display [ fhir:v "Interval Operators end" ] ; fhir:definition [ fhir:v "The End operator returns the ending point of an interval." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#end" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.ends" ] ; fhir:display [ fhir:v "Interval Operators ends" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#ends" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.equal" ] ; fhir:display [ fhir:v "Interval Operators equal" ] ; fhir:definition [ fhir: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" ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.equivalent" ] ; fhir:display [ fhir:v "Interval Operators equivalent" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#equivalent" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.except" ] ; fhir:display [ fhir:v "Interval Operators except" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#except" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.expand" ] ; fhir:display [ fhir:v "Interval Operators expand" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#expand" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.in" ] ; fhir:display [ fhir:v "Interval Operators in" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#in" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.includes" ] ; fhir:display [ fhir:v "Interval Operators includes" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#includes" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.included-in" ] ; fhir:display [ fhir:v "Interval Operators included in" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#included-in" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.intersect" ] ; fhir:display [ fhir:v "Interval Operators intersect" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#intersect" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.meets" ] ; fhir:display [ fhir:v "Interval Operators meets" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#meets" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.not-equal" ] ; fhir:display [ fhir:v "Interval Operators not equal" ] ; fhir:definition [ fhir:v "The not equal (!=) operator for intervals returns true if its arguments are not the same value." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#not-equal" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.not-equivalent" ] ; fhir:display [ fhir:v "Interval Operators not equivalent" ] ; fhir:definition [ fhir:v "The not equivalent (!~) operator for intervals returns true if its arguments are not equivalent." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#not-equivalent" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.on-or-after" ] ; fhir:display [ fhir:v "Interval Operators on or after" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#on-or-after" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.on-or-before" ] ; fhir:display [ fhir:v "Interval Operators on or before" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#on-or-before" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.overlaps" ] ; fhir:display [ fhir:v "Interval Operators overlaps" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#overlaps" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.point-from" ] ; fhir:display [ fhir:v "Interval Operators point from" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#point-from" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.properly-includes" ] ; fhir:display [ fhir:v "Interval Operators properly includes" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#properly-includes" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.properly-included-in" ] ; fhir:display [ fhir:v "Interval Operators properly included in" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#included-in" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.same-as" ] ; fhir:display [ fhir:v "Interval Operators same as" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#same-as" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.same-or-after" ] ; fhir:display [ fhir:v "Interval Operators same or after" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#same-or-after" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.same-or-before" ] ; fhir:display [ fhir:v "Interval Operators same or before" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#same-or-before" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.size" ] ; fhir:display [ fhir:v "Interval Operators size" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#size" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.start" ] ; fhir:display [ fhir:v "Interval Operators start" ] ; fhir:definition [ fhir:v "The Start operator returns the starting point of an interval." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#start" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.starts" ] ; fhir:display [ fhir:v "Interval Operators starts" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#starts" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.union" ] ; fhir:display [ fhir:v "Interval Operators union" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#union" ] ] ) ] [ fhir:code [ fhir:v "interval-operators.width" ] ; fhir:display [ fhir:v "Interval Operators width" ] ; fhir:definition [ fhir: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)." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#width" ] ] ) ] ) ] [ fhir:code [ fhir:v "list-operators" ] ; fhir:display [ fhir:v "List Operators" ] ; fhir:definition [ fhir:v "size, first/last, contains, union/intersect/except, map/filter/distinct, sort/reverse/zip, etc." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#list-operators" ] ] ) ; ( fhir:concept [ fhir:code [ fhir:v "list-operators.contains" ] ; fhir:display [ fhir:v "List Operators contains" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#contains" ] ] ) ] [ fhir:code [ fhir:v "list-operators.distinct" ] ; fhir:display [ fhir:v "List Operators distinct" ] ; fhir:definition [ fhir:v "The distinct operator returns the given list with duplicates eliminated using equality semantics." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#distinct" ] ] ) ] [ fhir:code [ fhir:v "list-operators.equal" ] ; fhir:display [ fhir:v "List Operators equal" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#equal" ] ] ) ] [ fhir:code [ fhir:v "list-operators.equivalent" ] ; fhir:display [ fhir:v "List Operators equivalent" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#equivalent" ] ] ) ] [ fhir:code [ fhir:v "list-operators.except" ] ; fhir:display [ fhir:v "List Operators except" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#except" ] ] ) ] [ fhir:code [ fhir:v "list-operators.exists" ] ; fhir:display [ fhir:v "List Operators exists" ] ; fhir:definition [ fhir:v "The exists operator returns true if the list contains any non-null elements." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#exists" ] ] ) ] [ fhir:code [ fhir:v "list-operators.flatten" ] ; fhir:display [ fhir:v "List Operators flatten" ] ; fhir:definition [ fhir:v "The flatten operator flattens a list of lists into a single list." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#flatten" ] ] ) ] [ fhir:code [ fhir:v "list-operators.first" ] ; fhir:display [ fhir:v "List Operators first" ] ; fhir:definition [ fhir:v "The First operator returns the first element in a list. The operator is equivalent to invoking the indexer with an index of 0." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#first" ] ] ) ] [ fhir:code [ fhir:v "list-operators.in" ] ; fhir:display [ fhir:v "List Operators in" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#in" ] ] ) ] [ fhir:code [ fhir:v "list-operators.includes" ] ; fhir:display [ fhir:v "List Operators includes" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#includes" ] ] ) ] [ fhir:code [ fhir:v "list-operators.included_in" ] ; fhir:display [ fhir:v "List Operators included in" ] ; fhir:definition [ fhir:v "The included in operator for lists returns true if every element of the first list is in the second list using equality semantics." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#included-in" ] ] ) ] [ fhir:code [ fhir:v "list-operators.indexer" ] ; fhir:display [ fhir:v "List Operators indexer" ] ; fhir:definition [ fhir:v "The indexer ([]) operator returns the element at the indexth position in a list." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#indexer" ] ] ) ] [ fhir:code [ fhir:v "list-operators.indexof" ] ; fhir:display [ fhir:v "List Operators IndexOf" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#indexof" ] ] ) ] [ fhir:code [ fhir:v "list-operators.intersect" ] ; fhir:display [ fhir:v "List Operators intersect" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#intersect" ] ] ) ] [ fhir:code [ fhir:v "list-operators.last" ] ; fhir:display [ fhir:v "List Operators last" ] ; fhir:definition [ fhir: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" ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#last" ] ] ) ] [ fhir:code [ fhir:v "list-operators.length" ] ; fhir:display [ fhir:v "List Operators length" ] ; fhir:definition [ fhir:v "The Length operator returns the number of elements in a list." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#length" ] ] ) ] [ fhir:code [ fhir:v "list-operators.not_equal" ] ; fhir:display [ fhir:v "List Operators not equal" ] ; fhir:definition [ fhir:v "The not equal (!=) operator for lists returns true if its arguments are not the same value." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#not_equal" ] ] ) ] [ fhir:code [ fhir:v "list-operators.not_equivalent" ] ; fhir:display [ fhir:v "List Operators not equivalent" ] ; fhir:definition [ fhir:v "The not equivalent (!~) operator for lists returns true if its arguments are not equivalent." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#not_equivalent" ] ] ) ] [ fhir:code [ fhir:v "list-operators.properly_includes" ] ; fhir:display [ fhir:v "List Operators properly includes" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#properly_includes" ] ] ) ] [ fhir:code [ fhir:v "list-operators.properly_included_in" ] ; fhir:display [ fhir:v "List Operators properly included in" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#properly_included_in" ] ] ) ] [ fhir:code [ fhir:v "list-operators.singleton_from" ] ; fhir:display [ fhir:v "List Operators singleton from" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#singleton_from" ] ] ) ] [ fhir:code [ fhir:v "list-operators.skip" ] ; fhir:display [ fhir:v "List Operators skip" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#skip" ] ] ) ] [ fhir:code [ fhir:v "list-operators.tail" ] ; fhir:display [ fhir:v "List Operators tail" ] ; fhir:definition [ fhir:v "The Tail operator returns all but the first element from the given list. If the list is empty, the result is empty." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#tail" ] ] ) ] [ fhir:code [ fhir:v "list-operators.take" ] ; fhir:display [ fhir:v "List Operators take" ] ; fhir:definition [ fhir: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." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#take" ] ] ) ] [ fhir:code [ fhir:v "list-operators.union" ] ; fhir:display [ fhir:v "List Operators union" ] ; fhir:definition [ fhir:v "The union operator for lists returns a list with all unique elements from both arguments." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#union" ] ] ) ] ) ] [ fhir:code [ fhir:v "aggregate-functions" ] ; fhir:display [ fhir:v "Aggregate Functions" ] ; fhir:definition [ fhir:v "count, sum, min, max, average, median, mode, etc." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#aggregate-functions" ] ] ) ] [ fhir:code [ fhir:v "clinical-operators" ] ; fhir:display [ fhir:v "Clinical Operators" ] ; fhir:definition [ fhir:v "Retrieve/terminology functions; temporal/duration in clinical context." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#clinical-operators" ] ] ) ] [ fhir:code [ fhir:v "diagnostic-operators" ] ; fhir:display [ fhir:v "Diagnostic Operators" ] ; fhir:definition [ fhir:v "Errors and messaging functions." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#errors-and-messaging" ] ] ) ] [ fhir:code [ fhir:v "single-source-query" ] ; fhir:display [ fhir:v "Single source query" ] ; fhir:definition [ fhir:v "Query over one source." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/74-queryevaluation.html#evaluate-sources" ] ] ) ] [ fhir:code [ fhir:v "relationships-query" ] ; fhir:display [ fhir:v "Relationships query" ] ; fhir:definition [ fhir:v "Query involving two or more sources." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/74-queryevaluation.html#evaluate-sources" ] ] ) ] [ fhir:code [ fhir:v "let-clause-query" ] ; fhir:display [ fhir:v "Let clause query" ] ; fhir:definition [ fhir:v "Introduce local bindings." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/74-queryevaluation.html#let-clause" ] ] ) ] [ fhir:code [ fhir:v "where-clause-query" ] ; fhir:display [ fhir:v "Where clause query" ] ; fhir:definition [ fhir:v "Filter using Boolean conditions." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/74-queryevaluation.html#where-clause" ] ] ) ] [ fhir:code [ fhir:v "return-clause-query" ] ; fhir:display [ fhir:v "Return clause query" ] ; fhir:definition [ fhir:v "Specify the shape/content of returned rows." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/74-queryevaluation.html#return-clause" ] ] ) ] [ fhir:code [ fhir:v "aggregate-clause-query" ] ; fhir:display [ fhir:v "Aggregate clause query" ] ; fhir:definition [ fhir:v "Reduce rows to a summary value." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/74-queryevaluation.html#aggregate-clause" ] ] ) ] [ fhir:code [ fhir:v "multi-source-query" ] ; fhir:display [ fhir:v "Multi source query" ] ; fhir:definition [ fhir:v "Query using two or more sources." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/74-queryevaluation.html#evaluate-sources" ] ] ) ] [ fhir:code [ fhir:v "unfiltered-context-retrieve" ] ; fhir:display [ fhir:v "Unfiltered context retrieve" ] ; fhir:definition [ fhir:v "All data of a type in the current context." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/05-languagesemantics.html#language-capabilities" ] ] ) ] [ fhir:code [ fhir:v "terminology-based-retrieve" ] ; fhir:display [ fhir:v "Terminology-based retrieve" ] ; fhir:definition [ fhir:v "Retrieve filtered by ValueSet/CodeSystem/Code." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/05-languagesemantics.html#retrieve-paths" ] ] ) ] [ fhir:code [ fhir:v "valueset-terminology-target-retrieve" ] ; fhir:display [ fhir:v "Valueset terminology target retrieve" ] ; fhir:definition [ fhir:v "Retrieve filtered by a ValueSet reference." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/05-languagesemantics.html#retrieve-paths" ] ] ) ] [ fhir:code [ fhir:v "codesystem-terminology-target-retrieve" ] ; fhir:display [ fhir:v "CodeSystem terminology target retrieve" ] ; fhir:definition [ fhir:v "Retrieve filtered by a CodeSystem." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/05-languagesemantics.html#retrieve-paths" ] ] ) ] [ fhir:code [ fhir:v "code-terminology-target-retrieve" ] ; fhir:display [ fhir:v "Code terminology target retrieve" ] ; fhir:definition [ fhir:v "Retrieve filtered by a single Code." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/05-languagesemantics.html#retrieve-paths" ] ] ) ] [ fhir:code [ fhir:v "searchpath-retrieve" ] ; fhir:display [ fhir:v "Searchpath retrieve" ] ; fhir:definition [ fhir:v "Retrieve using a search path expression." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/05-languagesemantics.html#retrieve-paths" ] ] ) ] [ fhir:code [ fhir:v "include-retrieve" ] ; fhir:display [ fhir:v "Include retrieve" ] ; fhir:definition [ fhir:v "Retrieve that includes related records via references." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/05-languagesemantics.html#retrieve-paths" ] ] ) ] [ fhir:code [ fhir:v "related-context-retrieve" ] ; fhir:display [ fhir:v "Related-context retrieve" ] ; fhir:definition [ fhir:v "Retrieve scoped to a related context entity." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/05-languagesemantics.html#retrieve-paths" ] ] ) ] [ fhir:code [ fhir:v "profile-based-retrieve" ] ; fhir:display [ fhir:v "Profile-based retrieve" ] ; fhir:definition [ fhir:v "Retrieve constrained to a profile." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/42-conformancelevels.html#strict-conformance" ] ] ) ] [ fhir:code [ fhir:v "tuple" ] ; fhir:display [ fhir:v "Tuple" ] ; fhir:definition [ fhir:v "Structured type with named elements." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/63-expressionlanguagesemantics.html#structured-types" ] ] ) ] [ fhir:code [ fhir:v "choice" ] ; fhir:display [ fhir:v "Choice" ] ; fhir:definition [ fhir:v "Value that may be one of several specified types." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/63-expressionlanguagesemantics.html#choice-types" ] ] ) ] [ fhir:code [ fhir:v "list<T>" ] ; fhir:display [ fhir:v "List<T>" ] ; fhir:definition [ fhir:v "Ordered collection of elements of type T." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/63-expressionlanguagesemantics.html#collection-types" ] ] ) ] [ fhir:code [ fhir:v "interval<T>" ] ; fhir:display [ fhir:v "Interval<T>" ] ; fhir:definition [ fhir:v "Range of values of type T." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3" ] ] ) ] [ fhir:code [ fhir:v "interval<integer>" ] ; fhir:display [ fhir:v "Interval<Integer>" ] ; fhir:definition [ fhir:v "Range of integers." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3" ] ] ) ] [ fhir:code [ fhir:v "interval<decimal>" ] ; fhir:display [ fhir:v "Interval<Decimal>" ] ; fhir:definition [ fhir:v "Range of decimal numbers." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3" ] ] ) ] [ fhir:code [ fhir:v "interval<date>" ] ; fhir:display [ fhir:v "Interval<Date>" ] ; fhir:definition [ fhir:v "Range of dates (no time)." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3" ] ] ) ] [ fhir:code [ fhir:v "interval<time>" ] ; fhir:display [ fhir:v "Interval<Time>" ] ; fhir:definition [ fhir:v "Range of times of day (no date)." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3" ] ] ) ] [ fhir:code [ fhir:v "interval<datetime>" ] ; fhir:display [ fhir:v "Interval<DateTime>" ] ; fhir:definition [ fhir:v "Range of full date/times." ] ; ( fhir:property [ fhir:code [ fhir:v "version" ] ; fhir:value [ a fhir:string ; fhir:v "1.0" ] ] [ fhir:code [ fhir:v "reference" ] ; fhir:value [ a fhir:string ; fhir:v "https://cql.hl7.org/09-b-cqlreference.html#interval-operators-3" ] ] ) ] ) . #
IG © 2014+ Clinical Decision Support WG. Package hl7.cql#2.0.0-ballot based on FHIR 4.0.1. Generated 2025-10-24
Links: Table of Contents |
QA Report |
License |
Version History |
Propose a change