Due to a wrong loop condition , in each
period of time, the last
patient for whom data has been entered is
being ignored. If only a single patient is entered, an empty line which
cannot be handled by the function for the graphical display is
produced in the output.