fix condition abatament bool

This commit is contained in:
Itay Goren 2021-06-23 12:59:19 +03:00
parent 87066f1c4c
commit 73925c451b
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ public class Condition10_40 {
tgt.setSeverity(VersionConvertor_10_40.convertCodeableConcept(src.getSeverity()));
if (src.hasOnset())
tgt.setOnset(VersionConvertor_10_40.convertType(src.getOnset()));
if (src.hasAbatement())
if (src.hasAbatement() && !(src.getAbatement() instanceof org.hl7.fhir.dstu2.model.BooleanType))
tgt.setAbatement(VersionConvertor_10_40.convertType(src.getAbatement()));
if (src.hasStage())
tgt.addStage(convertConditionStageComponent(src.getStage()));