When a medical procedure is performed on a patient in whom an implantable medical device is implanted, the medical procedure may have undesired effects on the medical device, such as triggering a response that initiates therapy by the device that is unnecessary and potentially dangerous to the patient. Systems and methods may facilitate performing of such medical procedures on such patients by automatically reprogramming the medical device, monitoring for one or more detectable characteristics associated with the medical procedure to be performed, and automatically restoring normal operation of the IMD after the medical procedure is completed.