A diagnosis of typhoid fever can usually be confirmed by analyzing samples of blood, poo (stools), or pee (urine). These will be examined under a microscope for the Salmonella typhi bacteria that cause the condition.