ERCP Endoscopic Retrograde Cholangiopancreatography

Last updated by Peer reviewed by Dr Hayley Willacy
Last updated Meets Patient’s editorial guidelines

Added to Saved items

ERCP is a procedure that uses an endoscope and X-rays to look at your bile duct and your pancreatic duct. ERCP can also be used to remove gallstones or take small samples of tissue for analysis (a biopsy).

Note: the information below is a general guide only. The arrangements and the way tests are performed may vary between different hospitals. Always follow the instructions given by your doctor or local hospital.

ERCP stands for 'endoscopic retrograde cholangiopancreatography'. ERCP is a very useful procedure, as it can be used both to diagnose and to treat various conditions, such as:

An endoscope is a thin, flexible telescope. It is passed through your mouth, into your gullet (oesophagus) and down towards your stomach and the first part of your gut after your stomach (your duodenum). The endoscope contains fibre-optic channels which allow light to shine down so the doctor can see inside. Cholangiopancreatography means X-ray pictures of your bile duct and pancreatic duct. These ducts do not show up very well on ordinary X-ray pictures. However, if a dye that blocks X-rays is injected into these ducts then X-ray pictures will show up these ducts clearly. Some dye is injected through an opening called 'the papilla' back up into your bile and pancreatic ducts (a 'retrograde' injection). This is done via a plastic tube in a side channel of the endoscope. X-ray pictures are then taken.

Want to see a dietician?

Book a private assessment with a qualified dietician today.

Book now
150.gif

The doctor may numb the back of your throat by spraying on some local anaesthetic, or may give you a lozenge to suck. You will usually be given a sedative by an injection into a vein in the back of your hand or arm. The sedative makes you drowsy and relaxed but it does not 'put you to sleep'. It is not a general anaesthetic.

You lie on your side on a couch. The doctor will ask you to swallow the first section of the endoscope. Modern endoscopes are quite thin (thinner than an index finger) and quite easy to swallow. The doctor then gently pushes it down your oesophagus into your stomach and duodenum.

The doctor looks down the endoscope via an eyepiece or on a TV monitor which is connected to the endoscope. Air is passed down a channel in the endoscope into the stomach and the first part of your gut (small intestine) known as the duodenum. This enables the lining to be seen more easily. You may feel 'full' and want to belch.

The endoscope also has a 'side channel' down which various tubes or instruments can pass. These can be manipulated by the doctor who can do various things. For example:

  • Inject a dye into the bile and pancreatic ducts. X-ray pictures taken immediately after the injection of dye show up the detail of the ducts. This may show narrowing (stricture), stuck gallstones, tumours pressing on the ducts, etc.
  • Take a small sample (biopsy) from the lining of the duodenum, stomach, or pancreatic or bile duct near to the opening called the papilla. The biopsy sample can be looked at under the microscope to check for abnormal tissue and cells.
  • If the X-rays show a gallstone stuck in the duct, the doctor can widen the opening of the papilla to let the stone out into the duodenum. A stone can be grabbed by a 'basket' or left to be passed out with the stools (faeces).
  • If the X-rays show a narrowing or blockage in the bile duct, the doctor can put a stent inside to open it wide. A stent is a small wire-mesh or plastic tube. This then allows bile to drain into the duodenum in the normal way. You will not be aware of a stent, which can remain permanently in place.

The endoscope is gently pulled out when the procedure is finished. An ERCP can take anything from 30 minutes to over an hour, depending on what is done.

You should get instructions from the hospital department before an ERCP. The sort of instructions given include:

  • You should not eat for six hours before the procedure. (Small sips of water may be allowed up to two hours before the procedure.)
  • Advice about medication which you may need to stop before the procedure.
  • You may be given some antibiotics before the procedure. This depends on the reason for having this test done.

If the procedure was done just to obtain X-ray pictures then most people are ready to go home after resting for a few hours. You should not drive, operate machinery or drink alcohol for 24 hours after having the sedative. If you go home on the same day as the procedure you will need somebody to accompany you home and to stay with you for 24 hours until the effects of the sedative have fully worn off.

Most people are able to resume normal activities after 24 hours. Because of the effect of the sedative, most people remember very little about the procedure. You may require a short hospital stay if you had a procedure such as removing a gallstone or inserting a small wire-mesh or plastic tube (a stent).

Most ERCPs are done without any problems. Some people have a mild sore throat for a day or so afterwards. You may feel tired or sleepy for several hours, caused by the sedative.

Uncommon complications include the following:

  • Occasionally, the endoscope causes some damage to your gut, bile duct or pancreatic duct. This may cause bleeding, infection and, rarely, perforation. If any of the following occur within 48 hours after an ERCP, consult a doctor immediately:
    • Tummy (abdominal) pain - in particular, if it becomes gradually worse and is different or more intense to any 'usual' indigestion pains or heartburn that you may have.
    • Raised temperature (fever).
    • Difficulty breathing.
    • Bringing up (vomiting) blood.
  • Inflammation of your pancreas (pancreatitis) sometimes occurs after ERCP. This can be serious in some cases.

The risk of complications is higher if you are already in poor general health. The benefit from this procedure needs to be weighed up against the small risk of complications.

Let your doctor know if you think you could be pregnant. It may still be possible to perform ERCP if you are pregnant, providing certain precautions are taken. Alternatively, it may be possible to delay it or use another type of procedure.

Acute Pancreatitis

Are you protected against flu?

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

Check now

Further reading and references

  • 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.

  • 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.

  • Meseeha M, Attia M; Endoscopic Retrograde Cholangiopancreatography. StatPearls Publishing, 2020.

newnav-downnewnav-up