Fix Appoiments and Encounters report to sort by visit date where there is no appointment.
Correct missing instances of xl in various files.