IANAL but I don't think it's necessarily illegal by default under the ADA. The first thing the employee has to do is establish that their condition falls under a protected class and then they can request an accommodation. If the employer can demonstrate that there's no way to reasonably accommodate the employee then I believe they're off the hook - that is a much higher burden for a large company to satisfy than say for a small 10 person start-up.