make a element plugin what have follow function
if database element1 status =" c" AND database element2 status = "yes" div contatiner is visible else div contatiner is hidden (simple css class call)
in the div container is a link what need call a search for actual element option
example : specialist A have qualification(element option) XYZ from a list
this means if a specialist goes out we display a search button what searches other specialists with same qualification
Butget 50 USD
I work as a PHP developer so this should a piece of easy for me. I can make that div appear based on data from your database with the search input and validation if needed.