Advance directives are legal documents that allow patients to express their wishes regarding medical treatments, including resuscitation, in advance. These directives are crucial in cancer care, ensuring that the medical team respects the patient's preferences when they are unable to communicate their decisions due to illness.