A 28-year-old woman was admitted to the hospital 3 days ago with fever, chills, dysuria, flank pain, and nausea. Empiric ceftriaxone was initiated for pyelonephritis. She reports her nausea is improved, and she has no vomiting. Medical history is unremarkable, and she takes no other medications.

On physical examination, temperature is 37.6 °C (99.7 °F), blood pressure is 106/70 mm Hg, pulse rate is 78/min, and respiration rate is 16/min. She has minimal left costovertebral angle tenderness. Bowel sounds are normal.

Laboratory studies show a leukocyte count of 9300/µL (9.3 × 109/L) and serum creatinine level of 0.7 mg/dL (61.9 µmol/L). Urine and blood cultures grow Escherichia coli sensitive to ampicillin, ceftriaxone, trimethoprim-sulfamethoxazole, and ciprofloxacin. The organism was also sensitive to nitrofurantoin on the urine panel.

Which of the following is the most appropriate treatment for this patient at this time?