The issue is that many business owners will be held liable for the actions of a person under the influence while at work because they allowed it to happen.
There needs to be a balance between employee and employer rights or complete tort reform to make the person under the influence completely responsible for their actions.
You can therefore check, without prejudice, if a worker is capable of doing that job, without invasive inquiries about their bodies and private life. And should. And should be legally barred from otherwise testing employee competence.
But yes, I agree that there is a problem with the current diffuse responsibility that creates terrible incentives for everyone.
What happens when someone being pregnant affects their job?
If you can fire someone for taking a drug to fix some ailment that they never choose to have due to the impact on their performance, then it would make sense that one could fire someone for choosing to become pregnant once it impacts their performance. Both or neither.
It is -- reasonable accommodation for temporary disability and mandatory medical leave for medical conditions (including those resulting from the requirements of treating some other condition) that can't be accommodated are typical requirements in civilized countries.
I wouldn't expect the needed doses to be very high? Then it wouldn't be an issue in the same way it shouldn't be a problem to have a single drink before work and a BAC of .02
If the prescription unavoidably interferes with work competence then I'm not sure where things go other than "complicated".