Sometimes we might start a consultation with the patient and then leave this patient open to be seen by another doctor later. We need to allow multiple doctors to attend the same patient. At the moment, if a second doctor opens a chat with the patient, they will see a "blank" chat and the messages typed there will never reach the patient.
To allow this dynamic we need that the messages exchanged through the chat can be seen by all doctors that open the patient chat.
My idea:
If the doctor that started the patient consultation is ONLINE, then another doctor cannot start a chat with the same patient (or it would be confusing to have two doctors typing in the chat).
If the doctor that started the patient consultation is OFFLINE, then another doctor can open the same patient, and when they start a chat the second doctor can see the previous chat messages exchanged with the first doctor.
Sometimes we might start a consultation with the patient and then leave this patient open to be seen by another doctor later. We need to allow multiple doctors to attend the same patient. At the moment, if a second doctor opens a chat with the patient, they will see a "blank" chat and the messages typed there will never reach the patient.
To allow this dynamic we need that the messages exchanged through the chat can be seen by all doctors that open the patient chat.
My idea:
Does that make sense? PVT me if it doesn't!