An advance directive is a legal document that specifies a person's wishes regarding medical treatment in situations where they are unable to communicate their decisions. For cancer patients, this can include choices about emergency care, life-sustaining treatment, and other critical medical interventions.