Oh, not sleeping or eating can induce a manic state, not only make a current state worse! I remember what threw me out of my depression was staying up long hours doing hard housework moving my room from one side of the house to the other. I wasn't eating well because I was busy, I was drinking caffeine (not THAT much though) to keep me awake, & the next day, I FELT the shift more readily than I ever have.
I was in a whirlwind, super severe mixed mood for about a week before it receded into my usual mania. It's considered "highly severe" as far as every online quiz has told me, but before the psychotic symptoms arose, I never thought it to be much of a problem. Hahaha goes to show how wrong I was.

But anyway, it's really important to try to recover from your eating disorder, both for your mental & your physical health. I know you don't need to hear it from us, on top of those doctors telling you what to do, but really. Having both disorders, they feed one another, & you're not going to feel healthy/functional until you are able to regulate yourself. Not eating & the stress that surrounds eating feeds bipolar, but some phases of bipolar give you worse anxiety & not want to eat. Just watch yourself, hun. : ]