mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-18 10:55:22 +00:00
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_FILE = "Group.csv";
|
||||||
public static final String LOINC_GROUP_TERMS_FILE = "GroupLoincTerms.csv";
|
public static final String LOINC_GROUP_TERMS_FILE = "GroupLoincTerms.csv";
|
||||||
public static final String LOINC_PARENT_GROUP_FILE = "ParentGroup.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);
|
private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(TerminologyLoaderSvcImpl.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
@ -82,10 +82,9 @@ public abstract class BaseLoincHandler implements IRecordHandler {
|
|||||||
|
|
||||||
String displayName = theDisplayName;
|
String displayName = theDisplayName;
|
||||||
if (isBlank(displayName)) {
|
if (isBlank(displayName)) {
|
||||||
for (TermConcept next : myCode2Concept.values()) {
|
TermConcept concept = myCode2Concept.get(theCode);
|
||||||
if (next.getCode().equals(theCode)) {
|
if (concept != null) {
|
||||||
displayName = next.getDisplay();
|
displayName = concept.getDisplay();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user