For example, say Alice and Barbara legally married in some country where same-sex marriage is allowed. They then go to a country where same-sex marriage is not allowed. While there, Alice is run down by a car, rendered unconscious, and hospitalized. Barbara, being the next of kin, would "usually" get to decide what medical procedures Alice should undergo. But they are in a country where same-sex marriage is not recognized. Does Barbara still get to decide what medical procedures Alice undergoes?
I imagine this must have happened before, but I'm unable to find results for this with a Google search (e.g. there doesn't appear to be anything relevant in this link), hence I'm asking this question.
If this varies between jurisdictions, I'm interested in all of them. If there is enough variation that the question becomes too broad, assume the UAE.