(Posting on behalf of a community member, to ensure this gets documented for future)
Hello! I am trying to import observation data and I want the visit to remain open. However, when I import data using the CSV importer it is closing the visit and assigning it an end date. By default if I exclude the non-mandatory ‘Visit End Date’ field, the import assigns the visit a ‘date_stopped’ that is one second after the ‘date_started’/csv field ‘Visit Start Date’ (picture attached) . If I import a blank ‘Visit End Date’ the import still assigns it a ‘date_stopped’, as pictured, and when I import with an ‘NA’ it throws an error for date formatting. Is there a way to ensure the visit remains open for data I’m importing via the csv importer?
Here, it sets the END Date to midnight-1sec (end of visit start date), as the visitEnd Date.
I think this is what you also show in your screenshot. The Visit End Date is set to END of the day when the visit is started.
In summary, I think since it isn’t finding an existing Visit in the system to associate this data with, it is creating a new visit for that same date/time you mentioned in VisitStartDate column, and marking Visit as closed as midnight same day (11:59pm). I don’t think it will let you currently leave Visit as open in this scenario.
Thanks @sivareddy – so if encounter date is today, then it is assumed that visit is still open (since visit end date is in future… which is tonight at 11:59), which therefore the system doesn’t not automatically set. right?