The treatment for each immunodeficiency disorder will be tailored to its specific conditions. For example, AIDS causes several different infections. Your doctor will prescribe medications that are appropriate for each infection. Secondary disorders can be prevented in a number of ways. For example, it’s possible to prevent yourself from getting AIDS by not having unprotected sex with someone who carries HIV.