Can someone with OCD or anorexia join the military?

From the information I have gotten, it all depends if u can get a waiver. Most of the time u can, depending if you are not having any more trouble with the disorder... U need documents from a doctor stating that you are ok, and arent sick anymore with the disorder.