Medical malpractice is a legal cause of action that occurs when a medical professional deviates from standards in his or her profession, thereby causing injury to a patient.