No clue about this - I am completely without any formal medical training. My guess is that your coach would say you must follow your doctor's guidance... Most docs are not smart about nutrition and weight loss.
You need advice from an IP knowledgeable nutritionist who is also knowledgeable re bone health.... Maybe asking your doc for a referral to a nutritionist who can tell you what foods and macros are most beneficial to your bone healing. Then compare to the IP foods and macros and make your own assessment....
Maybe following the diabetic alternate IP protocol that gives you a dairy, a fruit and a grain each day might be a smart shift during your recuperation from surgery. Good nutritionist should give you the data you need to determine this.
Or phase into maintenance for a month or so until you are past the early healing phase.
One thing for sure - bouts of constipation are common for many on IP - Percocet almost always brings on constipation. Have some smooth moves while you are on opioid pain meds, or ask doc for best recommended stool softener to offset that condition.
I commend you for even trying to be on a diet while you deal with broken femur. Hang in and make the most of your physical therapy as you recuperate.
Best wishes for a swift recovery!
:get well: :get well: :get well: