In this case, your doctor may suggest surgery to bypass the blockage in your bile duct or digestive system and relieve the jaundice. This is quite a major operation. If you are considering whether to have this type of major surgery, you may want to talk it over with your close family and friends.utting a stent in by endoscopy. After you have had a sedative injection, the doctor puts a tube called an endoscope into your mouth and passes it down your throat to your stomach. The tube passes through to the beginning of the small bowel (your duodenum) and the opening of your bile duct.