After ruling out heart and lung diseases, the doctor suspected methemoglobinemia, a rare hereditary blood disorder that results from excess levels of methemoglobin in the blood.