<human>: I have been diagnosed with Bipolar disorder and receive VA compensation for it for quite some time. So I had a job that required an insane amount of attention to detail, I wasn't doing a terrible job, but I did forget some thing, and get mixed up. A few months ago I got unofficially written up for errors, poor work product est... Things got better I found some solutions. Even though I have had this diagnosis for some time I did some research and found that it is common for people with bipolar to have issues with concentration. Well I get a little help with some ADHD meds from my doc, it helps...some. Mind you I am not a complete f#@k up, they did keep me around for about a year. So yesterday I finished some paperwork and it was wrong, I overwrote a file, just stupid stuff. Well I get an official write up. After I have a one-on-one with the head guy (its a small office) after my supervisor leaves. While talking about the issues and how it can be resolved I disclose that I have bipolar disorder and I think that the meds may be making things harder, brain fog and the like, I say I am changing medication adding the ADHD stuff, he is ok with it, says he takes some medication too, and suggests that I talk to my doctor and adjust my medication. Well this morning rolls around and I go and talk to my immediate supervisor and thing of solutions. Day goes on and the head guy calls me in and the HR lady is there. They tell me they are letting me go because I am on medication, and the work they do is safety critical. I had no chance to make any personal changes, I did not explicitly say that I needed reasonable accommodation, but I did say that I think the medication because of the Bipolar is causing issues. Noted that the job was to program control systems for the railroad, the work needs to be very safe and all that, but I am just a low level employee and my work gets checked three or more times.

Can you give me the gist of the text in a nutshell?
<bot>: Makes some mistakes, less than stelar performance, Bipolar more than likely the cause, get written up, confide that I have Bipolar and am on med, fired the next day because I am on meds.