endoscopic retrograde cholangiopancreatography (ERCP)
An endoscope, an illuminated optical instrument, is inserted through the mouth and threaded through the esophagus to the small intestine to allow the bile duct, liver, gallbladder, and pancreas to be examined. A contrast material is then injected into the small intestine and x-rays are taken.