I am sorry you are so frustrated, it can be maddening. It sounds like she needs a dual diagnosis facility that can address both issues. Keep working with the hospital social worker and whatever place they can find for her is better than as you say, being released and immediately calling her dealer.