pub enum Invocation {
Member(String),
Function(String, Vec<Expression>),
This,
Index,
Total,
}Expand description
Represents an invocation in a FHIRPath expression
An invocation represents different ways to reference or call something in FHIRPath. This includes member access, function calls, and special contextual identifiers like $this, $index, and $total.
Invocations are fundamental building blocks in FHIRPath expressions and are used for navigation, function application, and context references.
Variants§
Member(String)
A member access, referencing a property by name
(e.g., Patient.name, Observation.value)
Function(String, Vec<Expression>)
A function call with optional arguments
(e.g., first(), where(value > 5), substring(2, 5))
This
A reference to the current focus item ($this)
Used in expressions like $this.name or in lambda expressions
Index
A reference to the current index ($index)
Used in expressions like $index > 5 in filtering operations
Total
A reference to the current aggregate total ($total) Used in the aggregate() function to access the running total
Trait Implementations§
Source§impl Clone for Invocation
impl Clone for Invocation
Source§fn clone(&self) -> Invocation
fn clone(&self) -> Invocation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Invocation
impl Debug for Invocation
Source§impl PartialEq for Invocation
impl PartialEq for Invocation
Source§fn eq(&self, other: &Invocation) -> bool
fn eq(&self, other: &Invocation) -> bool
self and other values to be equal, and is used by ==.