There are a number of ways to treat this but the most common method is an ERCP (endoscopic retrograde cholangio – pancreatogrpqahy) – see link under procedures for further information.