Diagnosis usually made by cholangiography either preoperatively by endoscopic retrograde cholangiopancreatography (ERCP) or intraoperatively at the time of cholecystectomy. Ultrasonography may reveal dilated bile ducts but is not sensitive for detecting CBD stones (Table 150-1).