If you are a harm to yourself or others is one of the main determining factors.
If your not then usually you can be set up with a pdoc and T to help you manage your symptoms and move forward onto a healthy emotional well being.
I have been Inpatient many times, I was a danger to myself. It's a great place to be if you need to be watch 24/7 and they have the ability of having med changes done much quicker in there than have to make slower changes outpatient.
Stay safe