Bile is a yellow-green fluid that contains water and organic molecules such as cholesterol, bile acids, and bilirubin. In humans, the two main function of bile are digestion and absorption of fats and eliminating bile salts from the body by secretion into bile. Adult humans produce around 400 to 800 ml of bile daily. In humans and most vertebrates, bile is produced by the liver. The gall bladder holds the bile produced in the liver and when the organism eats, bile is discharged into the duodenum. The formation of bile salts starts with the breakdown of red blood cells.
This video explains how to detect the presence of bile salt in urine.