mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-22 13:55:22 +00:00
Some updates to the loinc mapper
This commit is contained in:
parent
f0f93d2330
commit
d624556e18
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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(
|
||||
|
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -12,6 +12,7 @@
|
||||
latest versions (dependent HAPI modules listed in brackets):
|
||||
<![CDATA[
|
||||
<ul>
|
||||
<li>Hibernate (JPA): 5.2.12.Final -> 5.2.16.Final</li>
|
||||
<li>Javassist (JPA): 3.20.0-GA -> 3.22.0-GA</li>
|
||||
</ul>
|
||||
]]>
|
||||
|
Loading…
x
Reference in New Issue
Block a user