[ORB-148] fixed exception when saving the patient discharge event