ADR-0001: Local-first FHIR-shaped storage
- Status: Accepted
- Date: 2026-07-18
- Supersedes: None
- Superseded by: None
Context
Personal health records are sensitive and must stay usable on a self-hosted, single-user deployment. The product needs interoperable concepts without tying storage and application behaviour to a specific FHIR release.
Decision
Store health data in local SQLite with flat, FHIR-shaped tables. Keep original documents and sequencing files immutable and content-addressed in local storage. Build future standards adapters around this representation.
Alternatives considered
- Bind the core schema directly to one FHIR version.
- Make a hosted remote record service the primary storage system.
Consequences
The app retains local ownership and can evolve adapters independently. Standards integrations need maintained mappings, and the boundary between evidence and derived data must remain explicit.
Verification
The schema and file-storage code enforce the representation. Relevant changes require schema review, tests, and documentation updates or a superseding ADR.
Reusable lesson
This decision is project-specific and does not currently propose a global lesson.