RA-156 Fixed past visit selection
RA-156 Fixed activeVisits