The oversecretion of PTH is due to a parathyroid adenoma, parathyroid hyperplasia, or rarely, a parathyroid carcinoma. This disease is often characterized by the quartet stones, bones, groans, and psychiatric overtones referring to the presence of kidney stones, hypercalcemia, constipation, and peptic ulcers, as well as depression, respectively.In a minority of cases, this occurs as part of a multiple endocrine neoplasia (MEN) syndrome, either type 1 (caused by a mutation in the gene MEN1) or type 2a (caused by a mutation in the gene RET), which is also associated with the adrenal tumor pheochromcytoma. Other mutations that have been linked to parathyroid neoplasia include mutations in the genes HRPT2  and CASR.Patients with bipolar disorder who are receiving long-term lithium treatment are at increased risk for hyperparathyroidism. Elevated calcium levels are found in 15% to 20% of patients who have been taking lithium long-term. However, only a few of these patients have significantly elevated levels of parathyroid hormone and clinical symptoms of hyperparathyroidism. Lithium-associated hyperparathyroidism is usually caused by a single parathyroid adenoma. Secondary
Secondary hyperparathyroidism is due to physiological (i.e. appropriate) secretion of parathyroid hormone (PTH) by the parathyroid glands in response to hypocalcemia (low blood calcium levels). The most common causes are vitamin D deficiency (caused by lack of sunlight, diet or malabsorption) and chronic kidney failure.Lack of vitamin D leads to reduced calcium absorption by the intestine leading to hypocalcemia and increased parathyroid hormone secretion. This increases bone resorption.
A lack of 1,25 dihydroxyvitamin D3 can result from a deficient dietary intake of vitamin D, or from a lack of exposure of the skin to sunlight, so the body cannot make its own vitamin D from cholesterol. The resulting hypovitaminosis D is usually due to a partial combination of both factors. Vitamin D3 (or cholecalciferol) is converted to 25-hydroxyvitamin D (or calcidiol) by the liver, from where it is transported via the circulation to the kidneys, and it is converted into the active hormone, 1,25 dihydroxyvitamin D3. Thus, a third cause of secondary hyperparathyroidism is chronic kidney disease. Here the ability to manufacture 1,25 dihydroxyvitamin D3 is compromised, resulting in hypocalcemia. Diagnosis
The gold standard of diagnosis is the PTH immunoassay. Once an elevated PTH has been confirmed, the goal of diagnosis is to determine whether the hyperparathyroidism is primary or secondary in origin by obtaining a serum calcium level:

Tertiary hyperparathyroidism has a high PTH and high serum calcium. It is differentiated from primary hyperparathyroidism by a history of chronic kidney failure and secondary hyperparathyroidism.Hyperparathyroidism can cause hyperchloremia and increase renal bicarbonate loss, which may result in a normal anion gap metabolic acidosis. Differential diagnosis
Familial benign hypocalciuric hypercalcaemia can present with similar lab changes. In this condition, the calcium creatinine clearance ratio, however, is typically under 0.01. Blood tests
Intact PTH
In primary hyperparathyroidism, parathyroid hormone (PTH) levels are either elevated or "inappropriately normal" in the presence of elevated calcium.