You had a procedure known as an ERCP. Your doctor performed the ERCP to look at your bile or pancreatic ducts, and to locate and treat blockages in the ducts. This procedure is used to diagnose diseases of the pancreas, bile ducts, and pancreatic duct, liver, and gallbladder. Here's what you need to do after your ERCP.