Diagnosis and management of hyperthyroidism and hypothyroidism