The process of getting x-ray pictures of the esophagus or the upper gastrointestinal (GI) tract (esophagus, stomach, and duodenum).