Identifying clinical features in primary care electronic health record studies: methods for codelist development