Vitamin D also plays a role in preventing autoimmune diseases and pain, managing glucocorticoid-induced osteoporosis, and decreasing parathyroid hormone activity, followed by positive effects on pain. This evidence concerns the gene PTH and osteoporosis.