To look at the small intestine, the doctor may do a test called an upper gastrointestinal series, or upper GI series. The patient drinks barium, a chalky liquid that coats the inside of the small intestine, and then x-rays are taken. Barium shows up white on x-ray film, making any abnormalities stand out.