An endoscope and X-rays are used by doctors during ERCP to see injectable dye as it passes through the pancreatic and bi