You are right and it is criminal that she was put in this position. I do not understand how any court could rule that she had no standing. Her religious stance was well known, if the hospital had a problem with it they should have told her so long ago. She was ambushed, pure and simple.
I’m afraid that she would have had to specifically refuse to comply and been fired to show damages.
I think the lesson is to insist on doing the right thing, and let the chips fall where they may.