Processing errors in patient data