Collaboration Model - SENG-350-2024-fall/Team4 GitHub Wiki

Collaboration Diagram

Entity Relationship Diagram - Page 4

Explanation of the Diagram:

  1. 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.
  2. 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.
  3. User Database to Mister Ed System:

    • Message: credentialsAccepted
    • Description: The User Database confirms the credentials are valid and allows the login to proceed.
  4. Mister Ed System to Patient:

    • Message: displayHomePage()
    • Description: After successful login, the system displays the patient's home page.
  5. Patient to Mister Ed System:

    • Message: beginVirtualTriage()
    • Description: The patient selects the option to begin a virtual triage assessment.
  6. 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.
  7. 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.
  8. Mister Ed System to Hospital:

    • Message: confirmBooking()
    • Description: Mister Ed System forwards the appointment booking request to the hospital system.
  9. Hospital to Mister Ed System:

    • Message: bookingConfirmed
    • Description: The hospital confirms the appointment booking.
  10. Mister Ed System to Patient:

    • Message: notifyBookingConfirmed() and notifyAppointmentReady()
    • Description: The system informs the patient that the booking has been confirmed and notifies them when the appointment is ready.