@Override
 public String execute() throws Exception {
   this.medicalHistoriesList = MedicalHistoryDao.getMedicalHistoriesList();
   for (MedicalHistory medicalHistory : medicalHistoriesList) {
     Client client = ClientDao.getClientById(medicalHistory.getClientId());
     medicalHistory.setClientFullname(client.getFullname());
   }
   return Action.SUCCESS;
 }
 public String showMedicalHistory() throws Exception {
   client = ClientDao.getClientById(getId());
   medicalHistory = MedicalHistoryDao.getMedicalHistoryByClientId(client.getId());
   visitsList = VisitDao.getVisitsListByMedicalHistoryId(medicalHistory.getId());
   for (Visit visit : visitsList) {
     Order order = OrderDao.getOrderById(visit.getOrderId());
     Doctor doctor = DoctorDao.getDoctorById(order.getDoctorId());
     visit.setDoctorFullname(doctor.getFullname());
     visit.setDoctorSpeciality(doctor.getSpeciality());
     visit.setDate(UnixTimeConverter.convertUnixTimeToTime(order.getDate(), "yyyy-MM-dd"));
   }
   return Action.SUCCESS;
 }