Skip to content

Main content

Physio Attendance Streak Policy

Count a trailing attendance streak under an explicit unscheduled-day policy without interpreting adherence.

Loading tool…

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

  1. Enter scheduled, attended, unscheduledBreaksStreak. Follow any array-alignment requirements below. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. 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 fieldMeaning and unitsAccepted input
scheduledScheduledRequired. Array of boolean; maximum items 256.
attendedAttendedRequired. Array of boolean; maximum items 256.
unscheduledBreaksStreakWhen false, unscheduled rows preserve the streak without incrementing it.Required. Boolean.
Output fieldInterpretationReturned shape
currentStreakCurrent StreakRequired. Safe integer.
json
{
  "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

  1. Calculation and input contract: physiotherapy/physio-attendance-streak-policy — tool.io

Similar or alternative tools