The study of the structure and function of the endocrine system, including the relationship between hormones and organs.