Your mother is a Diabetic and underwent hip replacement
She is not very keen on diet restriction.
Now her incision site is infected.
Your mother would have developed infection due to hyperglycemia
or delayed wound healing
or any other surgical complications.
are more prone for infections and easy spread due to uncontrolled blood sugar.
Containing the infection is also a challenge with them.
Infection and sepsis may cause vomiting.