Controlling working time in the ward and on the line