Sorry, my mistake. I didn't actualize comment after parameters change. We need to void visit only if given encounter is the only one encounter in the visit.