Well I work in an extra care facility in the office and there is no way, here, they are allowed to do that tou our Support Workers. We had one last year who was pregnant and she was on reduced hours and accomodated etc.
I think you did the right thing texting your boss and airing your views. You need to think of you and the baby now x