mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-03-02 09:29:13 +00:00
Fix issue in FHIRPath .combine focus handling
This commit is contained in:
parent
8d826aba44
commit
93868669fe
@ -4826,7 +4826,7 @@ public class FHIRPathEngine {
|
|||||||
for (Base item : focus) {
|
for (Base item : focus) {
|
||||||
result.add(item);
|
result.add(item);
|
||||||
}
|
}
|
||||||
for (Base item : execute(context, focus, exp.getParameters().get(0), true)) {
|
for (Base item : execute(context, baseToList(context.thisItem), exp.getParameters().get(0), true)) {
|
||||||
result.add(item);
|
result.add(item);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
@ -4834,7 +4834,7 @@ public class FHIRPathEngine {
|
|||||||
|
|
||||||
private List<Base> funcIntersect(ExecutionContext context, List<Base> focus, ExpressionNode exp) throws FHIRException {
|
private List<Base> funcIntersect(ExecutionContext context, List<Base> focus, ExpressionNode exp) throws FHIRException {
|
||||||
List<Base> result = new ArrayList<Base>();
|
List<Base> result = new ArrayList<Base>();
|
||||||
List<Base> other = execute(context, focus, exp.getParameters().get(0), true);
|
List<Base> other = execute(context, baseToList(context.thisItem), exp.getParameters().get(0), true);
|
||||||
|
|
||||||
for (Base item : focus) {
|
for (Base item : focus) {
|
||||||
if (!doContains(result, item) && doContains(other, item)) {
|
if (!doContains(result, item) && doContains(other, item)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user