-
Notifications
You must be signed in to change notification settings - Fork 1
Veteran Case Notes
Mesbah Rafin edited this page Jun 5, 2022
·
2 revisions
The veteran case note system allows admins to keep track of each veteran, using personalized case notes and to-do items. This is done through the following components:
-
AddCase.jsx
-> The page that appears when "Add Case" is pressed, in order to add a case note. Each case note has atitle
,note
,category
,admin_id
anduser_id
associated with it. -
CaseCard.jsx
-> This is the case card that is rendered under every accordion section on the main case notes page. -
CaseList.jsx
-> This is the main case notes page, that allows access and a brief overview of every user in the back end. -
CaseDetail.jsx
-> This is the largest component, that represents the case detail page for every user. It provides a high-level overview of all the veteran's case notes, basic information and to-do items.
Alert Notes are unique case notes that are instantiated with every user. They are mutable, but cannot be deleted and represent the highest priority case note for every veteran.
The tables in the MySQL that are directly accessed by the API are client_users
, UserInfo
and cases
. Further clarification:
- The only JSON object used is for storing to-do tasks. These are simply JSON objects that have the key as the id of the list item and value as the task to be completed. For reference:
{"notes": [{"id": 0, "value": "Hello!"}]}
is the to do list for "- Hello!".
- Each case note can be edited and deleted after creation (save for the alert case note). The first note in add case notes is the alert note
- To do list items can be added and deleted, but not edited. The search bar allows for searching of case note titles on the case detail page, and users on the case list page. The drop down on the case note page allows you to filter case notes by their specific category (Discovery, Recovery, Retraining, Thriving).