Doctor’s note membership cancellation

Has anyone had to cancel their membership for a medical reason, like an injury or pregnancy, childbirth, etc? If so, do you still have to pay the termination fee? I remember reading someone say that with a doctor’s note or something, they may waive the fee…I’m just curious how that works - thanks for any insight!