mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-03-02 09:29:13 +00:00
fixed bug in conversion from dstu2 to r4 in timing resource
This commit is contained in:
parent
f56235d596
commit
a8b715af97
@ -2023,15 +2023,18 @@ public class VersionConvertor_10_40 {
|
|||||||
copyElement(src, tgt);
|
copyElement(src, tgt);
|
||||||
if (src.hasBounds())
|
if (src.hasBounds())
|
||||||
tgt.setBounds(convertType(src.getBounds()));
|
tgt.setBounds(convertType(src.getBounds()));
|
||||||
tgt.setCount(src.getCount());
|
if (src.hasCount())
|
||||||
|
tgt.setCount(src.getCount());
|
||||||
if (src.hasDurationElement())
|
if (src.hasDurationElement())
|
||||||
tgt.setDurationElement(convertDecimal(src.getDurationElement()));
|
tgt.setDurationElement(convertDecimal(src.getDurationElement()));
|
||||||
if (src.hasDurationMaxElement())
|
if (src.hasDurationMaxElement())
|
||||||
tgt.setDurationMaxElement(convertDecimal(src.getDurationMaxElement()));
|
tgt.setDurationMaxElement(convertDecimal(src.getDurationMaxElement()));
|
||||||
if (src.hasDurationUnits())
|
if (src.hasDurationUnits())
|
||||||
tgt.setDurationUnitElement(convertUnitsOfTime(src.getDurationUnitsElement()));
|
tgt.setDurationUnitElement(convertUnitsOfTime(src.getDurationUnitsElement()));
|
||||||
tgt.setFrequency(src.getFrequency());
|
if (src.hasFrequency())
|
||||||
tgt.setFrequencyMax(src.getFrequencyMax());
|
tgt.setFrequency(src.getFrequency());
|
||||||
|
if (src.hasFrequencyMax())
|
||||||
|
tgt.setFrequencyMax(src.getFrequencyMax());
|
||||||
if (src.hasPeriodElement())
|
if (src.hasPeriodElement())
|
||||||
tgt.setPeriodElement(convertDecimal(src.getPeriodElement()));
|
tgt.setPeriodElement(convertDecimal(src.getPeriodElement()));
|
||||||
if (src.hasPeriodMaxElement())
|
if (src.hasPeriodMaxElement())
|
||||||
@ -2051,15 +2054,18 @@ public class VersionConvertor_10_40 {
|
|||||||
copyElement(src, tgt);
|
copyElement(src, tgt);
|
||||||
if (src.hasBounds())
|
if (src.hasBounds())
|
||||||
tgt.setBounds(convertType(src.getBounds()));
|
tgt.setBounds(convertType(src.getBounds()));
|
||||||
tgt.setCount(src.getCount());
|
if (src.hasCount())
|
||||||
|
tgt.setCount(src.getCount());
|
||||||
if (src.hasDurationElement())
|
if (src.hasDurationElement())
|
||||||
tgt.setDurationElement(convertDecimal(src.getDurationElement()));
|
tgt.setDurationElement(convertDecimal(src.getDurationElement()));
|
||||||
if (src.hasDurationMaxElement())
|
if (src.hasDurationMaxElement())
|
||||||
tgt.setDurationMaxElement(convertDecimal(src.getDurationMaxElement()));
|
tgt.setDurationMaxElement(convertDecimal(src.getDurationMaxElement()));
|
||||||
if (src.hasDurationUnit())
|
if (src.hasDurationUnit())
|
||||||
tgt.setDurationUnitsElement(convertUnitsOfTime(src.getDurationUnitElement()));
|
tgt.setDurationUnitsElement(convertUnitsOfTime(src.getDurationUnitElement()));
|
||||||
tgt.setFrequency(src.getFrequency());
|
if (src.hasFrequency())
|
||||||
tgt.setFrequencyMax(src.getFrequencyMax());
|
tgt.setFrequency(src.getFrequency());
|
||||||
|
if (src.hasFrequencyMax())
|
||||||
|
tgt.setFrequencyMax(src.getFrequencyMax());
|
||||||
if (src.hasPeriodElement())
|
if (src.hasPeriodElement())
|
||||||
tgt.setPeriodElement(convertDecimal(src.getPeriodElement()));
|
tgt.setPeriodElement(convertDecimal(src.getPeriodElement()));
|
||||||
if (src.hasPeriodMaxElement())
|
if (src.hasPeriodMaxElement())
|
||||||
@ -3430,4 +3436,4 @@ public class VersionConvertor_10_40 {
|
|||||||
copyElement(src, tgt);
|
copyElement(src, tgt);
|
||||||
return tgt;
|
return tgt;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -18,9 +18,7 @@
|
|||||||
"dosageInstruction": [{"text": "Take 10 mg by mouth nightly.",
|
"dosageInstruction": [{"text": "Take 10 mg by mouth nightly.",
|
||||||
"timing": {"repeat": {"boundsPeriod": {"start": "2016-11-15T00:00:00Z",
|
"timing": {"repeat": {"boundsPeriod": {"start": "2016-11-15T00:00:00Z",
|
||||||
"end": "2016-11-23T00:00:00Z"},
|
"end": "2016-11-23T00:00:00Z"},
|
||||||
"count": 0,
|
|
||||||
"frequency": 1,
|
"frequency": 1,
|
||||||
"frequencyMax": 0,
|
|
||||||
"period": 1.0,
|
"period": 1.0,
|
||||||
"periodUnit": "d"}},
|
"periodUnit": "d"}},
|
||||||
"asNeededBoolean": "False",
|
"asNeededBoolean": "False",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user