Architecture decision records
Each file records one architecture decision: its context, the decision and its consequences. The architecture overview summarizes them; the tasks carry the detailed design.
| ADR | Decision | Status |
|---|---|---|
| 0001 | Specification baseline | Accepted |
| 0002 | Hand-written lexer and Pratt parser | Accepted |
| 0003 | Compile the AST to closures | Accepted |
| 0004 | Synchronous core with a MaybePromise async path | Accepted |
| 0005 | Own BigInt-based Decimal | Accepted |
| 0006 | Own date/time value types | Accepted |
| 0007 | Minimal unit system in core, full UCUM in @callis/ucum | Accepted |
| 0008 | ModelProvider with generated FHIR models in separate packages | Accepted |
| 0009 | ESM-only packages without runtime dependencies | Accepted |
| 0010 | Tooling: pnpm, TypeScript 7, tsdown, Biome, Vitest, Changesets | Accepted |
| 0011 | HL7 test suite as the conformance arbiter | Accepted |
| 0012 | Evaluation and output defaults (UTC, Decimal as number, strict choice types) | Accepted |
All ADRs were accepted by the owner on 2026-11-03, when the architecture PR was reviewed.
Adding or changing a decision
- New decision: copy an existing file, take the next number, and fill in
Status,Date,Context,DecisionandConsequences. Keep it short; put the detailed design in the task that implements it. - Changed decision: do not rewrite history. Add a new ADR, and set the old one's status to
Superseded by ADR-NNNN. - Same PR: add or update the ADR in the PR that makes the change, and update the table above and the key-decisions table in architecture.md.