fluentModifier

An optional modifier on a function definition that marks the function as fluent, allowing it to be called using dot-notation as a method on its first argument. For example, a fluent function F(x) can be called as x.F().

Examples

Fluent function called via dot notation

define fluent function "ToInterval"(period FHIR.Period) returns Interval<DateTime>:
  Interval[period."start".value, period."end".value]

Calling the fluent function

Encounter.period.ToInterval()
Railroad Diagram
100%
fluent

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

EBNF

fluentModifier
  : 'fluent'
  ;

Used In