Endoscopic retrograde cholangio-pancreatography, is an x-ray of the pancreatic and bile ducts combined with the injection of a dye to make them show up. The bile ducts drain bile from the liver while the pancreatic duct drains pancreatic juice from the pancreas. Both open into the first part of the small intestine. An ECG, or electrocardiogram, records the electrical activity of the heart. It can reveal any problems with the heart's rhythm or beat.