Impact supports a “change over time” event type for the “weight” measurement type. This page explains this event type and how it triggers associated actions.
Metric | Trigger Type | Comparison | Recipient | Schedule |
Weight | Gain, Loss | Greater than, Less than | Member, Provider | Every time, At most once per day |
The change over time event depends on new readings. When a new reading is submitted, the rule will evaluate the submitted reading against the min or max (depending on gain or loss configuration) over the configured duration to determine if the event will trigger the associated action.
Let’s say that we have an event configured for a weight gain of > 5 lbs in 72 hours:
And we have the below readings:
Weight | Hours ago |
206 | 0 (submitted now) |
201 | 24 |
203 | 48 |
200 | 70 |
203 | 96 |
The following readings will be evaluated in yellow when the new reading (206 lbs) is submitted, as these are within the 72-hour window:
Weight | Hours ago |
206 | 0 (submitted now) |
201 | 24 |
203 | 48 |
200 | 70 |
198 | 96 |
The min value in this dataset for evaluation is: 200 lbs
The submitted reading (206 lbs), would trigger the rule, as the delta/gain is greater than 5 lbs:
Weight | Hours ago | Min | Delta (from Min) | Notes |
206 | 0 (submitted now) | 6 lbs | Event triggered - gain exceeds 5 lbs | |
201 | 24 | 1 lbs | ||
203 | 48 | 3 lbs | ||
200 | 70 | x | 0 lbs | |
198 | 96 | N/A | N/A | Not evaluated, outside of time window |
Additionally submitted readings will be evaluated against the time duration window. For example, if the user immediately submits another reading minutes later (207 lbs, say), the rule will trigger again, as it continues to be evaluated against the min within that time range (200 lbs).
Weight | Hours ago | Min | Delta (from Min) | Notes |
207 | 0 (submitted now) | 7 lbs | Event triggered - gain exceeds 5 lbs | |
206 | 0 (2 min ago) | 6 lbs | Event previously triggered - gain exceeds 5 lbs | |
201 | 24 | 1 lbs | ||
203 | 48 | 3 lbs | ||
200 | 70 | x | 0 lbs | |
198 | 96 | N/A | N/A | Not evaluated, outside of time window |