fixed display of active visit on merge patients page