implemented getStatusForAppointment and getLoggedInUser