New assignment is created
The assignment is pushed in open assignments socket based on doctor's availibility condition check.
Assignment's status will be "IN_PROGRESS"
System waits for 10 mins. Doctors have 10 mins to respond to the assignment created. Post 10 mins, system will check if any doctors have opted in or not.
PT30S
This gateway checks if any doctors have opted in for the assignment.
This gateway checks if the assignment is in round 2 or in round 1? If it is in round 1, the assignment is created with round 2. if it is round 2, assignment is moved to status BACKUP.
CC should be notified when round is completed and only when any of the doctors have opted in.
Assignment's status will be "SELECT_DOCTOR"
When Doctors opts in for the assignment, after the assignment wait time, notification should be sent to command center saying round is completed and doctors have opted in
Command Center has 10 mins to select a doctor
PT1M
Notification should be sent to selected doctor for his acknowledgment.
If this is the second doctor, notify other doctors as well for their non-selection.
Assignment's status will be "AWAIT_ACKNOWLEDGE"
If CC doesn't select a doctor in their alloted time, system will automatically select doctor.
Doctor Acknowledges the assignment
Assignment's status will be CONFIRMED
PT30S
At this step, it will check if doctor checks in or not. If not, CC has option to cancel the request, if yes, Assignment status's will be CHECK-IN.
When doctor checks-in, requesting physician/cc will be notificed for their arrival.
This service will set which doctor was this who didn't acknowledge
Is this is the second doctor, system will move the assignment to backup
CC Acknowledges the Backup request with all the details of the backup doctor
Assignment's status is ACKNOWLEGE_BACKUP
When the assignment's status is acknowledge backup, assignment flow is ended
CC will be notified when the doctor acknowleges the request.
Email will be sent to Requesting physician
CC can cancel the assignment if doctor is not responding.
Assignment Flow will stop here and Assignment's status will be CLOSED.
This service task will notify cc and requesting physician for doctor's arrival at the hospital.
PT2M
Requesting physician, nurse, patient and command center will be sent a survey form after x hours of doctor checkin
This will check if the survery reminder flag is true or not in the system. If true, then only it will send the survey reminders.
This timer will wait for the specified time after which reminder needs to be sent for survey.
PT10M
This will send the survey reminder for surveys.
This service task checks if the maximum allowed round for the assignment is reached or not