Automatic surgical unit