The American Medical Association’s Code of Medical Ethics has an opinion titled “Terminating a Patient-Physician Relationship.” It sets conditions for a physician who withdraws from a case.
When considering withdrawing, physicians must “Notify the patient (or authorized decision maker) long enough in advance to permit the patient to secure another physician.”