updated so that when a html form creates a retrospective visit, the end date is set to 23:59:59.999