updated the way patient's visit dates are populated