Tests that can establish the etiology of an attack of acute pancreatitis include endoscopic ultrasound ... testing such as ERCP with sphincter of Oddi manometry should be considered.