Allie, it sounds like she has an infection of the incision site! A bad one! She needs to be put on IV antibiotics immediately! This is one of the worst things that can happen in a hip replacement. She has been in the hospital quite awhile and they are full of germs. Her immune system is probably also compromised, making her more susceptible to infection.
As for detox, if she hasn't been drinking all this while that she's been in the hospital, she is already detoxed. Treatment is a different matter. She would need at least 30 days of inpatient alcoholism treatment to get a grip on her drinking problem, after which she should follow up with AA or alcohol counseling. A few days, or even 30 days, will not make a difference.
For right now, make sure she does not get discharged until the infection is under control. If she IS discharged, she will need in-home IV antibiotic therapy. Over here we have Skilled Nursing Units, which are kind of step-down units after hospitalization, for those who require nursing care. If you have something like that where you are, that is also a possibility.
Forum moderator - Hepatitis
"But that was yesterday, and I was a different person then."
Lewis Carroll, Alice in Wonderland