Upper gastrointestinal tract radiography, also called an upper GI, is a special type of X-ray of the pharynx, esophagus, stomach and first part of the small intestine (also known as the duodenum). The X-ray, called a fluoroscopy, uses barium, which the patient drinks before the exam, as a contrast material.