choiceTypeSpecifier

Specifies a choice type representing a value that may be any one of several types. Used for polymorphic values such as FHIR polymorphic elements.

Examples

Choice of integer or decimal

parameter "Value" Choice<Integer, Decimal>

Choice of string or code (polymorphic FHIR element)

define function "GetValue"(obs FHIR.Observation) returns Choice<String, FHIR.CodeableConcept>:
  obs.value
Railroad Diagram
100%
Choice < typeSpecifier , >

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

EBNF

choiceTypeSpecifier
  : 'Choice' '<' typeSpecifier (',' typeSpecifier)* '>'
  ;

Used In