minor vs logging fixes

This commit is contained in:
Grahame Grieve 2023-12-03 20:04:25 +11:00
parent 006958cf88
commit 3eb8ad3ab1
2 changed files with 2 additions and 2 deletions

View File

@ -1229,7 +1229,7 @@ public class ValueSetRenderer extends TerminologyRenderer {
} else if ("concept".equals(f.getProperty()) && inc.hasSystem()) { } else if ("concept".equals(f.getProperty()) && inc.hasSystem()) {
wli.addText(f.getValue()); wli.addText(f.getValue());
ValidationResult vr = getContext().getWorker().validateCode(getContext().getTerminologyServiceOptions(), inc.getSystem(), inc.getVersion(), f.getValue(), null); ValidationResult vr = getContext().getWorker().validateCode(getContext().getTerminologyServiceOptions(), inc.getSystem(), inc.getVersion(), f.getValue(), null);
if (vr.isOk()) { if (vr.isOk() && vr.getDisplay() != null) {
wli.tx(" ("+vr.getDisplay()+")"); wli.tx(" ("+vr.getDisplay()+")");
} }
} }

View File

@ -750,7 +750,7 @@ public class TerminologyCache {
} }
public String summary(Coding code) { public String summary(Coding code) {
return code.getSystem()+"#"+code.getCode()+": \""+code.getDisplay()+"\""; return code.getSystem()+"#"+code.getCode()+(code.hasDisplay() ? ": \""+code.getDisplay()+"\"" : "");
} }
public String summary(CodeableConcept code) { public String summary(CodeableConcept code) {