Medically it is diagnosed as Anorexia if your BMI is underweight, but if you have restrictive, purging, or binging habits, then there is a chance you have EDNOS, which is "Eating Disorder Not Otherwise Specified"  Source: have a few friends that struggle with eating disorders