Usually if you end up in the ER, they will assess your psychological state and determine whether they need to admit you to a psych ward. I am sorry you are dealing with this situation and I hope that you will find the help that you need. Suicidal ideation is really miserable, I have experienced it a lot. If all else fails, in an emergency you can call a hotline, also. Please be gentle with yourself and I hope you feel well soon.