Assessing the body’s immune response and diagnosing autoimmune diseases and allergies