I was there years ago and once your admitted the doctor has to approve you like that your not a danger to yourself or others before they will let you go home.
I know you get medical attention if needed but I'm not sure if you are free to leave once your admitted. If you are admitted though I would suggest staying and getting the help that they offer
Thanks! Your answer is awaiting moderation.