Open cielf opened 4 months ago
Blocked by 4283. Technically not blocked, but it makes sense to do them in that order.
I'll take this!
Thanks!
This issue is marked as stale due to no activity within 30 days. If no further activity is detected within 7 days, it will be unassigned.
Summary
Adjust the values around incontinence supplies in the annual survey to include kits.
Why?
Time saved around annual reporting. Requested by NDBN
Details
This is similar to the recent changes regarding disposable diapers (and the accompanying issue regarding period supplies)
An "adult incontinence item" is an item that has a base item with a category that includes "adult" but does not include "wipes" (i.e. adult diapers or adult incontinence). See scope adult_incontinence in app/models/item.rb for current implementation.
For: The total number of adult incontinence supplies distributed
add together the total items distributed over the year that have the base category for adult incontinence, and the number of such items distributed in kits (which will be the number of those kits over the year* the number of those items in the kits.)
Add a field for the number of adults assisted per month. (after Adult incontinence supplies distributed)
This is the number of adults assisted with 'loose' (i.e. not in kit) items plus the number of adults assisted with kits. The number of adults assisted with 'loose' items is the number of those items distributed divided by the quantity-per-individual for those items (or 50, if no quantity is defined) / 12 The number of adults assisted with kit items is the number of kits that contain adult incontinence supplies distributed divided by the "quantity per individual" on the kit item. if there is no quantity per individual provided, assume that quantity is 1.
For: Adult incontinence supplies per adult per month
I think we can just divide the supplies per month by the number of adults assisted.
Criteria for completion
(Note -- this might be a good fit for jade-who-worked-on-bringing diapers-in-kits into the numbers)