Identifying diagnostic opportunities in primary care