Xcov19 / xcovfe

CovidX frontend project
2 stars 4 forks source link

4. Dashboard's User Stories - "Suspect Case" Stage #6

Open codecakes opened 4 years ago

codecakes commented 4 years ago

------------- DESCRIPTION --------------- (The stages don't describe an exhaustive use case but should be enough to fill in the wireframe)

As an agent, from the list of cases of a hospital im managing, I can click on the 1st stage to check all open suspect cases.

Clicking on a suspect cases opens a new perspective which contains form fields within Single Page App dashboard.

From here I can go back or fill in the fields.

As the staff in charge I can decide that the suspect-patient be allowed to be move to the next stage to get tested (Case 1) or to not get tested and instead be skipped to "Closed case" stage (Case 2).

Every ticket should have a standard black on white background), and the high-priority tickets should turn red. To determine if a ticket is high priority, it is important to understand that there is an Assigned Doctor Field along with Approved by field, the same Medical Officer/Doctor-On-Call field for all stages (assuming A doctor has been assigned/someone diagnosing the patient).

To determine, which action to take:

----------------- TO DO'S -----------------

  1. Agent Roster assignments

    • Case ID: ALPHANUMERIC
    • Case Stage: CHOICES[STRING]
    • Created By: UserID(Fkey) [editable]
    • ClosedBy: UserID(Fkey) [editable]
  2. Patient Details:

    • Name: STRING
    • Age: INT
    • Residential Status: CHOICE/STRING
    • Address: VARCHAR
    • ContactNumber: BIGINT
    • Temperature: FLOAT [editable]
    • DOB: DATETIME64
    • Co-existing diseases: ARRAY[STRING] [editable]
    • History of contact: ARRAY[STRING] [editable]
    • Travel history: ARRAY[STRING] [editable]

(Note that there are more form items that will need to be added in the next stages/To-Do's/issues, and so there is no need to format it well for now)

Sketches:

First, the following picture is the view that will pop up when we click on a ticket. Basically, some of the fields are non-editable, and some will be editable, that's why there's a save and cancel button:

IMG_20200619_155520

A more detailed flow: Once all the necessary fields have been filled and approved, then only the Agent User can move the ticket to the next stage. However the stage modal DOES NOT Pop Up Instantly. An Alert notification is sent to the Assigned User to "Fill the Necessary Details Within X hrs". In this time the agent can fill the necessary steps for the new modal fields. Else when X hrs pass, the ticket is Flagged RED.

Show "Move To" button Enabled Only When Doctor Approves as follows:

sketchmodal

codecakes commented 4 years ago

@joeydebreuk Every ticket should have a standard black on white background), and the high-priority tickets should turn red. To determine if a ticket is high priority, it is important to understand that there is an Assigned Doctor Field along with Approved by field, the same Medical Officer/Doctor-On-Call field for all stages (assuming A doctor has been assigned/someone diagnosing the patient).

joeydebreuk commented 4 years ago

I'll wait with doing design details until we have sketches. I'll just setup the form modals and a way to store the data in browser for now.

joeydebreuk commented 4 years ago

Im not quite sure how to implement: Case 1: If the staff in charge approves, patient is allowed to be move to the next stage ("Test Results") -> Approved for Testing. Case 2: Staff in charge decides that testing is not required, and so skip suspect-patient to the "Closed case" stage -> Approved for "Closing Stage".| Should I add two button at the bottom of the form?

codecakes commented 4 years ago

@joeydebreuk @ksr89 @kelushly just updated with sketches above. ☝️

Im not quite sure how to implement: Case 1: If the staff in charge approves, patient is allowed to be move to the next stage ("Test Results") -> Approved for Testing. Case 2: Staff in charge decides that testing is not required, and so skip suspect-patient to the "Closed case" stage -> Approved for "Closing Stage".| Should I add two button at the bottom of the form?

joeydebreuk commented 4 years ago

@codecakes one of the form fields is "Case Stage: CHOICES[STRING]" But isnt that covered by the "move" select at the bottom?