Add null check for shortName before adding designation. (#1396)

This commit is contained in:
Diederik Muylwyk 2019-07-25 11:06:02 -04:00 committed by GitHub
parent 3460069d38
commit d03fc0f61d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -34,8 +34,7 @@ import org.slf4j.LoggerFactory;
import java.util.Map;
import static org.apache.commons.lang3.StringUtils.isNotBlank;
import static org.apache.commons.lang3.StringUtils.trim;
import static org.apache.commons.lang3.StringUtils.*;
public class LoincHandler implements IRecordHandler {
@ -64,7 +63,7 @@ public class LoincHandler implements IRecordHandler {
TermConcept concept = new TermConcept(myCodeSystemVersion, code);
concept.setDisplay(display);
if (!display.equalsIgnoreCase(shortName)) {
if (isNotBlank(shortName) && !display.equalsIgnoreCase(shortName)) {
concept
.addDesignation()
.setUseDisplay("ShortName")