Endoscopic retrograde cholangiopancreatography is safe and affordable, it can last from a few minutes to more than an hour.It usually lasts longer if complex techniques are performed, it is a procedure to diagnose and treat problems of the liver, gallbladder, bile ducts and pancreas.It combines X-rays with the use of an endoscope, which is a long and flexible tube, with light. CPRE or ERCP is often abbreviated.