Added a boolean check for appointmentAttended and changed extension back to string