Description
Validate each count as an integer from zero through one billion and require afterReset at least resetBaseline.
Personal health and activity records use supplied observations, labels, and time intervals. A formatter or simple summary can organize those records without assessing health, diagnosing a condition, or recommending treatment.
Validate each count as an integer from zero through one billion and require afterReset at least resetBaseline.
When to use this tool
Use Health: Step Counter Single Reset Offset when you need a bounded personal-record calculation with explicit units and date conventions.
How to use the tool and how it works
- Enter beforeReset, afterReset, resetBaseline. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read result. Expand result to inspect the returned fields.
Validate each count as an integer from zero through one billion and require afterReset at least resetBaseline. Subtract the baseline for postResetIncrement and add beforeReset for combinedRecordedCount inside result.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| beforeReset | Before Reset | Required. Safe integer. |
| afterReset | After Reset | Required. Safe integer. |
| resetBaseline | Reset Baseline | Required. Safe integer. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| result | Object containing the calculated members; expand it to inspect individual values. | Required. Object. |
| result.postResetIncrement | Post Reset Increment | Calculated result member: number. |
| result.combinedRecordedCount | Combined Recorded Count | Calculated result member: number. |
{
"input": {
"beforeReset": 100,
"afterReset": 30,
"resetBaseline": 10
},
"output": {
"result": {
"postResetIncrement": 20,
"combinedRecordedCount": 120
}
}
} Limitations and assumptions
- Only one explicitly declared reset is reconciled; the calculation does not infer missed steps, reset timing, repeated resets, activity goals, or a medical interpretation.
- Outputs are nested inside result. Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Review the original observations and consult an appropriate health professional for clinical interpretation or care decisions.
References
Similar or alternative tools
- Health Device Duplicate Sequence Counter
Return equality and the nonnegative modular forwardDelta.
- Rainfall Accumulation Reset Increment
Add the two monotonic segment increments around one declared reset.