ERCP is performed under general anesthesia, in a room equipped with an X-ray image intensifier. A side-viewing endoscope (duodenoscope) is used to face the papilla (the opening of the bile and pancreatic ducts). The bile ducts are then cannulated with a guide wire, which is used to pass instruments to opacify, dilate, clear or stent the bile duct depending on the type of lesion.
The first step of treatment is to cut the sphincter (endoscopic sphincterotomy) with an electric scalpel. Stones can then be removed with a balloon, sometimes after being crushed with a snare. If there is a narrowing (stricture), it can be dilated with a balloon or a dilator; a temporary or permanent stent often needs to be placed in this case.