Dynamic Appointment Scheduling for Healthcare