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 : {
|
case Item : {
|
||||||
checkOrdered(focus, "item", exp);
|
checkOrdered(focus, "item", exp);
|
||||||
checkParamTypes(exp, exp.getFunction().toCode(), paramTypes, new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_Integer));
|
checkParamTypes(exp, exp.getFunction().toCode(), paramTypes, new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_Integer));
|
||||||
return focus;
|
return focus.toSingleton();
|
||||||
}
|
}
|
||||||
case As : {
|
case As : {
|
||||||
checkParamTypes(exp, exp.getFunction().toCode(), paramTypes, new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_String));
|
checkParamTypes(exp, exp.getFunction().toCode(), paramTypes, new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_String));
|
||||||
|
|
Loading…
Reference in New Issue