State Models - SENG-350-2024-fall/Team4 GitHub Wiki
The Nurse State Machine Diagram visually represents the various states a nurse can be in while interacting with the system, and the transitions between these states based on specific events or actions. This diagram illustrates how a nurse progresses from logging in to performing tasks such as reviewing triage results, scheduling follow-up appointments, updating patient information, and monitoring resources.
States and Transitions:
-
Login Screen:
- This is the initial state where the nurse must enter login credentials to access the system.
-
Transition:
- If correct information is entered, the nurse moves to the Homepage.
- If incorrect information is entered, the system remains in the Login Screen until valid credentials are provided.
-
Homepage:
- Once logged in, the nurse is directed to the homepage where they can perform various tasks.
-
Transitions:
- The nurse can navigate to different functionalities from the homepage, such as scheduling follow-up appointments, updating patient information, reviewing triage results, and monitoring resources.
-
Scheduling Follow-Up Appointments:
- The nurse can schedule follow-up appointments for a patient after reviewing their triage results or ED visit details.
-
Transition:
- Once appointments are scheduled, the nurse returns to the Homepage.
-
Updating Patient Information:
- The nurse can update a patient’s medical or personal details.
-
Transition:
- After completing the update, the system returns the nurse to the Homepage.
-
Reviewing Triage Results:
- The nurse can review the virtual triage results of a patient, which may lead to follow-up actions such as updating patient information or scheduling an appointment.
-
Transition:
- After reviewing the results, the nurse may proceed to schedule an appointment or return to the Homepage.
-
Monitoring Resources:
- The nurse can monitor the availability of emergency department (ED) resources such as beds and equipment using the resource availability dashboard.
-
Transition:
- After checking resource availability, the nurse returns to the Homepage.
-
Notifying Patients:
- The nurse can send notifications to patients regarding ED availability or updates on their appointments or triage results.
-
Transition:
- Once notifications are sent, the system directs the nurse back to the Homepage.
States and Transitions
-
Undergo assessment:
- This is the initial state where a patient chooses to undergo a virtual health assessment.
-
Transitions:
- Patient enters symptoms into Mister Ed.
-
Recieve diagnosis:
- Mister Ed cross-references the provided symptoms with a list of known ailments.
-
Transitions:
- Not enough information to provide diagnosis. Ask patient for more info.
- Diagnosis provided but no ER visit necessary. END.
- Diagnosis provided and ER visit recommended but patient chooses not to book appointment. END.
- Diagnosis provided and ER visit recommended, patient wants to book appointment.
-
Book appointment:
- Patient chooses a nearby hospital and is automatically given the next available appointment time.
-
Transitions:
- Patient cancels process and is returned to initial assessment screen.
- No appointments available at nearby hospitals. END.
- Appointment booked. Pending confirmation from hospital staff.
-
Notify appointment confirmed:
- Alert patient that appointment has been confirmed by hospital staff.
-
Transitions:
- Wait for appointment time before sending a notification.
- Patient confirms that they are headed to ER. END.
This diagram shows the process of logging in to Mister Ed. The process begins at the homepage, and when the user clicks "login" the system enters the login page state is entered. If incorrect login info is entered, the state stays the same. If the user chooses to sign up an account, the system switches to a sign-up screen after which the user is logged in with the new account, and if the user correctly enters login info the site grants access for the user.
This diagram shows the process of adding a new facility to the Mister Ed database. This is a linear process in which the system can move through the steps of adding a new facility (shown left-to-right), or cancel actions to return to a previous state (shown right-to-left).