I have the same issues at my work. I'm a teacher and I get told that working in either manic or depressive episodes can endanger the kids. I submitted my letter to Human Resources. They can't identify your illness directly to your boss but can give them the modifications you need. You need to take care of yourself. Work will go on without you and all will be fine. I missed 31 days last year because of rapid cycling.
Take care of yourself!!! That's the most important thing

.