fix bug converting type mode in Structure Map
This commit is contained in:
parent
8cfc6eaf1d
commit
b6fabaef1c
|
@ -3,6 +3,7 @@ package org.hl7.fhir.convertors.conv40_50;
|
|||
|
||||
import org.hl7.fhir.convertors.VersionConvertor_40_50;
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
import org.hl7.fhir.r4.model.StructureMap.StructureMapGroupTypeMode;
|
||||
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
@ -220,8 +221,11 @@ public class StructureMap40_50 extends VersionConvertor_40_50 {
|
|||
tgt.setNameElement(convertId(src.getNameElement()));
|
||||
if (src.hasExtends())
|
||||
tgt.setExtendsElement(convertId(src.getExtendsElement()));
|
||||
if (src.hasTypeMode())
|
||||
if (src.hasTypeMode()) {
|
||||
tgt.setTypeModeElement(convertStructureMapGroupTypeMode(src.getTypeModeElement()));
|
||||
} else {
|
||||
tgt.setTypeMode(StructureMapGroupTypeMode.NONE);
|
||||
}
|
||||
if (src.hasDocumentation())
|
||||
tgt.setDocumentationElement(convertString(src.getDocumentationElement()));
|
||||
for (org.hl7.fhir.r5.model.StructureMap.StructureMapGroupInputComponent t : src.getInput()) tgt.addInput(convertStructureMapGroupInputComponent(t));
|
||||
|
|
Loading…
Reference in New Issue