current static method

IterationContext current(
  1. Map<String, dynamic> passed
)

Implementation

static IterationContext current(Map<String, dynamic> passed) {
  final topRepeatContext = passed[_iterationKey];
  if (topRepeatContext == null) {
    throw FhirPathEvaluationException(
        r'No context for $this, $total, or $index is available.');
  }

  return topRepeatContext as IterationContext;
}