Advance directive

noun a legal document (as a living will) signed by a competent person to provide guidance for medical and health-care decisions (as the termination of life support or organ donation) in the event the person becomes incompetent to make such decisions

Merriam-Webster's Collegiate Dictionary