Medical malpractice refers to a legal cause of action that occurs when a healthcare professional, such as a doctor, nurse, or other medical provider, deviates from the accepted standard of care in the medical community, resulting in harm or injury to a patient. Medical malpractice can involve errors in diagnosis, treatment, aftercare, or health management.