Diagnosing immunodeficiency disorders often involves a combination of medical history, physical examination, and specialized tests. Blood tests can measure levels of immunoglobulins and other immune cells. Genetic testing may be used to identify specific mutations in primary immunodeficiencies.