A 55-year-old man is hospitalized for a 3-day history of melena and a 2-week history of epigastric abdominal pain. His medical history is notable for degenerative arthritis of the knee, for which he takes an NSAID.

On physical examination, blood pressure is 139/65 mm Hg and pulse rate is 75/min. Other vital signs are normal. Abdominal examination reveals epigastric tenderness to light palpation.

Initial laboratory studies reveal a hemoglobin level of 12 g/dL (120 g/L). An intravenous proton pump inhibitor (PPI) and intravenous hydration are initiated.

Upper endoscopy reveals three cratered, clean-based gastric ulcers smaller than 1 cm. The esophagus, stomach, and small bowel are well visualized, and no other source of gastrointestinal bleeding is identified. Gastric biopsies are taken to test for Helicobacter pylori.

The patient is examined 24 hours after admission. Vital signs are stable and the abdominal examination reveals diminished tenderness to palpation. Laboratory studies reveal a hemoglobin level of 11.5 g/dL (115 g/L).

In addition to discontinuing the NSAID, which of the following is the most appropriate management?