Resolve "exceeded visit status"
This MR modifies behaviour of "visit status" for exceeded visits. Up to now every visit that wasn't finished and had end date before current date was marked as exceeded. The change modifies this rule so:
- visit that wasn't finished and had end date before current date and there are no scheduled appointments for this visit is marked as exceeded
- visit that wasn't finished and had end date before current date and there is at least one scheduled appointment for this visit is marked as "in progress"
Closes #219 (closed)
Edited by Piotr Gawron