The Medications page stores the veterinarian’s prescription text verbatim. Each scheduled time has its own “Gave it now” action. Today shows each pet’s recorded and outstanding doses.
How a dose is recorded
The prescription keeps the time zone selected by the device at creation. Caregivers use that shared schedule even when travelling. The server combines the prescription’s calendar day and scheduled time into a window such as 2026-03-02#08:00. Correcting the administration time preserves the selected slot.
The first normal dose occupies the window. PostgreSQL enforces this with the partial unique index dose_log_window_lock_uidx. A conflicting request receives the winning caregiver and timestamp. A written exception creates a separate dose log and audit event. The dose and its inventory change commit together.
Inventory and recurring treatments
Inventory is optional. The estimate divides remaining stock by the scheduled daily consumption and displays whole days. Fractional consumption carries forward between administrations.
Each pet can have a deworming schedule and a flea prevention schedule. A reminder appears three days before the due date by default and stays visible until the caregiver records an application. The next due date counts forward from the application date.