Merge pull request #360 from ItayGoren/bugfix-convertTimingRepeatComponent
fixed bug in conversion from dstu2 to r4 in timing resource
This commit is contained in:
commit
accec7ef5e
|
@ -2023,6 +2023,7 @@ 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()));
|
||||||
|
if (src.hasCount())
|
||||||
tgt.setCount(src.getCount());
|
tgt.setCount(src.getCount());
|
||||||
if (src.hasDurationElement())
|
if (src.hasDurationElement())
|
||||||
tgt.setDurationElement(convertDecimal(src.getDurationElement()));
|
tgt.setDurationElement(convertDecimal(src.getDurationElement()));
|
||||||
|
@ -2030,7 +2031,9 @@ public class VersionConvertor_10_40 {
|
||||||
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()));
|
||||||
|
if (src.hasFrequency())
|
||||||
tgt.setFrequency(src.getFrequency());
|
tgt.setFrequency(src.getFrequency());
|
||||||
|
if (src.hasFrequencyMax())
|
||||||
tgt.setFrequencyMax(src.getFrequencyMax());
|
tgt.setFrequencyMax(src.getFrequencyMax());
|
||||||
if (src.hasPeriodElement())
|
if (src.hasPeriodElement())
|
||||||
tgt.setPeriodElement(convertDecimal(src.getPeriodElement()));
|
tgt.setPeriodElement(convertDecimal(src.getPeriodElement()));
|
||||||
|
@ -2051,6 +2054,7 @@ 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()));
|
||||||
|
if (src.hasCount())
|
||||||
tgt.setCount(src.getCount());
|
tgt.setCount(src.getCount());
|
||||||
if (src.hasDurationElement())
|
if (src.hasDurationElement())
|
||||||
tgt.setDurationElement(convertDecimal(src.getDurationElement()));
|
tgt.setDurationElement(convertDecimal(src.getDurationElement()));
|
||||||
|
@ -2058,7 +2062,9 @@ public class VersionConvertor_10_40 {
|
||||||
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()));
|
||||||
|
if (src.hasFrequency())
|
||||||
tgt.setFrequency(src.getFrequency());
|
tgt.setFrequency(src.getFrequency());
|
||||||
|
if (src.hasFrequencyMax())
|
||||||
tgt.setFrequencyMax(src.getFrequencyMax());
|
tgt.setFrequencyMax(src.getFrequencyMax());
|
||||||
if (src.hasPeriodElement())
|
if (src.hasPeriodElement())
|
||||||
tgt.setPeriodElement(convertDecimal(src.getPeriodElement()));
|
tgt.setPeriodElement(convertDecimal(src.getPeriodElement()));
|
||||||
|
|
|
@ -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…
Reference in New Issue