revisedOrder.setQuantityUnits(orderTag.quantityUnits);
revisedOrder.setDuration(orderTag.duration);
revisedOrder.setDurationUnits(orderTag.durationUnits);
revisedOrder.setRoute(orderTag.route);
revisedOrder.setCareSetting(Context.getOrderService().getCareSetting(orderTag.careSettingId));
OrderFrequency orderFrequency = Context.getOrderService().getOrderFrequency(Integer.valueOf(orderTag.frequency));
revisedOrder.setFrequency(orderFrequency);
revisedOrder.setDateActivated(orderTag.startDate);
revisedOrder.setNumRefills(orderTag.numRefills);
if (orderTag.orderDuration != null)
revisedOrder.setAutoExpireDate(calculateAutoExpireDate(orderTag.startDate, orderTag.orderDuration));