Update code to Report Patient Appointment