mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-10 06:44:44 +00:00
Fix bug processing modified differentials
This commit is contained in:
parent
d29926b4a5
commit
ae7b962d29
@ -2176,9 +2176,9 @@ public class ProfileUtilities {
|
||||
protected boolean discriminatorMatches(List<ElementDefinitionSlicingDiscriminatorComponent> diff, List<ElementDefinitionSlicingDiscriminatorComponent> base) {
|
||||
if (diff.isEmpty() || base.isEmpty())
|
||||
return true;
|
||||
if (diff.size() != base.size())
|
||||
if (diff.size() < base.size())
|
||||
return false;
|
||||
for (int i = 0; i < diff.size(); i++)
|
||||
for (int i = 0; i < base.size(); i++)
|
||||
if (!matches(diff.get(i), base.get(i)))
|
||||
return false;
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user