ERCP is a procedure that uses X-rays and endoscopy to diagnose and treat problems in the pancreas, bile ducts, gallbladder, and liver. A gastroenterologist performs ERCP to examine and treat issues like cancer, stones, strictures in the bile ducts, gallstones, pancreatitis, and cysts. Before the procedure, patients are asked to fast for 6 hours and inform doctors of any medications or allergies. After ERCP, patients may experience throat irritation, nausea, or bloating as the endoscope is inserted through the mouth into the duodenum.