CYA
If the HR Dept. of the same company is telling you that I would not think you should not have to worry. And I would think if the HR Dept. is worried about legal action they would have a little talk with your supervisor.
It seems pretty obvious to me that if you have been suffering from depression it would effect your work. But if you have been honest about it that is all you can do.
I don't know if I would have had a legal case or not. I got fired from my last job for missing to much work due to depression. I had doctors notes. Was on state disability for awhile. I called my field foreman every morning and emailed the main boss all the time on my status. They still fired me. Maybe I could have done something about it. I didn't realize the FMLA was a year so that wouldn't have worked. I was so depressed I couldn't return to work anyway since then. If you can get FMLA soon I would do it. I know this probably doesn't make you feel better but that is my experience. Things will work out one way or another.
I dunno if this site will help any. We do have rights.
Welcome to DRC of Arkansas | Disability Rights Center of Arkansas