-
Notifications
You must be signed in to change notification settings - Fork 2
Project Milestone 2
| Virtual Triage | The application which allows nurses to assign priority the registered patients and place them in a priority queue, to be notified when the emergency department is ready to serve them. | |
| VTTicket | The ticket created when a patient enters the triaging service. Includes relevant personal information and affliction so that nurses can triage them accurately. | |
| VTQueue | The queue in which VTTickets are stored, and nurses pull out of to assign priority and as a consequence triage. | |
| MedicalTicket | The object a VTTicket turns into after it's been triaged and assigned a priority by the nurse. | |
| MedicalQueue | The queue in which MedicalTickets are stored, and doctors pull out of to treat. | |

- A Aatient includes their personal info. They can register, login, logout, and enter the triage. They create VTTickets, and can be associated with MedicalTickets
- An Admin manages doctor and nurse accounts. They login and logout, and edit medical accounts.
- A Doctor account is created by an Admin. They can address MedicalTickets.
- VTTickets are created when a Patient enters the triage, and belong to VTQueue.
- EmergencyDepartment represents a hospital, and has it's own MTQueue.
- MedicalTickets are triaged VTTickets, have a priorty and belong to an MTQueue. The priority of each ticket is updated every 30 mins.
The patient logs into their account, which is validated against the database. The form is then switched to a register form, where the patient enters their health info, which is then validated. This creates a VTTicket, which is added to the VTQueue. That VTTicket is now triaged by a nurse, who adds a priority, which gives it a position in the MTQueue. Every 30 mins, the priority of each ticket in the queue is incremented and resorted, until a doctor treats the tickets.
A nurse accesses the VTQueue, and is served the first ticket in the queue. The nurse then assesses the ticket, assigns it a priority, which turns it into a MedicalTicket, which gets added and sorted into the MedicalQueue. Every 30 mins, the priority of each MedicalTicket in the queue is updated to reflect the passing of time of each injury.
The patient enters their info into a form. If their affliction is serious and time sensitive, they are given a notification to get off the application and call 911 immediately. If not, they are added to VTQueue, waiting for a nurse to triage them. If there is a duplicate entry, the entry is rejected.
When a doctor picks up a ticket, the patient is notified that the department is ready for them.
The patient enters their personal info. If any of it is invalid, then they are served an error. If not, this info is added to the database. If there is a duplicate person, then the registration is rejected. If not, the patient is logged in and directed to the landing page.
MTQueue is created empty. When a MedicalTicket is added, it's added in it's proper position, so the queue is sorted. When any more tickets are added, or a doctor treats a ticket, the queue is still sorted. When ticket priorities are updated, the queue is unsorted and must be sorted again, transitioning to unsorted, and then quickly back. If for any reason the queue is reset, it returns to the empty state.