Patient flow and logout