Sometimes deficiencies occur due to lifestyle choices, and sometimes they are a consequence of an ailment. For example, if you have diabetes, changing your food habits may help you deal with diabetes better, but it cannot be said that it will also cure you of bone problems. If your bone -related problems (occurring due to deficiencies) are confirmed after the bone test and if they are being caused due to lack of proper food, then you can create a diet chart for you for proper supply of calcium and other elements. To take care of Vitamin B12 deficiency, maybe you can spend more time in the sun.