When performing a Consult from a task, a new visit can be created, despite there being an In Progress visit for the same day. This occurs if there are previous COMPLETED visits that don't have an end date.
1. Create a COMPLETED visit for a patient, with no end date, for yesterday
2. Check-In the patient from Patient|Information, and select a work list. A new visit for today's date should be created
3. Consult from the task. Another visit will be created rather than selecting the visit from Check-In