fixed false encounter_datetime when saving prescriptions retrospectively