before remove patient model