Because she knew this, she created Advance directive.
An Advance directive is a document that specify what actions should be taken regarding that person in case that he/she no longer medically capable to create his/her own decision.
In most circumtances, the rights to make decision will be transferred to close relative such as parents, spuse, or children.