The molecular crosstalk between genetics, immunology, and endocrinology