A health care provider may take X-rays during the surgery to determine if stones are stuck in the common bile duct.