Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UML Sequence Diagram for Notify Use Case #18

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

lapis2002
Copy link
Contributor

@lapis2002 lapis2002 commented Oct 1, 2023

notify_sequence_diagrram

Description

Participant:

  • Patient (Actor)
  • Login Page (type: PageUI)
  • Triage Result Page (type: PageUI)
  • Notification Module (type: NotificationSvc)
  • Patient Database (type: Database)
  • HealthService Database (type: Database)

Combined Fragments:

  • Alt Fragment for the suggestion process
  • Ref Fragment to Login Use case
  • Ref Fragment to Check ER Capacity and Assign Patient to ER Queue

Process:

  • When the triage result is available, the Notification Service will send a notification to patient via email or text message.
  • Then the patient can click on the link attached in the email/text message to be redirect to the login page.
  • The patient is required to log in first before viewing their triage result. Therefore, the diagram refers to the sequence diagram of authentication use case.
  • After patient logs in successfully, the system will redirect user to the result page, the UI also send request to get the triage results summary from Patient Database, and display the information to the patient.
  • Based on the result, there would be 3 different scenarios:
    • If the patient is suggested to take counter medicine, the triage page will display a message suggesting patient to take counter medication, the user can click on the button and the UI will send request to get patient info, such as location, allergies, as well as list of pharmacies near-by patient's location, then display that to patient.
    • If the patient is suggested to contact nurses/clinician, the triage page will display a message suggesting patient to take contact nurses/clinician, the user can click on the button to get more help and the UI will send request to get patient info, such as location, health record, as well as list of available nurses/clinic near-by patient's location and their contact, then display that to patient.
    • If the patient is suggested to visit the ER, the triage result page will display a message suggesting patient to visit ER, and ask if the patient wants the system to help them book and be placed in ER queue. If the patient agrees, they will be redirect to Booking ER page to the Check ER current capacity and assign patient to ER Queue Use case.
  • Alternatively, patient can click on the button to view the detail of their triage result instead of summary.

Copy link
Contributor

@OllieWare OllieWare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just watch for the overlap that has happened on the user login to system tile, between the REF and display page function. Otherwise, awesome job!

Copy link
Contributor

@dhuruvan13 dhuruvan13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@milesrose13
Copy link
Contributor

Great job definitely displays the use case very well!
minor spelling mistake for "displaceMedandPharmacyList" probably meant to be "displayMedandPharmacyList"

@lapis2002
Copy link
Contributor Author

Great job definitely displays the use case very well! minor spelling mistake for "displaceMedandPharmacyList" probably meant to be "displayMedandPharmacyList"

Thanks for spotting that. Updated!

notify_sequence_diagrram drawio

Copy link
Contributor

@minhn201 minhn201 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very detailed and comprehensive. Well done :)

@lapis2002
Copy link
Contributor Author

lapis2002 commented Oct 15, 2023

Description

Participant:

  • Patient (Actor)
  • Login Page (type: PageUI)
  • Triage Result Page (type: PageUI)
  • Notification Module (type: NotificationSvc)
  • Patient Database (type: Database)
  • HealthService Database (type: Database)

Combined Fragments:

  • Alt Fragment for the suggestion process
  • Ref Fragment to Login Use case
  • Ref Fragment to Check ER Capacity and Assign Patient to ER Queue

Process:

  • When the triage result is available, the Notification Service will send a notification to patient via email or text message.
  • Then the patient can click on the link attached in the email/text message to be redirect to the login page.
  • The patient is required to log in first before viewing their triage result. Therefore, the diagram refers to the sequence diagram of authentication use case.
  • After patient logs in successfully, the system will redirect user to the result page, the UI also send request to get the triage results summary from Patient Database, and display the information to the patient.
  • Based on the result, there would be 3 different scenarios:
    • If the patient is suggested to take counter medicine, the triage page will display a message suggesting patient to take counter medication, the user can click on the button and the UI will send request to get patient info, such as location, allergies, as well as list of pharmacies near-by patient's location, then display that to patient.
    • If the patient is suggested to contact nurses/clinician, the triage page will display a message suggesting patient to take contact nurses/clinician, the user can click on the button to get more help and the UI will send request to get patient info, such as location, health record, as well as list of available nurses/clinic near-by patient's location and their contact, then display that to patient.
    • If the patient is suggested to visit the ER, the triage result page will display a message suggesting patient to visit ER, and ask if the patient wants the system to help them book and be placed in ER queue. If the patient agrees, they will be redirect to Booking ER page to the Check ER current capacity and assign patient to ER Queue Use case.
  • Alternatively, patient can click on the button to view the detail of their triage result instead of summary.

@minhn201
Copy link
Contributor

The description looks spotless to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants