mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 21:10:59 +00:00
GET /api/medications/[id]/dose-history?from=&to= returns the full per-slot ledger over the window: every expected slot with a status (taken on-time / late / skipped / missed / upcoming) plus every off-schedule intake tagged ad-hoc, built from the same band minter the compliance % consumes so the history view and the rate can never disagree. Ownership-scoped, rate-limited, reads only non-tombstoned rows, instants serialised as ISO strings. Additive — iOS-safe. This is what the medication Verlauf tab renders.