I actually heard an argument from doctors back when the Gila Regional Medical Center case was in the news, and they said, basically: the police are in charge of our safety, and can therefore do just about whatever they want.
“If you don’t agree to violate this person without their consent, don’t expect a prompt response when you dial 911 about an active shooter.”
This really needs to be made hospital policy, though, so it’s out of the decision-making hands of the doctors. The hospitals need to say that they won’t do any searches without consent. Isn’t this why hospitals have ethics boards?
Unfortunately, the people who own the hospital probably didn’t have to that the Hippocratic Oath.