Added some code for loading Appointment type