An abnormal functionality of the thyroid gland. The phenotype is HP_0002926 (Abnormality of thyroid physiology). Also known as: Abnormal thyroid function.