I had an operation called roux-en-hepaticojejunostomy. They removed my gallbladder and choledochal duct at the same time, while building a new duct using the smalö intestine.
Even in such situation, I had no problem so far except a stomach pain occurring on my right side when I ingest too too much fat..