It requires thoughtful introspection and conversation with family members. The American Bar Association describes the process this way: "Good advance planning for health care decisions is, in reality, a continuing conversation about values, priorities, the meaning of one's life, and quality of life."
Many online resources are available to assist you in writing your Advance Directive.