tupleTypeSpecifier

Specifies a named tuple type with one or more named element types. Tuples provide anonymous structured data types in CQL.

Examples

Simple name/age tuple

parameter "Person" Tuple { name String, age Integer }

Tuple with nested type

define function "Summary"() returns Tuple { period Interval<DateTime>, count Integer }:
  Tuple { period: "Measurement Period", count: 42 }
Railroad Diagram
100%
Tuple { tupleElementDefinition , }

scroll to zoom · drag to pan · click green rules or blue tokens to navigate

EBNF

tupleTypeSpecifier
  : 'Tuple' '{' tupleElementDefinition (',' tupleElementDefinition)* '}'
  ;

Used In