Collaboration Model - SENG-350-2024-fall/Team-11 GitHub Wiki

This collaboration diagram illustrates the interactions between key objects within the emergency department (ED) system, highlighting how these components work together to facilitate patient care.

Error

  1. Patient logs in to the ED system using the login method to access their account.

  2. After logging in, the Patient undergoes virtual triage by invoking UndergoVirtualTriage, where they provide their symptom information.

  3. The Patient then views their assessment outcome by calling viewTriageResults.

  4. Based on the triage results, the Patient chooses their next steps by selecting options through the chooseOptions method.

  5. The ED updates the Patient's status by calling UpdateStatus, reflecting any changes resulting from the chosen options.

  6. The ED manages the patient flow using the managePatientFlow method to coordinate the overall processing of patients.

  7. After processing, the ED sends notifications to the Patient regarding their status and care options through the sendUpdateNotification method.

  8. The ED generates reports summarizing the Patient’s visit and recommendations using the generateReports method.

  9. The Patient stores their triage information in the Medical Report by calling StoreRecord.

  10. The Medical Report sends the patient's records to the Nurse via the SendRecord method, ensuring the Nurse has necessary information.

  11. The Nurse follows up with the Patient by calling followUpWithPatient to discuss their treatment plan.

  12. If a prescription is required, the Nurse sends the prescription details to the Chemist using the receivePrescription method.

  13. The Chemist dispenses medication to the Patient using the dispenseMedication method, providing the required treatment.

  14. The Chemist also offers advice to the Patient regarding medication usage through the offerAdvice method.

  15. The Clinic accesses the Patient’s medical history from the Medical Report using the accessPatientHistory method to inform care decisions.

  16. The Clinic provides care to the Patient by calling provideCare, ensuring the Patient receives appropriate treatment.

  17. Finally, the Clinic updates the Medical Report with new patient information using the UpdatePatientHistory method, maintaining accurate records for future visits.