Fix issue concerting ConceptMap r4 <-> r5

This commit is contained in:
Grahame Grieve 2020-03-13 12:46:48 +11:00
parent ed7e670d07
commit ea4db2962e
1 changed files with 6 additions and 0 deletions

View File

@ -256,6 +256,9 @@ public class ConceptMap40_50 extends VersionConvertor_40_50 {
tgt.setValueAsString(src.getExtensionString(VersionConvertorConstants.EXT_OLD_CONCEPTMAP_EQUIVALENCE));
} else {
switch(src.getValue()) {
case RELATEDTO:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.ConceptMapEquivalence.RELATEDTO);
break;
case EQUIVALENT:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.ConceptMapEquivalence.EQUIVALENT);
break;
@ -301,6 +304,9 @@ public class ConceptMap40_50 extends VersionConvertor_40_50 {
case SPECIALIZES:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.NARROWER);
break;
case RELATEDTO:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.RELATEDTO);
break;
case INEXACT:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.RELATEDTO);
break;