This commit is contained in:
Tobias Brieden 2019-06-20 17:21:01 +02:00
parent 511358f314
commit afc79ad74d
1 changed files with 2 additions and 2 deletions

View File

@ -1421,7 +1421,7 @@ public class VersionConvertor_30_40 {
if (src.hasDoseAndRate() && src.getDoseAndRate().get(0).hasDose()) {
// We need to manually make sure that the convertSimpleQuantity method is
// called. Otherwise (if we would simply forward to the convertType method), this would lead
// to a conversion to another Quantity object, that would be invalid for the DSTU3 Dosage resource,
// to a conversion to another Quantity object, that would be invalid for the DSTU3 Dosage resource.
if (src.getDoseAndRate().get(0).getDose() instanceof org.hl7.fhir.r4.model.Quantity) {
tgt.setDose(convertSimpleQuantity((org.hl7.fhir.r4.model.Quantity) src.getDoseAndRate().get(0).getDose()));
} else {
@ -1437,7 +1437,7 @@ public class VersionConvertor_30_40 {
if (src.hasDoseAndRate() && src.getDoseAndRate().get(0).hasRate()) {
// We need to manually make sure that the convertSimpleQuantity method is
// called. Otherwise (if we would simply forward to the convertType method), this would lead
// to a conversion to another Quantity object, that would be invalid for the DSTU3 Dosage resource,
// to a conversion to another Quantity object, that would be invalid for the DSTU3 Dosage resource.
if (src.getDoseAndRate().get(0).getRate() instanceof org.hl7.fhir.r4.model.Quantity) {
tgt.setRate(convertSimpleQuantity((org.hl7.fhir.r4.model.Quantity) src.getDoseAndRate().get(0).getRate()));
} else {