1.6 KiB
1.6 KiB
paths
| paths | ||||
|---|---|---|---|---|
|
Anatomical sheet model (crates/core/src/domain/sheet + migration 20261008110000)
docs/development/ANATOMICAL_SHEET_MODEL.mdis the source of truth: document shape, issue codes, tables, RPCs.- Ids are stable slugs never derived from labels; labels are
{ fr, en }objects. Annotation → findings is the explicitfinding_zone_id; vertebral regions are ordered data with free codes. No label matching at runtime. - A published version is immutable (trigger, every role). Change = new draft (
create_sheet_draft) thenpublish_sheet_version. Integrity rule codes are shared byvalidate_sheet_document(Rust core) andprivate.sheet_document_issues(SQL); add a rule on both sides and in the spec table. - Document schema change → bump
SHEET_DOCUMENT_SCHEMA_VERSION, extend the SQL CHECK ondocument_schema_version. - Official equine sheet = generated seed
draft/(pnpm import:equine --outinto an empty folder, then reviewed and copied; never editlegacy-import/ordraft/by hand;curation_draft/curation_reviewfail on drift,pnpm import:equine --checklists it). Every content change goes throughcuration/changes.json(traced in CHANGELOG.md). It is a DRAFT until a platform admin publishes it after business review ofREVIEW-REPORT.md. - Sheet SVG bytes live in Storage bucket
anatomical-sheet-assetsas<sha256>.svg; uploads are an operator task (pnpm assets:upload <seed dir>with the service key in env), never from the browser.