Spotting professional negligence before it happens