Apparently she didn’t have a directive to physicians in place? This is precisely why we tell all our clients to get their wills, POAs and directives, because when you need it, it’s too late to get it.
I worked in an IT department for a large medical system. The first thing they asked at every encounter was do you have a healthcare directive and where is it stored. If the patient didn’t have one the provider was supposed to talk to them about getting one.