Medisin medisin med det samme. En mindre masete løsning enn andre.
  • Kotlin 97.8%
  • Python 2.2%
Find a file
Ole-Morten Duesund 9b5817fcef Inventory split: InventoryItem entity, schema v2 with tested migration, Lager screen
Stock, package size and prescription state move to inventory_item;
medication is now a regimen (itemId FK RESTRICT — deleting a stock item
can never silently take adherence history with it). Supply warnings
aggregate consumption across all regimens sharing an item. New Lager
screen with one-tap '+1 pakning' restock; med editor picks an existing
item or creates one inline via the shared ItemFormState (one form, no
drift). Backup format v2 mirrors the split and still restores v1 files
by performing the same conversion the DB migration does.

MIGRATION_1_2 statements are copied from the exported 2.json and proven
by an instrumented MigrationTestHelper test on the emulator (validates
against the schema AND asserts data survival) before it ever touches
the phone's medical record. Heads-up: connectedAndroidTest must target
the emulator (ANDROID_SERIAL) — the phone's release signature rejects
debug test APKs.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 15:13:28 +02:00
app Inventory split: InventoryItem entity, schema v2 with tested migration, Lager screen 2026-06-10 15:13:28 +02:00
docs FEST offline lookup: dataset contract, cached repository, ranked search 2026-06-10 14:04:05 +02:00
gradle Inventory split: InventoryItem entity, schema v2 with tested migration, Lager screen 2026-06-10 15:13:28 +02:00
.gitignore Release signing from gitignored keystore.properties 2026-06-10 14:27:40 +02:00
build.gradle.kts Project skeleton: Gradle 9.4.1 wrapper, AGP 9.2.1, Compose, manifest with reminder permission set 2026-06-10 13:31:39 +02:00
CLAUDE.md CLAUDE.md: toolchain pins, load-bearing contracts, command quirks from build session 2026-06-10 14:46:21 +02:00
gradle.properties Project skeleton: Gradle 9.4.1 wrapper, AGP 9.2.1, Compose, manifest with reminder permission set 2026-06-10 13:31:39 +02:00
gradlew Project skeleton: Gradle 9.4.1 wrapper, AGP 9.2.1, Compose, manifest with reminder permission set 2026-06-10 13:31:39 +02:00
gradlew.bat Project skeleton: Gradle 9.4.1 wrapper, AGP 9.2.1, Compose, manifest with reminder permission set 2026-06-10 13:31:39 +02:00
med-det-samme-build-prompt.md Project skeleton: Gradle 9.4.1 wrapper, AGP 9.2.1, Compose, manifest with reminder permission set 2026-06-10 13:31:39 +02:00
settings.gradle.kts Project skeleton: Gradle 9.4.1 wrapper, AGP 9.2.1, Compose, manifest with reminder permission set 2026-06-10 13:31:39 +02:00