Setting Global Link query for a doctype

Hello, i have a doctype called Employee, which is being used in a lot of doctype as a link field, so there is a certain filter that is being applied which makes me to override the link query in multiple doctypes, how can i make a query of the employee doctype such that whenever it is used as link field, that custom query kicks in ?

Thanks