ER NURSE OR DOCTOR HELP?

My younger sister showed up a few days ago. Homeless and on drugs (heroine). Early this morning she woke up sick, like extreme flu like symptoms I guess I would compare it to. She said she was going through withdraw and to please help her.

It got worse. Worse than anything we’ve ever seen. She was begging to die and so my mom called an ambulance. We have no clue about this stuff. Here are my questions...

what will happen at the ER?

Will they help her get into a rehab or some type of help? Will they stop the pain and let her leave?