A 50-year-old man presents to the general practice with a 3-month history of persistent heartburn and regurgitation, especially after meals. He has tried over-the-counter antacids with minimal relief. He denies any weight loss, dysphagia, or gastrointestinal bleeding. What is the most appropriate next step in the management of this patient?