Diagnosis usually involves a combination of clinical examination and laboratory tests. Blood tests can measure levels of immune cells and antibodies. Specialized tests like flow cytometry can assess the function of different immune cell types. In some cases, genetic testing may be performed to rule out congenital immunodeficiency disorders.