Patient flow management before, during and after the Covid crisis: lessons and prospects for hospitals