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."
There are many resources available online to assist and guide you in writing your Advance Directive.