The malignancies causing extrahepatic biliary obstruction were pancreatic cancer ( n = 18 ) , stomach cancer ( n = 13 ) , gallbladder cancer ( n = 3 ) , common bile duct cancer ( n = 2 ) , and other cancer types ( n = 4 ) .