To establish a DNR order, the patient, their family, and the healthcare team must have a thorough discussion about the patient's medical condition, prognosis, and personal preferences. The patient's primary oncologist or palliative care physician usually facilitates this conversation. Once the patient consents, the DNR order is documented in their medical records and communicated to all relevant healthcare providers.