This test is performed to measure the levels of bile salts in a patient’s body fluids, such as blood, urine, or cerebrospinal fluid. It can help diagnose liver or gallbladder diseases, such as cholestasis, liver cirrhosis, hepatitis, and liver cancer.