Vitamin D is useful in people with all different types of health issues. CKD is the slow loss of kidney function over time. The main function of the kidneys is to remove wastes and excess water from the body. This loss of function usually takes months or years to occur Patients with CKD often have low levels of vitamin D in their blood.