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 24 hours after the ERCP and requiring admission for at least 2 days .