In an ideal world, everyone would like the comforts of their home loo - privacy, just their own use etc.
Studies show 80% of people refrain from using toilets outside the home. I think it is more subtle and this figure obviously changes depending on location.
Making all out-of-home toilets cubicles completely private will lead to more deaths and more sexual assaults. It is situational but that’s what will happen overall. I track the changes. Making more out-of-home toilet cubicles completely private will still lead to more deaths and sexual assaults because there will be more locations for these to happen.
The most common call out for London fire brigade? A collapsed person behind a locked door.
Designers have tried to find ways of keeping toilets safe whilst completely private. For example, proper building regs mean no public toilet door is truly secure as they need to have a mechanism to open and pull the door outwards so you can get to a body. Stickers aren’t going to work. Currently alarms aren’t pulled when someone is attacked or falls ill in disabled toilets due to several reasons (pull cord doesn’t work or is tied up, people are too embarrassed, person is too ill to reach, person wants harm to come to themselves, consciousness is impaired before collapse, ‘freezing’ response, it’s too dangerous, it does work but no one attends). These are the things that have been tried: heat sensors, weight limits that open doors to prevent 2 people being in the same toilet, intercom systems that send emails to wardens if a person mentions calls out a certain phrase or sound, making the cubicle so small you can physically only fit one person in, doors springing wide open after a certain occupancy time. None of them are as cheap, easy to maintain and reliable as a floor-to-door gap for instantly knowing if someone is in danger.
Going back to your examples, your office loos are like a home situation in that you had the ‘luxury’ of being private whilst ill safely because it sounds like you are a healthy person normally and you weren’t alone - people knew where you were and care for you and would assist quickly. This is the best situation. I think you are lucky to be in this situation at work and I don’t think it was risky.
People with medical conditions and those who haven’t got a person in the actual vicinity who knows they are ill and will check on them, haven’t got those luxuries. Neither has anyone led/pushed into their cubicle where people don’t come to their aid. This can be in surprisingly public places.
If you were on your own in the office, I would recommend the office door being unlocked, having a phone next to you getting as close to the entrance as possible and phoning someone to come and check on you physically. This is the same advice paramedics give people who live on their own who call them.