Electronic health record-based surveillance of diagnostic errors in primary care.