Patient guide · Procedure

Your ERCP, explained

An ERCP is one of the most powerful tools we have in gastroenterology — it lets us treat problems in the bile ducts and pancreas through an endoscope, often solving something that once needed major surgery. If a doctor has recommended one, this guide walks you through exactly what it means, why it's done, and what to expect — the same explanation Dr. Maaz gives his own patients before their procedure.

What ERCP actually is

ERCP stands for Endoscopic Retrograde Cholangiopancreatography — a long name for an elegant idea. A thin, flexible camera (an endoscope) is passed gently through your mouth, down the food pipe and stomach, to the point where the bile duct and pancreatic duct drain into the small bowel. Using live X-ray pictures and a fine dye, Dr. Maaz can then see inside those ducts and, in the same sitting, treat what's wrong — remove a stone, open a blockage, relieve jaundice, or place a small tube (a stent) to keep a duct draining.

The key thing to understand: ERCP is usually a treatment, not just a test. Most people come to it because something needs fixing, and it can be fixed without a single cut on the outside of the body.

Why it may have been recommended

The bile ducts carry bile from the liver and gallbladder to the bowel. When something blocks or narrows them, ERCP is often the answer. Common reasons include:

  • Bile-duct stones — a stone that has slipped out of the gallbladder and lodged in the bile duct, causing pain, jaundice, or infection.
  • Jaundice (yellow eyes and skin) from a blocked bile duct.
  • Cholangitis — a serious infection of a blocked duct, which needs urgent drainage.
  • Narrowings (strictures) of the bile or pancreatic duct, whether benign or from a tumour.
  • Bile leaks, and certain pancreatic duct problems.
Why this matters here at home

Gallstones are very common in Pakistan, and so are bile-duct stones that follow them. The good news is that if you've been told a bile-duct stone or blockage may need surgery, an endoscopic option often exists — treating it through ERCP instead, without open surgery, and closer to home. It's always worth asking.

Getting ready — before your ERCP

  • Fasting: your stomach must be empty. Usually that means no food for at least 6–8 hours; you'll be given exact timings.
  • Blood thinners: medicines like warfarin, clopidogrel, aspirin or the newer agents often need to be paused or adjusted beforehand, because treatment during ERCP can involve a small cut. Never stop them on your own — check with the clinic.
  • Diabetes medicines and insulin usually need adjusting on the day, since you'll be fasting.
  • Bring your reports: previous ultrasounds, CT/MRCP scans, blood tests, and a list of your medicines. These genuinely help Dr. Maaz plan a safer, quicker procedure.
  • Arrange an escort: because of the sedation, you'll need a responsible adult to take you home, and you can't drive for the rest of the day.
Your exact instructions come from the clinic

The specific fasting time and medicine adjustments for your ERCP will be given to you when it's booked. If anything here differs from what you were told, follow the clinic's instructions.

What happens on the day

  1. You'll be checked in, your details and consent confirmed, and a small drip placed in your hand or arm.
  2. You'll be given sedation so you're relaxed and comfortable — most people remember little or nothing of the procedure.
  3. You'll lie on your front or side. The endoscope is passed to the bile-duct opening; it does not interfere with your breathing.
  4. Using a fine dye and live X-ray, Dr. Maaz examines the ducts and carries out the treatment — removing a stone, opening a narrowing, or placing a stent as needed.
  5. Most ERCPs take about 30 to 60 minutes, depending on what needs doing.

Understanding the risks — honestly

ERCP is generally safe, and in experienced, high-volume hands complications are uncommon. But it is a real procedure, and you deserve a straight account:

  • Pancreatitis (inflammation of the pancreas) is the most common risk, occurring in a small percentage of cases. To reduce it, Dr. Maaz uses measures such as an anti-inflammatory suppository and, in higher-risk patients, a temporary small pancreatic stent, along with careful technique.
  • Bleeding can occur if a small cut is made, and is usually minor and controllable.
  • Infection of a duct that doesn't drain fully — sometimes covered with antibiotics.
  • A small tear (perforation) is rare.

These risks are the reason ERCP is best done by a dedicated advanced endoscopist who performs them regularly — experience and volume genuinely lower complication rates.

After your ERCP

You'll be observed for a few hours, sometimes overnight, mainly to make sure the pancreas is settled. Mild bloating or a sore throat is normal. You'll usually restart eating gently the same day once cleared. If a stent was placed, there's often a follow-up plan to remove or exchange it later — this matters, so keep that appointment.

Read the full aftercare guide — what's normal, and the warning signs →

After you go home, seek urgent care if you have

Severe or worsening tummy pain, fever or chills, repeated vomiting, vomiting blood, black tarry stools, or difficulty breathing. These can signal a treatable complication — don't wait it out. Call the clinic on +92 51 8464646 or attend the nearest emergency department.

ERCP, MRCP and EUS — three different jobs

Patients are often sent for more than one of these and reasonably ask why. They are not alternatives competing to answer the same question.

  • MRCP is an MRI scan that maps the bile and pancreatic ducts. Nothing enters the body and there is no risk. It is excellent for anatomy, and less reliable for stones only two or three millimetres across.
  • EUS places an ultrasound probe inside the stomach and duodenum, millimetres from the lower bile duct and pancreas. It finds small stones that MRCP misses and can take a tissue sample, with much lower risk than ERCP. Read the EUS guide →
  • ERCP enters the bile duct itself. It is a treatment, not a survey. Because it carries a real risk of pancreatitis, it should be reserved for situations where something needs to be done.

The sensible sequence in most cases is therefore: scan to see the anatomy, EUS if the question is whether a stone or lesion is truly there, and ERCP when the answer is yes and it must be dealt with.

The situations ERCP is used for

Bile duct stones

The commonest reason. A stone that has left the gallbladder and lodged in the bile duct causes jaundice, pain and sometimes infection. ERCP opens the lower end of the duct and removes the stone with a balloon or basket. Most stones come out in a single session.

Gallstone pancreatitis — and when ERCP is not needed

A stone passing through the duct can inflame the pancreas. This is where ERCP is most often misunderstood. In the majority of gallstone pancreatitis, the stone has already passed by the time the patient arrives, and an ERCP would add risk without adding benefit. Urgent ERCP is indicated when the stone is still obstructing — particularly when there is accompanying cholangitis. Otherwise the pancreatitis is managed medically, and attention turns to removing the gallbladder to prevent a recurrence.

Cholangitis

When an obstructed bile duct becomes infected, bacteria enter the bloodstream and the patient becomes rapidly unwell — fever with rigors, jaundice, pain, sometimes confusion and a falling blood pressure. This is a medical emergency, and it is one of the few situations where ERCP is genuinely urgent, because antibiotics alone cannot succeed while the duct stays blocked. Draining the duct is the treatment.

Malignant biliary obstruction

A tumour of the pancreas, bile duct or gallbladder can block bile flow and cause deepening jaundice with intense itching. ERCP relieves it by placing a stent. This matters even when surgery is planned, since chemotherapy and anaesthesia are both safer once the bilirubin has fallen.

Benign strictures

Not every narrowing is cancer. Bile duct strictures also follow gallbladder surgery, liver transplantation, chronic pancreatitis, and autoimmune conditions such as IgG4-related disease and primary sclerosing cholangitis. These are often treated over several sessions with balloon dilatation and stents. The central difficulty is telling a benign stricture from a malignant one — which is where cholangioscopy has changed things, below.

Bile leaks

Bile escaping after gallbladder surgery or liver trauma collects in the abdomen and causes pain and fever. Placing a stent lowers the pressure inside the duct so that bile takes the easier route downward, and the leak seals itself. This usually avoids further surgery.

Pancreatic duct problems

Stones, strictures and duct disruption in chronic pancreatitis can be treated at ERCP, though these are technically more demanding than biliary work and the decision to intervene needs care.

When the duct cannot be cleared at the first attempt

Not every ERCP finishes the job, and that is not a failure. A very large stone, a tight or angled duct, or an unwell patient may mean the safest course is to place a stent to keep bile draining and return for a second session — a staged ERCP. The stent relieves the obstruction immediately, prevents infection, and often softens a stone and dilates the duct in the interval, making the second procedure easier and safer than forcing the first. If you are told your ERCP will need repeating, this is usually the reason.

When conventional ERCP is not enough

Most ERCPs need nothing beyond standard technique. But fluoroscopy shows only the shadow bile casts — not the duct lining itself. When a stone is too large to remove whole, or a narrowing could be either scar or cancer, an outline cannot settle it. A very fine camera can be passed into the duct to look directly. Read about cholangioscopy, difficult bile duct stones and unexplained strictures →

Frequently asked questions

Will it hurt?

You'll be sedated and comfortable, and most people remember very little. Afterwards, mild bloating from the air used is common and settles quickly.

Does an ERCP mean I avoid surgery?

Often, yes — for bile-duct stones and blockages, ERCP treats the problem endoscopically. Note that if you have gallstones in the gallbladder itself, you may still be advised to have the gallbladder removed separately; Dr. Maaz will explain your specific plan.

Is it safe?

In experienced hands, yes. Complications exist but are uncommon and actively guarded against. The single biggest safety factor is being treated by someone who performs ERCP regularly.

Why not just do surgery?

For duct problems, ERCP is usually less invasive, has a quicker recovery, and avoids open surgery — which is exactly why it has become the first choice for these conditions worldwide.

Travelling to Islamabad for advanced endoscopy?

If you have been advised to undergo ERCP, EUS, cholangioscopy or another advanced endoscopic procedure and you live outside Islamabad, your reports and imaging can often be reviewed before you travel.

Send them on WhatsApp, then book an online consultation to go through them together. That is where it is decided whether the procedure is appropriate, what further evaluation may be needed first, and what the next steps in your management should be.

WhatsApp: 03459116675. Reports are reviewed ahead of the consultation; management is decided during it.

Facing an ERCP, or unsure if you need one?

Dr. Maaz welcomes questions, complex referrals, and second opinions.

This guide provides general information only and does not replace personal medical advice. Always follow the specific instructions given to you by Dr. Maaz and the clinic. For emergencies, contact Shifa International Hospital or your nearest emergency department.