A 25-year-old woman is evaluated in the emergency department for a 3-day history of nausea with nonradiating epigastric burning. She also has had a 24-hour history of frequent black stools, fatigue, and lightheadedness. For the past 5 days she has been taking ibuprofen for migraine. She takes no other medications. There is no history of gastrointestinal bleeding, alcoholism, chronic liver disease, or bleeding disorders.

On physical examination, temperature is 37.0 °C (98.6 °F), blood pressure is 110/65 mm Hg supine and 92/53 mm Hg standing, pulse rate is 85/min supine and 115/min standing, and respiration rate is 14/min. Abdominal examination reveals epigastric tenderness without guarding or rebound. Rectal examination is positive for melena. Laboratory studies reveal a hemoglobin level of 9.2 g/dL (92 g/L) and a blood urea nitrogen level of 28 mg/dL (10 mmol/L); all other tests are normal.

After intravenous fluid resuscitation, upper endoscopy is performed and reveals a 1.5-cm duodenal bulb ulcer with a central, nonbleeding visible vessel.

Which of the following is the most appropriate management?