- This test measures the amount of bilirubin in the blood. Bilirubin is produced by the breakdown of haemoglobin, the oxygen-binding protein in red blood cells. Bilirubin is processed in the liver. If liver cells are damaged, it can escape into the bloodstream.