handleAppointmentChangedEvent changes, getDocuments don't work yet