livesearch global function
livesearch patients function for homepage