DNR orders are typically established through discussions between the patient, their family, and the healthcare team. This process involves an in-depth conversation about the patient's medical condition, prognosis, and personal preferences. The patient or their legal representative must provide informed consent for the DNR order to be valid.