Previous GI infection was a significant and independent predictor of post-ERCP PEBTI in patients with choledocholithiasis.