Chart patches across the time they're worn #6

Merged
brian merged 1 commit from pill-box-helper into main 2026-10-27 14:54:46 +00:00
Owner
  • A patch's ingredient amount is its daily release rate (or the period its
    label gives, e.g. "25mcg/hr"). The intake chart now spreads each patch over
    its wear time - until it runs out, is replaced, or now - instead of counting
    everything when it went on, so a 5mg/day patch shows 5 every full day.
  • The chart fetches 14 days before the window to catch patches still worn
    inside it; totals and averages count only what falls in the window.
  • History rows carry frequency_hours; amount parsing takes the unit from the
    numerator of rates like "21 mg/24 hr".

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

- A patch's ingredient amount is its daily release rate (or the period its label gives, e.g. "25mcg/hr"). The intake chart now spreads each patch over its wear time - until it runs out, is replaced, or now - instead of counting everything when it went on, so a 5mg/day patch shows 5 every full day. - The chart fetches 14 days before the window to catch patches still worn inside it; totals and averages count only what falls in the window. - History rows carry frequency_hours; amount parsing takes the unit from the numerator of rates like "21 mg/24 hr". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A patch's ingredient amount is its daily release rate (or the period its
  label gives, e.g. "25mcg/hr"). The intake chart now spreads each patch over
  its wear time - until it runs out, is replaced, or now - instead of counting
  everything when it went on, so a 5mg/day patch shows 5 every full day.
- The chart fetches 14 days before the window to catch patches still worn
  inside it; totals and averages count only what falls in the window.
- History rows carry frequency_hours; amount parsing takes the unit from the
  numerator of rates like "21 mg/24 hr".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
brian merged commit eba1ecbf77 into main 2026-10-27 14:54:46 +00:00
brian deleted branch pill-box-helper 2026-10-27 14:54:46 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
brian/medsync-server!6
No description provided.