Conditions that occur when the thyroid or parathyroid produce either too much or too little of their designated hormones.