IndexParser class
If the function takes an expression as a parameter, the function will evaluate the expression passed for the parameter with respect to each of the items in the input collection. These expressions may refer to the special $this and $index elements, which represent the item from the input collection currently under evaluation, and its index in the collection, respectively. For example, in name.given.where($this > 'ba' and $this < 'bc') the where() function will iterate over each item in the input collection (elements named given) and $this will be set to each item when the expression passed to where() is evaluated.
- Inheritance
-
- Object
- FhirPathParser
- IndexParser
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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.
inherited
-
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