Merge pull request #543 from ItayGoren/abatament-condition

fix condition abatament bool
This commit is contained in:
Grahame Grieve 2021-06-25 04:30:42 +10:00 committed by GitHub
commit d07da31206
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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())); tgt.setSeverity(VersionConvertor_10_40.convertCodeableConcept(src.getSeverity()));
if (src.hasOnset()) if (src.hasOnset())
tgt.setOnset(VersionConvertor_10_40.convertType(src.getOnset())); 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())); tgt.setAbatement(VersionConvertor_10_40.convertType(src.getAbatement()));
if (src.hasStage()) if (src.hasStage())
tgt.addStage(convertConditionStageComponent(src.getStage())); tgt.addStage(convertConditionStageComponent(src.getStage()));