mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-09 06:14:45 +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);
|
||||
}
|
||||
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);
|
||||
}
|
||||
case SupersetOf : {
|
||||
|
@ -405,6 +405,16 @@ public class TypeDetails {
|
||||
result.types.addAll(types);
|
||||
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() {
|
||||
return collectionStatus;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user