NNot having slept or ate in three days certainly puts you in the manic realm. As to being your own doctor look where it got Freud. I would seek out professional help you can trust as soon as possible. Personally I would avoid the psych ward if you have a support system that can keep you out of danger till you have an appointment. Psych wards help people who are in danger of hurting themselves or others but does not do well for schizo-affective disorders or personality disorders. Your thoughts can race but if you don't act on them you will be all right. Having not eaten does not mean you are a danger to yourself. You may be able to go to the ER and make a request for one Ambian and not end up in the psych ward if you keep things simple. If I have missed anything in your request let me know.
Thanks for your advice.