Add getappointment function returns appointment and appointment options