I feel like periods in general should be given reasonable accommodation if your symptoms are so severe it hinders your ability to work.
Especially something as severe as endo I often times can’t even move and throw up and pass out due to pain but instead I lose my jobs due to excessive call offs and when they get my medical documentation they say a period isn’t a valid reason to miss work and to suck it up.