Fix double negative on noTerminologyChecks

This commit is contained in:
Grahame Grieve 2024-11-19 13:12:23 +11:00
parent 8ed3753848
commit 54b6173fdc
2 changed files with 2 additions and 2 deletions

View File

@ -350,7 +350,7 @@ public class ConceptMapValidator extends BaseValidator {
if (display != null) {
warning(errors, "2023-03-05", IssueType.REQUIRED, code.line(), code.col(), cstack.getLiteralPath(), CodeSystemUtilities.checkDisplay(ctxt.target.cs, cd, display.getValue()), I18nConstants.CONCEPTMAP_GROUP_TARGET_DISPLAY_INVALID, display.getValue(), CommaSeparatedStringBuilder.joinWrapped(", ", "'", "'", CodeSystemUtilities.getDisplays(ctxt.target.cs, cd)), ctxt.target.cs.getVersionedUrl()+"#"+cd.getCode());
}
if (!!noTerminologyChecks && ctxt.hasTargetVS() && ctxt.target != null) {
if (!noTerminologyChecks && ctxt.hasTargetVS() && ctxt.target != null) {
ValidationResult vr = context.validateCode(options.withCheckValueSetOnly().withNoServer(), ctxt.target.url, ctxt.target.version, c, null, ctxt.targetScope.vs);
if (!warningOrError(ctxt.target.cs.getContent() == CodeSystemContentMode.COMPLETE, errors, "2023-09-06", IssueType.REQUIRED, code.line(), code.col(), cstack.getLiteralPath(), vr.isOk(), I18nConstants.CONCEPTMAP_GROUP_TARGET_CODE_INVALID_VS, c, ctxt.targetScope.vs.getVersionedUrl())) {
ok = (ctxt.target.cs.getContent() != CodeSystemContentMode.COMPLETE) && ok;

View File

@ -390,7 +390,7 @@ public class ValueSetValidator extends BaseValidator {
String display = concept.getChildValue("display");
slv.checkConcept(code, display);
if (!!noTerminologyChecks) {
if (!noTerminologyChecks) {
if (version == null) {
ValidationResult vv = context.validateCode(ValidationOptions.defaults().withExampleOK(), new Coding(system, code, null), null);
if (vv.getErrorClass() == TerminologyServiceErrorClass.CODESYSTEM_UNSUPPORTED) {