modified the code to redirect to next task of patient after print_and_redirect