Collaboration Model - SENG-350-2024-fall/Team4 GitHub Wiki
Collaboration Diagram
Explanation of the Diagram:
-
Patient to Mister Ed System:
- Message:
login(username, password)
- Description: The patient initiates the interaction by logging into the Mister Ed system with their credentials.
- Message:
-
Mister Ed System to User Database:
- Message:
verifyCredentials(username, password)
- Description: Mister Ed System checks the patient's credentials by querying the User Database for authentication.
- Message:
-
User Database to Mister Ed System:
- Message:
credentialsAccepted
- Description: The User Database confirms the credentials are valid and allows the login to proceed.
- Message:
-
Mister Ed System to Patient:
- Message:
displayHomePage()
- Description: After successful login, the system displays the patient's home page.
- Message:
-
Patient to Mister Ed System:
- Message:
beginVirtualTriage()
- Description: The patient selects the option to begin a virtual triage assessment.
- Message:
-
Mister Ed System to Patient:
- Message:
recommendVisitER()
- Description: Based on the virtual triage results, the system recommends whether the patient should visit the emergency room.
- Message:
-
Patient to Mister Ed System (Optional):
- Message:
bookAppointment()
- Description: If the patient agrees with the recommendation, they opt to book an appointment with the ER.
- Message:
-
Mister Ed System to Hospital:
- Message:
confirmBooking()
- Description: Mister Ed System forwards the appointment booking request to the hospital system.
- Message:
-
Hospital to Mister Ed System:
- Message:
bookingConfirmed
- Description: The hospital confirms the appointment booking.
- Message:
-
Mister Ed System to Patient:
- Message:
notifyBookingConfirmed()
andnotifyAppointmentReady()
- Description: The system informs the patient that the booking has been confirmed and notifies them when the appointment is ready.
- Message: