Endoscopic Retrograde Cholangiopancreatography

Last updated by Peer reviewed by Dr Krishna Vakharia
Last updated Meets Patient’s editorial guidelines

Added to Saved items
This article is for Medical Professionals

Professional Reference articles are designed for health professionals to use. They are written by UK doctors and based on research evidence, UK and European Guidelines. You may find the ERCP (Endoscopic Retrograde Cholangiopancreatography) article more useful, or one of our other health articles.

Read COVID-19 guidance from NICE

Treatment of almost all medical conditions has been affected by the COVID-19 pandemic. NICE has issued rapid update guidelines in relation to many of these. This guidance is changing frequently. Please visit https://www.nice.org.uk/covid-19 to see if there is temporary guidance issued by NICE in relation to the management of this condition, which may vary from the information given below.

Endoscopic retrograde cholangiopancreatography (ERCP) is used both in the diagnosis and the treatment of many pancreatic and biliary diseases. It was first used in the 1970s at which point its main use was in diagnosis. Now, its use is mostly as a therapeutic tool.

  • Choledocholithiasis (eg, gallstones in the common bile duct (CBD) and microlithiasis).
  • Acute pancreatitis due to biliary obstruction, sphincter of Oddi dysfunction or idiopathic, recurrent cases.
  • Detection of pancreatic divisum (more common in patients who develop pancreatitis but may not necessarily be causal).
  • Diagnosis of pancreatic and biliary malignancy. Endoscopic ultrasound provides an acceptable option in many cases and can be used as a triage procedure to determine which patients should proceed to ERCP.
  • Palliative therapy for inoperable pancreaticobiliary malignancies - eg, drainage procedures.
  • Dilatation of benign strictures - eg, following orthoptic liver transplantation.
  • Chronic pancreatitis - there is a role for dilatation of strictures or stent insertion.[2]
  • Manometry measures in sphincter of Oddi dysfunction.

ERCP provides detailed and accurate information of the pancreaticobiliary system in cases which cannot be diagnosed by endoscopic ultrasound. It also provides a less invasive option than open surgery for the management of several pancreatic conditions. ERCP has evolved from a purely diagnostic tool to a predominantly therapeutic procedure.

In cases where there is doubt regarding the diagnosis or presence of biliary obstruction, further imaging should be performed first. This may include magnetic resonance cholangiopancreatography (MRCP) if biliary obstruction alone is suspected, or endoscopic ultrasound (EUS) in other conditions.

ERCP done by experienced endoscopists is a safe procedure during pregnancy. Radiation-free techniques appear to reduce the rates of nonpregnancy-related complications, but not of fetal and pregnancy-related complications.[3]

ERCP and choledocholithiasis

One method for determining who should have an ERCP is to classify patients into low-risk, intermediate-risk or high-risk.

  • Low-risk patients should proceed to laparoscopic cholecystectomy without further intervention or imaging procedures.
  • Intermediate-risk patients include those with features, such as previous history of cholangitis or pancreatitis, slightly abnormal LFTs (eg, raised ALP but less than twice normal), dilated CBD between 8-10 mm. This group of patients should have further tests (eg, endoscopic ultrasound) before deciding on further intervention.
  • High-risk patients include those with recent cholangitis, recent acute pancreatitis, jaundice, abnormal LFTs (ALP more than twice normal) and dilated CBD >10 mm. This group will usually benefit most from ERCP. However, even a third of these patients will fail to have a stone on ERCP and further investigation may be needed.

ERCP and acute pancreatitis

  • Acute pancreatitis post-ERCP is a potentially fatal complication that can be as high as up to 30% in high-risk patients.[4]
  • However, some patients with severe acute pancreatitis with evidence of biliary tract obstruction have an ERCP.
  • At ERCP, sphincterotomy may be performed to remove duct obstruction - eg, gallstone.
  • There is a risk that pancreatitis may be worsened. There is no role for early ERCP in patients with (predicted) mild biliary pancreatitis to improve outcome.[5]
  • A meta-analysis of studies looking at the role of ERCP in acute biliary pancreatitis has confirmed that early ERCP reduces both complications and mortality rates.
  • Sphincter of Oddi dysfunction can lead to pancreatitis (usually in women following cholecystectomy) and responds to isolated biliary sphincterotomy.
  • ERCP is one of the most technically demanding and high-risk procedures performed by gastrointestinal endoscopists.
  • ERCP is performed on an outpatient or inpatient basis.
  • Patients have to fast overnight.
  • Patients are usually sedated for the procedure (eg, using midazolam) and analgesia is also given.
  • Antibiotics are usually given before the procedure for those patients with known or suspected obstruction in which complete relief of the obstruction is not anticipated or in patients receiving immunosuppression after liver transplantation.[6]
  • Patients usually lie on their left side.
  • The back of the throat is sprayed with a local anaesthetic.
  • The endoscope is passed down through to the stomach and then to the duodenum (where the ducts of the pancreaticobiliary system open, called Vater's ampulla).
  • Air may be pumped into the duodenum to allow better visualisation.
  • Using a wire passed through the endoscope, contrast is injected through Vater's ampulla and X-rays obtained.
  • These images will indicate areas of obstruction.
  • Further intervention can be performed down the endoscope if necessary - eg, stone removal, stent insertion, biopsies.
  • Pancreatitis - this is one of the most frequent post-ERCP complications. The incidence of this is around 20%.[7] The majority of cases are mild but 10% of cases are moderate-to-severe and may lead to multi-organ failure and even death. The chances of pancreatitis post-ERCP can be reduced by avoiding excessive cannulation trauma and stent insertion - the latter being the most effective method.[8] Stent insertion allows pancreatic secretions to pass freely.
  • Post-ERCP pancreatitis rates are dependent on the type of ERCP performed.
  • There is evidence that peri-operative indometacin or diclofenac helps to reduce the incidence of pancreatitis.[9]
  • Infection may occur - although rates are low.
  • Bleeding may occur - although severe haemorrhage is rare.
  • Perforation of the duodenum with development of an acute abdomen.
  • Failure of gallstone retrieval - may need to revert to open or more invasive procedures.
  • Prolonged pancreatic stenting is associated with stent occlusion, pancreatic duct obstruction and pseudocyst formation.

Are you protected against flu?

See if you are eligible for a free NHS flu jab today.

Check now

Further reading and references

  1. Adler DG, Lieb JG 2nd, Cohen J, et al; Quality indicators for ERCP. Gastrointest Endosc. 2015 Jan81(1):54-66. doi: 10.1016/j.gie.2014.07.056. Epub 2014 Dec 2.

  2. Riff BP, Chandrasekhara V; The Role of Endoscopic Retrograde Cholangiopancreatography in Management of Pancreatic Diseases. Gastroenterol Clin North Am. 2016 Mar45(1):45-65. doi: 10.1016/j.gtc.2015.10.009.

  3. Azab M, Bharadwaj S, Jayaraj M, et al; Safety of endoscopic retrograde cholangiopancreatography (ERCP) in pregnancy: A systematic review and meta-analysis. Saudi J Gastroenterol. 2019 Nov-Dec25(6):341-354. doi: 10.4103/sjg.SJG_92_19.

  4. Ribeiro IB, do Monte Junior ES, Miranda Neto AA, et al; Pancreatitis after endoscopic retrograde cholangiopancreatography: A narrative review. World J Gastroenterol. 2021 May 2827(20):2495-2506. doi: 10.3748/wjg.v27.i20.2495.

  5. da Costa DW, Schepers NJ, Romkens TE, et al; Endoscopic sphincterotomy and cholecystectomy in acute biliary pancreatitis. Surgeon. 2016 Apr14(2):99-108. doi: 10.1016/j.surge.2015.10.002. Epub 2015 Nov 2.

  6. Khashab MA, Chithadi KV, Acosta RD, et al; Antibiotic prophylaxis for GI endoscopy. Gastrointest Endosc. 2015 Jan81(1):81-9. doi: 10.1016/j.gie.2014.08.008. Epub 2014 Nov 11.

  7. Jung MK, Jang YJ, Cho CM, et al; Iatrogenic pancreatitis in patients with IPMN after ERCP: incidence and predictive signs. Abdom Imaging. 2014 Oct39(5):949-54. doi: 10.1007/s00261-014-0122-0.

  8. Mazaki T, Mado K, Masuda H, et al; Prophylactic pancreatic stent placement and post-ERCP pancreatitis: an updated meta-analysis. J Gastroenterol. 2014 Feb49(2):343-55. doi: 10.1007/s00535-013-0806-1. Epub 2013 Apr 24.

  9. Andrade-Davila VF, Chavez-Tostado M, Davalos-Cobian C, et al; Rectal indomethacin versus placebo to reduce the incidence of pancreatitis after endoscopic retrograde cholangiopancreatography: results of a controlled clinical trial. BMC Gastroenterol. 2015 Jul 2115:85. doi: 10.1186/s12876-015-0314-2.

newnav-downnewnav-up