Endoscopic retrograde pancreatography in the diagnosis of chronic pancreatitis