refactoring filter_atendimentos method
Building the filter mecanism to graph creation, and fixing redirecting bug.