The primary outcome was post-ERCP pancreatitis , defined as abdominal pain with an amylase level at least three times higher than the upper limit of normality @ hours after the ERCP and requiring admission for at least @ days .