In addition to examining the esophageal and stomach linings, your gastroenterologist will be able assess the walls of the upper and lower gastrointestinal tract, which includes the colon and rectum. One important benefit to this procedure is that your gastroenterologist will also be able to view and study organs that are located close to the gastrointestinal tract, such as the lungs, liver, gall bladder, and pancreas.