A 25-year-old man is evaluated in the emergency department for a 1-day history of brown urine, fatigue, and shortness of breath. He was diagnosed with a urinary tract infection 4 days ago, for which he was prescribed trimethoprim-sulfamethoxazole. Medical history is otherwise unremarkable. He is black.

On physical examination, temperature is 37.2 °C (99.0 °F), blood pressure is 110/75 mm Hg, pulse rate is 90/min, and respiration rate is 24/min. BMI is 23. Scleral icterus is apparent. Abdominal examination is normal with no indication of hepatosplenomegaly.

Laboratory studies:

Hematocrit

21%

Platelet count

215,000/µL (215 × 109/L)

Reticulocytes

10% of erythrocytes

Bilirubin, total

5.0 mg/dL (85.5 µmol/L)

Lactate dehydrogenase

350 U/L

A peripheral blood smear is shown.

Trimethoprim-sulfamethoxazole is discontinued.

Which of the following is the most appropriate diagnostic test to perform next?