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

Add resident engagement level on Add Activity form #517

Open
brylie opened this issue Feb 23, 2020 · 1 comment
Open

Add resident engagement level on Add Activity form #517

brylie opened this issue Feb 23, 2020 · 1 comment

Comments

@brylie
Copy link
Member

brylie commented Feb 23, 2020

As a caregiver
I would like to know the engagement level of residents during activities in which they participate
so I can ensure that every activity is meaningful for each resident

We would like to add an "engagement level" metric for each resident who participates in an activity. The engagement level should be recorded at the same time as the activity. The Add Activity form should also remain fairly streamlined.

Example UI structure

Add activity

select resident(s)

Resident name Engagement level
Resident A
Resident B ⭐⭐⭐
Resident C ⭐⭐

Example data model

We should aim to keep our data model somewhat relational, for a possible transition to a proper relational database. So, we can add a new table here for recording engagement level data with the following structure:

  • residentId: the ID of a given resident (basically a ForeignKey)
  • activityId: the ID of a specific activity (basically a ForeignKey)
  • engagementLevel: a numeric value on the scale of 1-3

Configuration option

Since this is a new feature that may not be desirable to all institutions where GeriLife is deployed, administrator users should be able to deactivate the feature.

On the Settings dashboard, rename the "Activity Types" section to be "Activities". Add a new setting on the "Activities" settings page to allow the new "engagement level" feature to be enabled/disabled. When the "engagement level" feature is disabled, the "Add Activity" form should not show the "engagement level" stars but can use the new structure to avoid maintaining two templates.

@brylie brylie added this to the 1.2 milestone Feb 23, 2020
@brylie
Copy link
Member Author

brylie commented Jul 1, 2020

We will put this idea on hold for now.

@brylie brylie removed this from the 1.2 milestone Jul 1, 2020
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

No branches or pull requests

2 participants