A HIDA scan can help diagnose biliary atresia or other problems with the bile ducts. It can also help identify complications after surgery, like fistulas.