The scoping for the `aliasAs` function has different needs to everything else, so has minor workaround.

This commit is contained in:
Brian Postlethwaite 2024-04-15 10:38:25 +10:00
parent 33d9304700
commit 49809ec6c2
1 changed files with 1 additions and 1 deletions

View File

@ -1540,7 +1540,7 @@ public class FHIRPathEngine {
}
break;
case Function:
List<Base> work2 = evaluateFunction(context, focus, exp);
List<Base> work2 = evaluateFunction("aliasAs".equals(exp.getName()) ? inContext : context, focus, exp);
work.addAll(work2);
break;
case Constant: