This test looks for bilirubin in your blood or urine. The test is often done to look for liver problems, such as hepatitis, or blockages, such as gallstones.