fix type evaluation of .item() in FHIRPath
This commit is contained in:
parent
832906da13
commit
93c7c3da68
|
@ -3430,7 +3430,7 @@ public class FHIRPathEngine {
|
|||
case Item : {
|
||||
checkOrdered(focus, "item", exp);
|
||||
checkParamTypes(exp, exp.getFunction().toCode(), paramTypes, new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_Integer));
|
||||
return focus;
|
||||
return focus.toSingleton();
|
||||
}
|
||||
case As : {
|
||||
checkParamTypes(exp, exp.getFunction().toCode(), paramTypes, new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_String));
|
||||
|
|
Loading…
Reference in New Issue