mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-13 14:32:03 +00:00
Merge branch 'feat/medication-record-only' into release/v1.39.1
This commit is contained in:
commit
e03cf7c2c8
81 files changed
+2283
-274
No files matched your search
@@ -104,6 +104,7 @@ function makePrisma() {
|
||||
endsOn: new Date("2026-08-01T00:00:00.000Z"),
|
||||
oneShot: false,
|
||||
asNeeded: false,
|
||||
trackIntake: false,
|
||||
deliveryForm: "INJECTION",
|
||||
trackInjectionSites: true,
|
||||
allowedInjectionSites: ["THIGH_LEFT", "THIGH_RIGHT"],
|
||||
@@ -649,6 +650,7 @@ describe("buildFullBackupPayload disaster-recovery mode", () => {
|
||||
expect.objectContaining({
|
||||
id: "medication-canonical",
|
||||
asNeeded: false,
|
||||
trackIntake: false,
|
||||
deliveryForm: "INJECTION",
|
||||
unitsPerDose: "0.5000",
|
||||
schedules: [
|
||||
|
||||
@@ -1004,6 +1004,10 @@ export async function buildFullBackupPayload(
|
||||
name: m.name,
|
||||
dose: m.dose,
|
||||
active: m.active,
|
||||
// v1.39.1 (#1033) — the person's decision to keep this medication as a
|
||||
// record only. Both purposes carry it: a restore that dropped it would
|
||||
// start reminding them about a medication they chose not to track.
|
||||
trackIntake: m.trackIntake,
|
||||
// Both purposes carry the creation instant: it is the floor of the
|
||||
// medication's expected slots, so a restore stamped with the restore
|
||||
// time would read the whole restored history as predating the
|
||||
|
||||
@@ -907,6 +907,7 @@ export async function restoreBackup(
|
||||
endsOn: m.endsOn ? new Date(m.endsOn) : null,
|
||||
oneShot: m.oneShot ?? false,
|
||||
asNeeded: m.asNeeded ?? false,
|
||||
trackIntake: m.trackIntake ?? true,
|
||||
deliveryForm: m.deliveryForm ?? "ORAL",
|
||||
trackInjectionSites: m.trackInjectionSites ?? false,
|
||||
allowedInjectionSites: m.allowedInjectionSites ?? [],
|
||||
|
||||
Reference in new issue
Block a user