Diagnosis of biliary diseases