Add function checking if an appointment has been changed.