Understand equal mappings

This commit is contained in:
James Agnew 2018-04-06 11:25:03 -04:00
parent 7334800684
commit 2f4bcfe5d6
1 changed files with 3 additions and 1 deletions

View File

@ -33,6 +33,7 @@ import org.hl7.fhir.r4.model.ValueSet;
import java.util.List;
import java.util.Map;
import static org.apache.commons.lang3.StringUtils.defaultString;
import static org.apache.commons.lang3.StringUtils.trim;
public class LoincPartRelatedCodeMappingHandler extends BaseHandler implements IRecordHandler {
@ -69,7 +70,8 @@ public class LoincPartRelatedCodeMappingHandler extends BaseHandler implements I
String extCodeSystemCopyrightNotice = trim(theRecord.get("ExtCodeSystemCopyrightNotice"));
Enumerations.ConceptMapEquivalence equivalence;
switch (mapType) {
switch (trim(defaultString(mapType))) {
case "":
case "Exact":
// 'equal' is more exact than 'equivalent' in the equivalence codes
equivalence = Enumerations.ConceptMapEquivalence.EQUAL;