finish the implementation of the simulation of one patient