Diagnosis typically involves a combination of clinical evaluation, blood tests, imaging studies, and sometimes invasive procedures. Blood tests may reveal elevated levels of white blood cells, indicating infection, and elevated liver enzymes. Imaging studies such as ultrasound, CT scan, or MRI can identify obstructions in the bile ducts. In some cases, an Endoscopic Retrograde Cholangiopancreatography (ERCP) may be performed to both diagnose and treat the obstruction.