Your doctor will ask questions about your medical history and symptoms. You may be diagnosed with GERD based on your symptoms or by taking medicine to see if your symptoms improve. Your doctor may need to look inside of your esophagus. This is done by passing a long, thin tube called an endoscope through your mouth and stomach to learn more about your symptoms.