mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-10 14:54:46 +00:00
fix wrong collection type checking FHIRPath subsetOf parameter type
This commit is contained in:
parent
fc8be53260
commit
564a71fe1c
@ -3253,7 +3253,7 @@ public class FHIRPathEngine {
|
|||||||
return new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_Boolean);
|
return new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_Boolean);
|
||||||
}
|
}
|
||||||
case SubsetOf : {
|
case SubsetOf : {
|
||||||
checkParamTypes(exp, exp.getFunction().toCode(), paramTypes, focus);
|
checkParamTypes(exp, exp.getFunction().toCode(), paramTypes, focus.toUnordered());
|
||||||
return new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_Boolean);
|
return new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_Boolean);
|
||||||
}
|
}
|
||||||
case SupersetOf : {
|
case SupersetOf : {
|
||||||
|
@ -405,6 +405,16 @@ public class TypeDetails {
|
|||||||
result.types.addAll(types);
|
result.types.addAll(types);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
public TypeDetails toOrdered() {
|
||||||
|
TypeDetails result = new TypeDetails(CollectionStatus.ORDERED);
|
||||||
|
result.types.addAll(types);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
public TypeDetails toUnordered() {
|
||||||
|
TypeDetails result = new TypeDetails(CollectionStatus.UNORDERED);
|
||||||
|
result.types.addAll(types);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
public CollectionStatus getCollectionStatus() {
|
public CollectionStatus getCollectionStatus() {
|
||||||
return collectionStatus;
|
return collectionStatus;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user