AmeriHealth of New Jersey and its contractor for mental health claims have settled a class-action suit alleging they shirked their statutory obligation to cover treatments for eating disorders.

The federal court suit alleged that AmeriHealth, of Iselin, and Magellan Health Services of Avon, Conn., wrongly categorized the disorders as nonbiologically based mental illnesses to avoid New Jersey’s Mental Health Parity Law, which requires biologically based mental illnesses to be covered at the same level as other medical conditions.