There were errors in this file since "{" were missing and there was an duplicate fucntion "startAppointmentById". Some one had appended the file with "<<<<<<<<<<<<<<<<<<some digits".