AM-139 all testes created for Appointment Resource, also now the history of appointment is being purged when an appointment is being purged