mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-03-06 03:19:15 +00:00
One more 30-40 converter tweak
This commit is contained in:
parent
eefda87962
commit
b828e3b27f
@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40;
|
||||
|
||||
import org.hl7.fhir.convertors.VersionConvertor_30_40;
|
||||
import org.hl7.fhir.convertors.VersionConvertor_40_50;
|
||||
import org.hl7.fhir.dstu3.model.SimpleQuantity;
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public class MedicationAdministration30_40 {
|
||||
@ -109,8 +110,14 @@ public class MedicationAdministration30_40 {
|
||||
tgt.setMethod(VersionConvertor_30_40.convertCodeableConcept(src.getMethod()));
|
||||
if (src.hasDose())
|
||||
tgt.setDose(VersionConvertor_30_40.convertSimpleQuantity(src.getDose()));
|
||||
if (src.hasRate())
|
||||
if (src.hasRate()) {
|
||||
if (src.hasRateQuantity()) {
|
||||
tgt.setRate(new SimpleQuantity());
|
||||
VersionConvertor_30_40.copyQuantity(src.getRateQuantity(), tgt.getRateSimpleQuantity());
|
||||
} else {
|
||||
tgt.setRate(VersionConvertor_30_40.convertType(src.getRate()));
|
||||
}
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user