A diagnosis of typhoid fever is mainly confirmed with the analysis of the blood, pee, or poop samples.