Whether or not there are legal bars against your being fired for being ill may depend upon what state you are in, and other very specific issues. The Disabilities Act, for example, has been held to not apply to employees of the states or municipalities (by the Supreme Court). You might be able to find out if there is a Legal Aid office somewhere near where you live and work. You should definitely document the illness with any Human Resources/Personnel office where you are employed if only to counteract any bad job performance report from the person you are working for. But whether there are any wiser, kinder heads in your workplace with authority over your boss is going to be an issue, too.
I am really sorry you are going through this problem. We have seen this happen to others from time to time. One lady posted, though, that she had found a new job later, with terrific people. If you do lose your job, I hope you have the same good fortune to find a job with people you can like and respect.
Bobbi — NGDF Online Facilitator