Missed the total and index copying to the child context.
This commit is contained in:
parent
af6759dd4c
commit
33d9304700
|
@ -4743,6 +4743,8 @@ public class FHIRPathEngine {
|
||||||
|
|
||||||
private ExecutionContext contextForParameter(ExecutionContext context) {
|
private ExecutionContext contextForParameter(ExecutionContext context) {
|
||||||
ExecutionContext newContext = new ExecutionContext(context.appInfo, context.focusResource, context.rootResource, context.context, context.aliases, context.thisItem);
|
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
|
// append all of the defined variables from the context into the new context
|
||||||
if (context.definedVariables != null) {
|
if (context.definedVariables != null) {
|
||||||
for (String s : context.definedVariables.keySet()) {
|
for (String s : context.definedVariables.keySet()) {
|
||||||
|
|
Loading…
Reference in New Issue