fix type evaluation of .item() in FHIRPath

This commit is contained in:
Grahame Grieve 2024-10-23 23:00:13 +10:30
parent 832906da13
commit 93c7c3da68
1 changed files with 1 additions and 1 deletions

View File

@ -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));