Description
Count the current recorded attendance streak under a supplied schedule policy.
Rehabilitation records separate client priorities, scheduled attendance, assistance codes, video coordinates and exercise logs. A missed scheduled visit differs from an unscheduled day, and a frame timestamp assumes a frame-rate model. Local counts or offsets do not evaluate movement quality, recovery, safe exercise or appropriate care.
Count the current recorded attendance streak under a supplied schedule policy.
When to use this tool
Use Physio Attendance Streak Policy when you already have scheduled, attended, unscheduledBreaksStreak and need to count the current recorded attendance streak under a supplied schedule policy.
How to use the tool and how it works
- Enter scheduled, attended, unscheduledBreaksStreak. Follow any array-alignment requirements below. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read currentStreak. Use the output convention below.
Require aligned scheduled/attended arrays. Scan in order: a scheduled attended row increments, a scheduled absence resets, and an unscheduled row resets only when unscheduledBreaksStreak=true.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| scheduled | Scheduled | Required. Array of boolean; maximum items 256. |
| attended | Attended | Required. Array of boolean; maximum items 256. |
| unscheduledBreaksStreak | When false, unscheduled rows preserve the streak without incrementing it. | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| currentStreak | Current Streak | Required. Safe integer. |
{
"input": {
"scheduled": [
true,
true,
false,
true
],
"attended": [
true,
true,
false,
true
],
"unscheduledBreaksStreak": false
},
"output": {
"currentStreak": 3
}
} Limitations and assumptions
- Unscheduled attendance does not increment the streak; ordering is supplied and no actual attendance, rehabilitation progress or care need is verified.
- 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.
Alternative or Complementary methods
Review the actual attendance schedule, movement recording and stated outcome instrument. For timing, use acquisition timestamps when frame rate varies; keep client priorities and exercise logs separate from a validated assessment of recovery.
References
Similar or alternative tools
- Speech Practice Item Completion Flag
Count a practice item as complete only under the supplied record conditions.
- Psychiatry Appointment Attendance Code
Classify an appointment's supplied attendance state.