fix bug in getting current_schedule
simplify patient sidebar schedule display