A DNR order is a medical directive written by a physician that instructs healthcare providers not to perform cardiopulmonary resuscitation (CPR) if a patient's breathing or heart stops. This order is part of a broader category known as advance directives, which are legal documents that specify a patient's preferences for medical treatment in situations where they might be unable to communicate their wishes.