Remove the S.No. from the patient view tables.
Intialize ne visit doctor/department from any selected previous visit

Ont he patient view page if any of the older visits are selected that
would be used to initialize the details of the new visit.