Create new visit if existing visit is for a different location
Description
When performing check-in, if there is an existing visit, but for a different practice location, create a new visit, if the existing visit is complete.
If not, prevent creating of a new visit until the existing one has been completed.
This is to avoid situations where: 1. a patient is treated at location A and the visit is completed 2. the same patient is treated at location B the following day. At present, this reuses the visit from location A.
When performing check-in, if there is an existing visit, but for a different practice location, create a new visit, if the existing visit is complete.
If not, prevent creating of a new visit until the existing one has been completed.
This is to avoid situations where:
1. a patient is treated at location A and the visit is completed
2. the same patient is treated at location B the following day. At present, this reuses the visit from location A.