"ERCP stands for endoscopic retrograde cholangiopancreatography. A dye is injected into the bile and pancreatic ducts using a flexible, video endoscope. Then x-rays are taken to outline the bile and pancreas ducts.The liver produces bile, which flows through the ducts, passes or fills the gallbladder and then enters the intestine (duodenum) just beyond the stomach. The pancreas, which is six to eight inches long, sits behind the stomach. This organ secretes digestive enzymes that flow into the intestine through the same opening as the bile. It also produces hormones, like insulin, that regulate metabolism. Both bile and enzymes are needed to digest food.The flexible endoscope can be directed and moved around the many bends in the upper gastrointestinal tract. The endoscopes have a tiny, optically sensitive computer chip at the end. Electronic signals are then transmitted up the scope to the computer which then displays the image on a large video screen. An open channel in the scope allows other instruments to be passed through it to perform biopsies, inject solutions, make incisions or place stents. A second, smaller scope, or cholangioscope can also be inserted into the ducts to guide biopsies or fragment stones."