Skip to content

Architecture decisions

ADR Status Decision
0001 Accepted Keep local-first, FHIR-shaped storage rather than bind the app to a hosted service or one FHIR release.
0002 Accepted Use one Records library with lazy format adapters over specialized document and imaging storage.
0003 Accepted Persist a validated, versioned Cornerstone annotation snapshot per imaging series with optimistic concurrency.
0004 Accepted Capture structured composition from labels for supplements only (barcode-first, deterministic parsing, mandatory review); refill reminders project supply from an on-hand count and dosing rate.
0005 Accepted Render pill appearance with a client-only, code-split Three.js editor; bake a PNG to the content-addressed store on save and serve it as an <img>, with a deterministic SVG fallback.
0006 Accepted Mirror the ŠÚKL medicine registry locally with per-dataset freshness, range-read leaflets from the published archive, and extract pill appearance from their Slovak prose with a rules-first parser resolved through provenance-carrying facts.
0007 Accepted Carry INN, ATC, RxNorm and UNII on every medication, resolved once per substance and verified against the ATC code the registry already publishes.
0008 Accepted Record supplement ingredients on three axes — Annex I nutrient, Annex II form(s), source material — capture the ingredient statement verbatim, and mirror composition into medication_ingredients so supplements reach the duplicate-substance check.
0009 Proposed Share captured product facts through an optional community catalogue: a signed SQLite snapshot fetched whole rather than queried, a schema-validated moderated submission queue, claims carrying validity dates and a confidence level, and no per-contribution records in git. Published under CC BY 4.0 with the grant recorded per submission; ŠÚKL's redistribution terms block first publication, and the download gate is contested.
0010 Accepted Publish the demo as a Cloud Run container with an invented dataset baked in at build time and restored on every boot, single-instance and scale-to-zero; de-identified research imaging ships with it under the attribution its licences require.