What pain medication does she take, whats her daily dose. Some more specifics can help with what sort of help she needs and what she can expect. The key is does she want to get off the opiates, its nearly impossible to get and stay clean if your not fully committed. All you can do is support her in her effort to get clean, try to be understanding and non-judgemental about her situation.
does she want to quit the pills? if so they are things you can do to help her detox...but sheh as to want it or it wont work.