maternity leave?

when did you guys take your maternity leave? i'm 26 weeks but have a shorten cervix and i'm close to having an open cervix. My doctor put me on a hormone to stop my cervix from going into labor this early. I work at a nursing home and it's not good to lift, they don't follow my restrictions so i'm just thinking about going on maternity leave. What do you think i should do?