Fix slow upload
This commit is contained in:
parent
74bca0562e
commit
52e3c9496e
|
@ -81,7 +81,7 @@ public class TerminologyLoaderSvcImpl implements IHapiTerminologyLoaderSvc {
|
|||
public static final String LOINC_GROUP_FILE = "Group.csv";
|
||||
public static final String LOINC_GROUP_TERMS_FILE = "GroupLoincTerms.csv";
|
||||
public static final String LOINC_PARENT_GROUP_FILE = "ParentGroup.csv";
|
||||
private static final int LOG_INCREMENT = 100000;
|
||||
private static final int LOG_INCREMENT = 1000;
|
||||
private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(TerminologyLoaderSvcImpl.class);
|
||||
|
||||
@Autowired
|
||||
|
|
|
@ -82,10 +82,9 @@ public abstract class BaseLoincHandler implements IRecordHandler {
|
|||
|
||||
String displayName = theDisplayName;
|
||||
if (isBlank(displayName)) {
|
||||
for (TermConcept next : myCode2Concept.values()) {
|
||||
if (next.getCode().equals(theCode)) {
|
||||
displayName = next.getDisplay();
|
||||
}
|
||||
TermConcept concept = myCode2Concept.get(theCode);
|
||||
if (concept != null) {
|
||||
displayName = concept.getDisplay();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue