This cannot be the effect of anesthesia
She would need a detailed assessment by blood investigations, her
electrolytes
After any hip surgery, especially at this age, there could be some changes in her metabolism and routine physiology that could have psychiatric manifestations
Next Steps
you need to consult a psychiatrist or a physician to rule out medical causes for this. please consult as soon as possible as this is a serious condition