Seizures

I’m pregnant and had a seizure while at work on two separate occasions. Are they allowed to let me work the day after I was transported to the hospital FROM WORK for having a seizure WHILE WORKING ?

Doctor told me not to work but I went in anyways. People are telling me that y job can get in trouble for allowing it.