debugging fix

This commit is contained in:
Grahame Grieve 2020-04-04 00:02:53 +11:00
parent 31f80f29f8
commit 03be5d65a8
1 changed files with 3 additions and 1 deletions

View File

@ -3946,7 +3946,9 @@ public class InstanceValidator extends BaseValidator implements IResourceValidat
String id = element.getChildValue("id");
if (!Utilities.noString(id)) {
rule(errors, IssueType.BUSINESSRULE, element.line(), element.col(), stack.getLiteralPath(), !stack.getIds().containsKey(id) || stack.getIds().get(id) == element, I18nConstants.DUPLICATE_ID, id);
if (stack.getIds().containsKey(id) && stack.getIds().get(id) != element) {
rule(errors, IssueType.BUSINESSRULE, element.line(), element.col(), stack.getLiteralPath(), false, I18nConstants.DUPLICATE_ID, id);
}
stack.getIds().put(id, element);
}
if (definition.getPath().equals("StructureDefinition.snapshot")) {