This commit is contained in:
Grahame Grieve 2023-12-15 02:48:27 -05:00
commit d59080b45f
2 changed files with 4 additions and 2 deletions

View File

@ -693,7 +693,7 @@ public class ValueSetValidator extends ValueSetProcessBase {
if (cc == null) {
if (cs.getContent() == CodeSystemContentMode.FRAGMENT) {
String msg = context.formatMessage(I18nConstants.UNKNOWN_CODE__IN_FRAGMENT, code.getCode(), cs.getVersionedUrl());
return new ValidationResult(IssueSeverity.WARNING, msg, makeIssue(IssueSeverity.ERROR, IssueType.CODEINVALID, path+".code", msg));
return new ValidationResult(IssueSeverity.WARNING, msg, makeIssue(IssueSeverity.WARNING, IssueType.CODEINVALID, path+".code", msg));
} else {
String msg = context.formatMessage(I18nConstants.UNKNOWN_CODE__IN_, code.getCode(), cs.getVersionedUrl());
return new ValidationResult(IssueSeverity.ERROR, msg, makeIssue(IssueSeverity.ERROR, IssueType.CODEINVALID, path+".code", msg));

View File

@ -1132,7 +1132,9 @@ public class InstanceValidator extends BaseValidator implements IResourceValidat
return true;
if (s != null && s.isOk()) {
for (OperationOutcomeIssueComponent iss : s.getIssues()) {
txIssue(errors, "2023-08-19", s.getTxLink(), element.line(), element.col(), path, iss);
if (!iss.getDetails().getText().equals(s.getMessage())) {
txIssue(errors, "2023-08-19", s.getTxLink(), element.line(), element.col(), path, iss);
}
}
}
if (s.isOk()) {