letClauseItem

A single named binding within a let clause. The identifier names the binding and the expression provides its value, which is evaluated once and reused wherever the name appears in the query.

Examples

Bind an interval to a name

from [Encounter] E
  let period: E.period

Bind a computed value

from [Observation] O
  let score: O.value as Quantity
Railroad Diagram
100%
identifier : expression

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

EBNF

letClauseItem
  : identifier ':' expression
  ;

Used In