The procedureâs medical name is actually a combination of the names of three different procedures that are usually performed collectively: 1  Esophagoscopyâlooking inside the esophagus for hiatal hernias, polyps, strictures, etc.  Gastroscopyâlooking inside the stomach for ulcers, polyps, inflammation, etc.