endocrine diagnosis and treatment