Backend Support for Service Delivery Queues / Workflows

So previous location is captured in the model, but it’s part of the encounter_status_history in the above diagram.

queue_rooms, i.e., where the patient currently is (if I’ve got this right) could be modelled as the location attached to the current encounter_status_history record.

As I think we discussed previously, these could be converted into, e.g., a visit-specific attribute (since they’re data about a visit). That way, the visit_number only needs to live in one place (unless there’s a need for a visit_number per queue?).

Could you give me an example of this? I’d think that when the order gets created it’s generally attached to some sort of encounter right?