A procedure that uses an endoscope to examine and x-ray the pancreatic duct, hepatic duct, common bile duct, duodenal papilla, and gallbladder. An endoscope is a thin, tube-like instrument with a light and a lens for viewing. The endoscope is passed through the mouth and down into the first part of the small intestine (duodenum). A smaller tube (catheter) is then inserted through the endoscope into the bile and pancreatic ducts. A dye is injected through the catheter into the ducts, and an x-ray is taken. Also called ERCP.