When the courts get it wrong on medical malpractice claims