IifParser class

http://hl7.org/fhirpath/#iifcriterion-expression-true-result-collection-otherwise-result-collection-collection The iif function in FHIRPath is an immediate if, also known as a conditional operator (such as C’s ? : operator). The criterion expression is expected to evaluate to a Boolean. See: http://hl7.org/fhirpath/#singleton-evaluation-of-collections for rules of Boolean evaluation. Any collection with a single non-boolean item is true.

If criterion is true, the function returns the value of the true-result argument. If criterion is false or an empty collection, the function returns otherwise-result, unless the optional otherwise-result is not given, in which case the function returns an empty collection. Note that short-circuit behavior is expected in this function. In other words, true-result should only be evaluated if the criterion evaluates to true, and otherwise-result should only be evaluated otherwise. For implementations, this means delaying evaluation of the arguments.

Inheritance

Constructors

IifParser()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ParserList
getter/setter pairoverride

Methods

execute(List results, Map<String, dynamic> passed) List
The iterable, nested function that evaluates the entire FHIRPath expression one object at a time
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prettyPrint([int indent = 2]) String
Uses a rough approximation of reverse polish notation to render the parsed value of a FHIRPath in a more human readable way than verbosePrint, while still demonstrating how the expression was parsed and nested according to this package
override
toString() String
A string representation of this object.
override
verbosePrint(int indent) String
To print the entire parsed FHIRPath expression, this includes ALL of the Parsers that are used in this package by the names used in this package. These are not always synonymous with the FHIRPath specification (although they usually are), and include some parser classes that were created for ease of evaluation but are not included at all as objects in the official spec. I'm generally going to recommend that you use prettyPrint instead
override

Operators

operator ==(Object other) bool
The equality operator.
inherited