As is:
Visit is selected by the visitUuid sent in the EncounterTransaction. Within the visit, the encounter is filtered based on the following logic, in that order
Regular Consultation
Retrospective
Visit Document
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
To be:
Objectives:
Note: Visit Document matching can be modelled as onBehalfOf and the time fixed to one specific time of a day as in retrospective