fixed bug where encounterDatetime was no longer getting returned by visit controller