The study investigates effects and safety of six months of vitamin D supplementation before and after surgery in primary hyperparathyroidism. Effects are assessed as changes in calcium homeostasis, bone metabolism, quality of life, and muscle strength and function.