Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Incidents: add the ability to document notes on a reported incident #2497

@blestab

Description

@blestab

🚀 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

notes?: Note[]

Note Model

Add an optional givenBy field which will store the currently logged in user writing the note.

givenBy?: string

Incident View/Edit

On the incident view/edit form, at the bottom

  • Add a Notes sections
    In the notes section:
    • Add a "+ Add New Note" button which opens a popup to add a new note to the incident
    • Display a table of already existing notes, showing the following fields: date, givenBy, note, actions
    • The Actions column will have buttons to Edit or Delete the note

image

NOTE: See patient view's add note popup for an example of how this should look/work.

image

Metadata

Metadata

Assignees

Labels

LOE - mediumindicates that the level of effort to complete issue is mediumin progressindicates that issue/pull request is currently being worked onincidents🚀enhancementan issue/pull request that adds a feature to the application

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions