UHM-1172 Fix method to get all the statuses apppointments