School policy still has to follow the actual laws. Dismissing people for irrelevant mental issues can not legally be school policy (in the EU) as it's blatant discrimination.
It's a blatant breach of privacy and medical confidentiality. Comparing it to "cheating" is actually fairly despicable. We're not talking about malicious or manipulative behaviour, we're talking about someone suffering from an illness who took action to find treatment.