You may have lost some bone mass that's why your doctor's don't want you to be strained from exercising. If you cut down on calories to lose weight but do not exercise, you do not only lose weight or fats, but also muscle and bone mass. You'll be better soon, just follow your doctor's orders.