Some updates to the loinc mapper

This commit is contained in:
James Agnew 2018-04-06 09:50:18 -04:00
parent f0f93d2330
commit d624556e18
4 changed files with 12 additions and 3 deletions

View File

@ -36,6 +36,7 @@ public class LoincPartLinkHandler implements IRecordHandler {
private static final Logger ourLog = LoggerFactory.getLogger(LoincPartLinkHandler.class);
private final Map<String, TermConcept> myCode2Concept;
private final TermCodeSystemVersion myCodeSystemVersion;
private Long myPartCount;
public LoincPartLinkHandler(TermCodeSystemVersion theCodeSystemVersion, Map<String, TermConcept> theCode2concept) {
myCodeSystemVersion = theCodeSystemVersion;
@ -57,7 +58,14 @@ public class LoincPartLinkHandler implements IRecordHandler {
return;
}
if (partConcept == null) {
ourLog.warn("No part code: {}", partNumber);
if (myPartCount == null) {
myPartCount = myCode2Concept
.keySet()
.stream()
.filter(t->t.startsWith("LP"))
.count();
}
ourLog.debug("No part code: {} - Have {} part codes", partNumber, myPartCount);
return;
}

View File

@ -81,7 +81,7 @@ public class LoincPartRelatedCodeMappingHandler extends BaseHandler implements I
equivalence = Enumerations.ConceptMapEquivalence.WIDER;
break;
default:
throw new InternalErrorException("Unknown MapType: " + mapType);
throw new InternalErrorException("Unknown MapType '" + mapType + "' for PartNumber: " + partNumber);
}
addConceptMapEntry(

View File

@ -451,7 +451,7 @@
<jetty_version>9.4.8.v20171121</jetty_version>
<jsr305_version>3.0.2</jsr305_version>
<!--<hibernate_version>5.2.10.Final</hibernate_version>-->
<hibernate_version>5.2.12.Final</hibernate_version>
<hibernate_version>5.2.16.Final</hibernate_version>
<hibernate_validator_version>5.4.1.Final</hibernate_validator_version>
<!-- Update lucene version when you update hibernate-search version -->
<hibernate_search_version>5.7.1.Final</hibernate_search_version>

View File

@ -12,6 +12,7 @@
latest versions (dependent HAPI modules listed in brackets):
<![CDATA[
<ul>
<li>Hibernate (JPA): 5.2.12.Final -&gt; 5.2.16.Final</li>
<li>Javassist (JPA): 3.20.0-GA -&gt; 3.22.0-GA</li>
</ul>
]]>