Missed the total and index copying to the child context.

This commit is contained in:
Brian Postlethwaite 2024-04-12 16:06:03 +10:00
parent af6759dd4c
commit 33d9304700
1 changed files with 2 additions and 0 deletions

View File

@ -4743,6 +4743,8 @@ public class FHIRPathEngine {
private ExecutionContext contextForParameter(ExecutionContext context) {
ExecutionContext newContext = new ExecutionContext(context.appInfo, context.focusResource, context.rootResource, context.context, context.aliases, context.thisItem);
newContext.total = context.total;
newContext.index = context.index;
// append all of the defined variables from the context into the new context
if (context.definedVariables != null) {
for (String s : context.definedVariables.keySet()) {