applying delete-item class wherever we need to delete items
enhancing difference between date and time of an encounter