When Is ERCP Needed? Procedure, Uses and Recovery

The liver, gallbladder and pancreas play important roles in digestion. They are connected through a network of small tubes called bile ducts and pancreatic ducts, which carry bile and digestive fluids into the small intestine. When these ducts become blocked, narrowed or damaged, they can affect digestion and lead to serious complications.

One procedure used to treat certain conditions affecting these ducts is Endoscopic Retrograde Cholangiopancreatography (ERCP). It combines upper gastrointestinal endoscopy with X-ray imaging to examine the bile and pancreatic ducts and perform treatments when required.

But when is ERCP needed? Doctors may recommend it when gallstones become lodged in the bile duct, when there is a blockage, or when a duct becomes narrowed or develops a leak.

Understanding the ERCP procedure, its uses, possible risks and recovery process can help patients feel more prepared before undergoing treatment.

What Is ERCP?

ERCP stands for Endoscopic Retrograde Cholangiopancreatography. It is a specialised endoscopic procedure used to diagnose and treat selected conditions affecting the bile ducts and pancreatic ducts.

During the procedure, a doctor uses a thin, flexible instrument called an endoscope, which has a camera and light at its tip. The endoscope is passed through the mouth into the stomach and the first part of the small intestine. A small opening connects the bile and pancreatic ducts to the intestine. Through this opening, the doctor can introduce a thin catheter and inject a contrast dye to make the ducts visible under X-ray imaging.

Specialised instruments can also be passed through the endoscope to remove stones, widen narrowed areas, take tissue samples or place a stent to improve the flow of bile or pancreatic fluid.

Important: ERCP is now primarily used as a therapeutic procedure rather than for diagnosis alone. Tests such as ultrasound, MRCP and endoscopic ultrasound (EUS) may be preferred when the purpose is only to identify a suspected duct problem.

When Is ERCP Needed?

Doctors recommend ERCP when there is a specific problem affecting the bile or pancreatic ducts that may require endoscopic treatment.

Common situations in which ERCP Treatment is needed include:

1. Bile Duct Stones: Gallstones sometimes move from the gallbladder into the common bile duct. These are known as common bile duct stones or choledocholithiasis. A stone lodged in the bile duct can prevent bile from flowing normally and may cause pain, jaundice or infection. ERCP for bile duct stones helps doctors locate and remove the stones, often without the need for open surgery.

2. Bile Duct Blockage: A blockage in the bile duct can prevent bile from reaching the intestine. It may occur due to stones, strictures or growths affecting the bile duct or nearby organs. ERCP may be used to remove the blockage or place a stent to restore bile drainage.

3. Bile Duct Narrowing (Biliary Stricture): A biliary stricture is an abnormal narrowing of the bile duct. It may develop due to inflammation, previous surgery, injury or certain diseases. During ERCP, the doctor may widen the narrowed section using a balloon or place a stent to help maintain the opening.

4. Bile Duct Infections: A blocked bile duct can lead to an infection called cholangitis. This condition may cause fever, abdominal pain and jaundice. When infection is associated with an obstructed bile duct, ERCP may be required to drain the infected bile and relieve the blockage. The timing of the procedure depends on the severity of the infection and the patient’s condition.

5. Pancreatic Duct Problems: Certain conditions can cause narrowing, blockages or leakage in the pancreatic duct. In selected patients, ERCP may be used to place a pancreatic duct stent, improve drainage or manage specific duct-related complications.

6. Bile Duct or Pancreatic Duct Leaks: Injuries or complications following surgery or certain medical conditions may cause bile or pancreatic fluid to leak. ERCP may help manage selected leaks by placing a stent that supports drainage and allows the affected area to heal.

ERCP for Bile Duct Stones: How Does It Help?

One of the common reasons for performing ERCP is the removal of stones from the common bile duct. When gallstones move into the bile duct, they may become trapped and obstruct the normal flow of bile. This can lead to symptoms such as abdominal pain, yellowing of the eyes and skin, dark urine and fever.

During ERCP, the doctor may perform the following steps:

  1. Locate the stone: Contrast dye and X-ray imaging help identify the position of the stone.
  2. Open the duct entrance: A procedure called sphincterotomy may be performed to make stone removal easier.
  3. Remove the stone: Specialised baskets or balloons may be used to retrieve the stone from the bile duct.
  4. Place a stent if required: If complete stone removal is not possible or drainage is needed, a temporary stent may be placed.
  5. Check bile flow: The doctor assesses whether the duct is adequately cleared and bile can drain properly.

For larger or difficult stones, additional techniques such as balloon dilation or specialised stone-fragmentation methods may be required.

ERCP treats stones in the bile duct, but it does not remove the gallbladder. Patients with gallbladder stones may need a separate discussion with their surgeon about whether gallbladder removal is appropriate to reduce the risk of future episodes.

How Is the ERCP Procedure Performed?

The ERCP procedure is performed by a trained gastroenterologist or endoscopist in a hospital or specialised endoscopy unit. It generally involves the following stages.

1. Before the Procedure: Before ERCP, the doctor reviews the patient’s medical history, symptoms, scan reports and blood test results. Patients may be advised to:

  • Avoid eating and drinking for the period specified by the doctor.
  • Inform the doctor about blood thinners and other regular medications.
  • Mention any allergies, previous reactions to anaesthesia or existing medical conditions.
  • Inform the medical team if they are pregnant or may be pregnant.

Medication adjustments should only be made according to the treating doctor’s instructions.

2. Sedation or Anaesthesia: Medication is given to help the patient remain comfortable during the procedure. Depending on the patient’s condition and the hospital’s protocol, sedation or general anaesthesia may be used.

3. Inserting the Endoscope: The doctor gently passes the endoscope through the mouth, oesophagus and stomach into the duodenum, which is the first part of the small intestine.

4. Examining the Bile and Pancreatic Ducts: A thin catheter is guided through the endoscope into the opening of the bile or pancreatic duct. Contrast dye is introduced, and X-ray imaging helps the doctor examine the ducts.

5. Performing the Required Treatment: Depending on the findings, the doctor may remove stones, widen a narrowed duct, collect tissue samples or insert a stent.

6. Observation After the Procedure: Once the procedure is completed, the patient is monitored while the effects of sedation or anaesthesia wear off. Some patients may be discharged the same day, while others may need hospital observation or an overnight stay.

What Are the Benefits of ERCP?

ERCP offers several benefits when appropriately recommended for conditions affecting the bile and pancreatic ducts.

  • Minimally invasive approach: Treatment can often be performed through the mouth without making external surgical incisions.
  • Bile duct stone removal: It can help remove stones that obstruct the common bile duct.
  • Relief from blockages: It can restore bile drainage by removing an obstruction or placing a stent.
  • Management of narrowed ducts: Balloon dilation and stenting may help improve the flow of bile.
  • Tissue sampling: Selected duct abnormalities can be evaluated through tissue or cell sampling.
  • Targeted treatment: The doctor can examine the affected ducts and perform the required intervention during the same procedure.

The suitability and benefits of ERCP depend on the patient’s diagnosis and overall health.

What Are the Possible Risks and Complications of ERCP?

Although ERCP is an established procedure, it carries certain risks. The doctor will assess the potential benefits and complications before recommending it. Possible complications include:

  • Pancreatitis: Inflammation of the pancreas is one of the recognised complications of ERCP. It may cause abdominal pain, nausea and vomiting.
  • Bleeding: Bleeding may occur, particularly after a sphincterotomy. Most cases can be managed medically or with endoscopic treatment, depending on severity.
  • Infection: An infection of the bile ducts may develop, especially if drainage is incomplete or bile remains obstructed.
  • Perforation: In rare cases, an injury or small tear may occur in the digestive tract or ducts.
  • Reactions to Sedation or Anaesthesia: Some patients may experience breathing, heart or medication-related complications during or after sedation. The treating team may use preventive measures, such as appropriate medication and procedural techniques, to reduce the risk of complications.

ERCP Recovery: What Should Patients Expect?

ERCP recovery varies depending on the type of treatment performed, the patient’s health and whether any complications occur.

Immediately After ERCP: Patients are monitored until the effects of sedation or anaesthesia have sufficiently worn off. Temporary symptoms may include:

  • Mild bloating.
  • A sore throat.
  • Nausea.
  • Mild abdominal discomfort.

These symptoms may settle with time. The medical team will advise when it is safe to start drinking fluids and eating.

Food and Diet After ERCP: Dietary instructions depend on the procedure performed and the patient’s condition. Some patients may initially be advised to take clear fluids before gradually returning to their usual diet. Others may require specific dietary instructions or a longer period of observation. Patients should follow the diet plan recommended by their doctor rather than starting solid foods immediately without guidance.

How Long Does ERCP Recovery Take?

Many patients can return home on the same day after an uncomplicated procedure. Some may need overnight monitoring, particularly if the procedure was complex or the underlying condition requires further treatment. The time needed to resume normal activities depends on the patient’s recovery and the doctor’s advice. Patients should avoid driving, operating machinery or making important decisions for the period advised after sedation or anaesthesia.

Warning Signs After ERCP

Patients should seek immediate medical attention if they experience:

  • Severe or worsening abdominal pain.
  • Fever or chills.
  • Persistent vomiting.
  • Vomiting blood.
  • Black, tar-like stools.
  • Difficulty breathing.
  • Severe or worsening swallowing difficulty.

These symptoms may indicate a complication and should not be ignored.

ERCP vs MRCP: What Is the Difference?

Both ERCP and MRCP are used to evaluate problems affecting the bile and pancreatic ducts, but they serve different purposes.

Feature ERCP MRCP
Full form Endoscopic Retrograde Cholangiopancreatography Magnetic Resonance Cholangiopancreatography
Type Endoscopic procedure with X-ray imaging Non-invasive MRI-based imaging test
Main purpose Primarily treatment, with diagnostic assessment when needed Mainly diagnosis and imaging
Stone removal Can remove bile duct stones Cannot remove stones
Stent placement Can place duct stents Cannot place stents
Invasiveness Invasive endoscopic procedure Non-invasive imaging test
Risks Includes pancreatitis, bleeding, infection and perforation Does not carry the same endoscopic risks as ERCP

If a doctor suspects a bile duct stone but the diagnosis is not yet confirmed, MRCP or EUS may be recommended before deciding whether ERCP is necessary.

When Should You Consult a Gastroenterologist?

Certain symptoms may indicate a problem with the bile ducts or pancreas and require medical evaluation. Consult a gastroenterologist if you experience:

  • Persistent pain in the upper right or upper middle abdomen.
  • Yellowing of the eyes or skin.
  • Dark-coloured urine.
  • Pale or clay-coloured stools.
  • Unexplained fever with abdominal pain.
  • Recurrent symptoms associated with gallstones.

Fever, jaundice and abdominal pain occurring together may indicate acute cholangitis, a potentially serious infection that requires urgent medical assessment. Early diagnosis helps doctors identify the cause of the blockage and determine whether ERCP or another treatment is appropriate.

Conclusion

ERCP is an important endoscopic procedure used to treat selected conditions affecting the bile and pancreatic ducts. It is particularly useful for removing bile duct stones, relieving blockages, managing narrowed ducts and restoring the normal flow of bile. Understanding when ERCP is needed, how the procedure is performed and what to expect during recovery can help patients make informed decisions about their treatment. 

If you experience symptoms such as jaundice, persistent abdominal pain or fever associated with suspected bile duct obstruction, consult a gastroenterologist for timely evaluation. At Progress Gastro Care, patients can consult a gastroenterology specialist for the evaluation of bile duct and pancreatic conditions and guidance on appropriate treatment options.

Frequently Asked Questions

No. ERCP is an endoscopic procedure performed through the mouth using a flexible endoscope and specialised instruments. It does not usually require external surgical incisions.

ERCP may be recommended when gallstones move into the common bile duct and cause obstruction, infection or other complications. It can help remove these stones and restore bile flow.

The procedure is generally performed under sedation or anaesthesia to minimise discomfort. Some patients may experience temporary bloating, a sore throat or mild abdominal discomfort afterwards.

The duration varies depending on the complexity of the condition and the treatment required. Stone removal, stent placement and treatment of narrowed ducts may require different amounts of time.

Many patients recover from an uncomplicated ERCP within a short period and may return home on the same day. Recovery may take longer if additional treatment, hospital observation or management of complications is required.

Many bile duct stones can be removed during ERCP. However, large or difficult stones may require specialised techniques, more than one procedure or alternative treatment approaches.

No. ERCP is generally recommended when there is evidence or a strong clinical suspicion of a problem in the bile or pancreatic ducts that requires treatment. Gallstones confined to the gallbladder do not automatically require ERCP.