Endoscopic retrograde cholangiopancreatography (ERCP) is a specialized type of endoscopy used to evaluate the bile ducts and pancreatic ducts. The ducts that drain bile from the liver into the small intestine are known as the bile ducts. The pancreatic duct drains digestive enzymes from the pancreas into the small intestine. Both of these drainage systems can be evaluated with ERCP. ERCP can also be used to evaluate the region of the small intestine where both of these ducts drain. ERCP requires use of X-ray and therefore is performed in a hospital setting.