It is recommended when people either do not respond well to treatment or have alarm symptoms, including dysphagia, anemia, blood in the stool (detected chemically), wheezing, weight loss, or voice changes. Some physicians advocate either once-in-a-lifetime or 5- to 10-yearly endoscopy for people with longstanding GERD, to evaluate the possible presence of dysplasia or Barretts esophagus.Biopsies performed during gastroscopy may show:

Edema and basal hyperplasia (nonspecific inflammatory changes)
Lymphocytic inflammation (nonspecific)
Neutrophilic inflammation (usually due to reflux or Helicobacter gastritis)
Eosinophilic inflammation (usually due to reflux): The presence of intraepithelial eosinophils may suggest a diagnosis of eosinophilic esophagitis (EE) if eosinophils are present in high enough numbers. Less than 20 eosinophils per high-power microscopic field in the distal esophagus, in the presence of other histologic features of GERD, is more consistent with GERD than EE. Goblet cell intestinal metaplasia or Barretts esophagus
Elongation of the papillae
Thinning of the squamous cell layer
Dysplasia
CarcinomaReflux changes that are not erosive in nature lead to "nonerosive reflux disease". Severity
Severity may be documented with the Johnson-DeMeesters scoring system:
0 - None
1 - Minimal - occasional episodes
2 - Moderate - medical therapy visits
3 - Severe - interference with daily activities

Differential diagnosis
Other causes of chest pain such as heart disease should be ruled out before making the diagnosis. Another kind of acid reflux, which causes respiratory and laryngeal signs and symptoms, is called laryngopharyngeal reflux (LPR) or "extraesophageal reflux disease" (EERD). Unlike GERD, LPR rarely produces heartburn, and is sometimes called silent reflux.
The prevalence rate of GERD in developed nations is also tightly linked with age, with adults aged 60 to 70 being the most commonly affected. In the United States 20% of people have symptoms in a given week and 7% every day. No data supports sex predominance with regard to GERD. History
An obsolete treatment is vagotomy ("highly selective vagotomy"), the surgical removal of vagus nerve branches that innervate the stomach lining. This treatment has been largely replaced by medication. Vagotomy by itself tended to worsen contraction of the pyloric sphincter of the stomach, and delayed stomach emptying. Historically, vagotomy was combined with pyloroplasty or gastroenterostomy to counter this problem. Research
A number of endoscopic devices have been tested to treat chronic heartburn. Endocinch, puts stitches in the lower esophogeal sphincter (LES) to create small pleats to help strengthen the muscle. However, long-term results were disappointing, and the device is no longer sold by Bard. Stretta procedure, uses electrodes to apply radio-frequency energy to the LES. A 2015 systematic review and meta-analysis in response to the systematic review (no meta-analysis) conducted by SAGES did not support the claims that Stretta was an effective treatment for GERD. A 2012 systematic review found that it improves GERD symptoms. NDO Surgical Plicator creates a plication, or fold, of tissue near the gastroesophageal junction, and fixates the plication with a suture-based implant. The company ceased operations in mid-2008, and the device is no longer on the market. Transoral incisionless fundoplication, which uses a device called Esophyx, may be effective.