mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-09 22:34:42 +00:00
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…
x
Reference in New Issue
Block a user