an accurate diagnosis is obtained by endoscopic examination