fixing patients search pagination