-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Incidents: add the ability to document notes on a reported incident #2497
Comments
Hi @blestab, could I take this? |
Yes you may @aguptamusic , thanks |
@blestab @jackcmeyer |
Thanks @aguptamusic please go ahead and use button label, functionality (display message if there are no notes) and design/styling that matches the Patient Notes view. In addition though, we need a table of notes for this one instead of how Patient Notes displays the list of notes, with the ability to delete/edit a note. |
@blestab Given that the core team seems to still be working out logging in functionality, it is not obvious what role the current user plays (Doctor, etc.). How should we work with the givenBy field in a Note? A few options we're thinking about:
What do you recommend we do? |
You can get the current user from the redux store, which currently has mock data inside of it. You can see an example of how to do that in the report incident functionality. |
If a user updates a note with the "Edit" functionality, should the date/givenBy fields be updated? |
I don't believe so as those are related to the "create" event. In future we could possibly look at introducing lastEditDate, and lastEditBy fields to track edits. |
Makes sense. The patient module also has a notes section. Would you like us to also make the notes section for the patient module use the same Notes Table UI? Currently the patient notes tab is a list without support for edit/delete. |
Good idea. That would be great for UX consistency; We will log a separate issue for it. |
🚀 Feature Proposal
Add the ability to document notes onto a reported incident.
Motivation
During the incident's lifespan, there will be need to add multiple notes relating to the incident.
Technical Details
Incident Model
Add an optional notes field which hold multiple notes objects
Note Model
Add an optional givenBy field which will store the currently logged in user writing the note.
Incident View/Edit
On the incident view/edit form, at the bottom
In the notes section:
NOTE: See patient view's add note popup for an example of how this should look/work.
The text was updated successfully, but these errors were encountered: