Endoscopic retrograde cholangiopancreatography (ERCP) Whakamātaunga tirohanga whakaroto

ERCP is a procedure that provides a view of your pancreatic and bile ducts. These ducts drain from your pancreas, gallbladder and liver. ERCP can also be used to remove gallstones, look for blockages and take samples of tissue (biopsies) for diagnosis.


When you would have ERCP

You may need to have ERCP to help diagnose or treat gallstones or inflammation of your pancreas (pancreatitis).

Gallbladder and gallstones


Having ERCP

A small, flexible tube with a tiny video camera (an endoscope) is passed into your mouth. It then goes down through your throat, food pipe (oesophagus) and stomach into the first part of your small bowel (duodenum).

Once in your small bowel, the opening to the tube (duct) from your liver and pancreas is found. X-ray dye (contrast) is gently injected through a thin, plastic tube in the endoscope. X-rays are then taken to help decide what treatment you may need.

ERCP is done in hospital, but you can usually go home the same day. You do not need to have a general anaesthetic, but you will have a sedative to help you relax and make you more comfortable.


Before your ERCP

  • You may need to have some blood tests before your ERCP. Your healthcare provider will discuss this with you.
  • You should not drink or eat for 6 hours before the procedure.
  • You should take your normal medications on the day of the procedure unless you have been told not to.
  • You may be asked to take some antibiotics before the ERCP. This will depend on the reason it is being done.

ERCP uses x-rays so tell your healthcare provider if you are pregnant or think you might be.


Results of your ERCP

Your healthcare provider will discuss the results of your ERCP and whether any treatment was done during the procedure.


Risks of ERCP

You are likely to have a mild sore throat after your ERCP. You will also feel sleepy until the sedative wears off.

Any other complications are rare but could be serious. The endoscope could cause some damage which might lead to bleeding or infection or even a hole in your gut (perforation). It might also cause inflammation in your pancreas, which can be serious. These complications might cause:

  • pain in your tummy that gets worse not better
  • fever
  • throwing up (vomiting) blood.

If any of these happen you must get medical help quickly.

If you have been given a sedative, it can make you forgetful and impair your judgement and reflexes. Even if you feel alert, you must not do any of the following for 24 hours:

  • drive
  • operate machinery
  • drink alcohol
  • sign any legal documents
  • ride on public transport alone.

Referral information

You will need to be referred for ERCP by your healthcare provider. You cannot self-refer.

Sometimes you may be referred to a hospital specialist who then decides if you need to have ERCP.

This procedure can be done in the public health system or privately.