Barium ingestion
An upper GI series is performed to examine the esophagus, stomach, and small intestine. The purpose of the test is to detect abnormalities in those areas.