mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
The write/edit slot resolver loaded a medication's archived schedule revisions but dropped them before running band attribution, so editing a historical intake snapped it onto the LIVE schedule's slots instead of the era that was valid at the dose's time. The read side (dose-history, compliance) already era-resolves; the write side now matches. `loadAttributeMedication` threads `scheduleRevisions` into the attributor projection. Both `resolveSlotForWriteByBand` and `resolveForcedSlotForWrite` now pick the correct era for any past instant.