adding ability to filter query patients results by population