Skip to content

Health index details modal ​

The details modal shows the details of a factor (for example Stress, BMI). If the filtered participant count is below the store's minimum_health_index_participants, the request returns 404.

The average score is based on the employees in the filter. If the store has two employees, one with a score of 5 and one with 7, the displayed score is 6.

Graph ​

The graph shows the progress of the factor.

The app stores the average score of a store for a factor daily. SaveAllStoresAverageScores pages stores and dispatches SaveStoreAverageScore. That data is plotted on the graph.

Smoking ​

Smoking is different. There is no average score. The app does not store how many cigarettes someone smokes. The data is values such as does not smoke, occasionally smokes, and smokes daily.

The modal shows the most picked value.

The option a user picks determines whether their score is in the good, mediocre, or bad category.

On the graph, the page shows the percentage of participants with a score in the bad category.