Implemented search patients