feat(anatomy): curation pipeline — changeset schema, applier with before/after records, cleaned single asset, draft seed, changelog + review report generators; seed layout legacy-import/curation/draft
This commit is contained in:
1 parent
3dbbfdf1df
commit
6870d87910
58 files changed
+18167
-267
No files matched your search
@@ -0,0 +1,204 @@
|
||||
# Rapport d'import : fiche anatomique équine v1
|
||||
|
||||
Généré par `pnpm import:equine` à partir des données historiques. Ne pas modifier à la main : relancer la commande.
|
||||
|
||||
Statut : **brouillon** (version 1 en `draft`), jamais publié par le seed. Fiche `503dc301-a8b1-50d4-9e44-0919b2fc2916`, espèce `equine`.
|
||||
|
||||
Les éléments de la section « Anomalies à valider » demandent une décision métier avant toute publication.
|
||||
|
||||
## 1. Sources et empreintes
|
||||
|
||||
| Fichier | Octets | sha256 | Id d'asset |
|
||||
| ------------------ | ------ | ------------------------------------------------------------------ | -------------------------------------- |
|
||||
| `Horse.svg` | 145770 | `5fe3819c8bf07f18fcc51f40f3d06b1bc82e6202a62afa003e8639867b5b212d` | `8bc2cd09-5fca-54c6-a78e-bdd3f6abaa3a` |
|
||||
| `Horse_head.svg` | 139079 | `9c03b98c0e55e3f684ce314b88dab2a0e11f488af6cc9140d61e1b2d5f9cb94c` | `5043348c-b84b-50c3-bbf8-01ff539d163c` |
|
||||
| `pathologies.json` | 174156 | `cc28300a20d850b5232bf00a1e5c4622b07f19a84a39de2e728831dc1e253643` | - |
|
||||
| `vertebrae.ts` | 303 | `51c9ea9ad6e36039cf77e078b3c231952629140f3c5b67d523fe8f2840a464c9` | - |
|
||||
|
||||
Les ids d'asset sont dérivés du sha256 du fichier (UUID déterministe), les deux SVG sont copiés à l'identique dans `assets/`.
|
||||
|
||||
- vue `main` : viewBox `0 0 2073.4 1629.4` (view_box du document laissé à null, le SVG porte le sien)
|
||||
- vue `head` : viewBox `60 100 500 380` (view_box du document laissé à null, le SVG porte le sien)
|
||||
|
||||
## 2. Volumes
|
||||
|
||||
| Mesure | Valeur |
|
||||
| ------------------------------------------ | ------ |
|
||||
| Annotations | 27 |
|
||||
| dont vue `main` (Horse.svg) | 18 |
|
||||
| dont vue `head` (Horse_head.svg) | 9 |
|
||||
| Annotations reliées à une zone de constats | 26 |
|
||||
| Déclencheurs de vue détail | 1 |
|
||||
| Vues | 2 |
|
||||
| Zones vertébrales avec code de région | 5 |
|
||||
| Annotations bilatérales | 9 |
|
||||
| Zones de constats (catalogue) | 26 |
|
||||
| Nœuds (catégories incluses) | 792 |
|
||||
| Feuilles | 612 |
|
||||
| Orientations vétérinaires | 41 |
|
||||
|
||||
Contrôle entrée = sortie, compté des deux côtés (sources lues, document écrit). L'importateur s'arrête au moindre écart :
|
||||
|
||||
| Contrôle | Lu (sources) | Écrit (document) |
|
||||
| ------------------------------------ | ------------ | ---------------- |
|
||||
| Annotations (data-anno-id distincts) | 27 | 27 |
|
||||
| Nœuds (catégories incluses) | 792 | 792 |
|
||||
| Feuilles | 612 | 612 |
|
||||
| Orientations vétérinaires | 41 | 41 |
|
||||
|
||||
## 3. Annotations
|
||||
|
||||
| Id historique | Nouvel id | Vue | Type | Latéralité | Région | Zone de constats | Géométrie |
|
||||
| ---------------- | ---------------- | ---- | -------------- | ---------- | ------ | ---------------- | -------------------------------------------------- |
|
||||
| `point-mpbwrkp0` | `hind-fetlock` | main | point | bilateral | - | `hind-fetlock` | cercle (1523, 1397) r 34 |
|
||||
| `point-mpbwsi9q` | `hock` | main | point | bilateral | - | `hock` | cercle (1542, 1159) r 34 |
|
||||
| `point-mpbwt4fa` | `stifle` | main | point | bilateral | - | `stifle` | cercle (1464, 918) r 34 |
|
||||
| `point-mpbwtst0` | `hip` | main | point | bilateral | - | `hip` | cercle (1516, 695) r 34 |
|
||||
| `point-mpbwugty` | `sacroiliac` | main | point | bilateral | - | `sacroiliac` | cercle (1590, 606) r 34 |
|
||||
| `point-mpbwv4xy` | `shoulder` | main | point | bilateral | - | `shoulder` | cercle (784, 907) r 34 |
|
||||
| `point-mpbwvpvt` | `elbow` | main | point | bilateral | - | `elbow` | cercle (743.0451049804688, 1193) r 34 |
|
||||
| `point-mpbwwaru` | `fore-fetlock` | main | point | bilateral | - | `fore-fetlock` | cercle (736, 1379) r 34 |
|
||||
| `point-mpbwwxvn` | `fore-sesamoids` | main | point | bilateral | - | `fore-sesamoids` | cercle (784, 1371) r 34 |
|
||||
| `point-mpbwxnb4` | `l6-s1` | main | point | unpaired | - | `l6-s1` | cercle (1424.2662353515625, 431) r 30 |
|
||||
| `point-mpbwyd9i` | `t18-l1` | main | point | unpaired | - | `t18-l1` | cercle (1117.97705078125, 469.1115417480469) r 30 |
|
||||
| `point-mpbwyyc9` | `c7-t1` | main | point | unpaired | - | `c7-t1` | cercle (840.1692504882812, 399.0752258300781) r 30 |
|
||||
| `zone-mpbx00jq` | `caudal` | main | zone | unpaired | Cd | `caudal` | polygone 7 points |
|
||||
| `zone-mpbx0xnp` | `sacral` | main | zone | unpaired | S | `sacral` | polygone 8 points |
|
||||
| `zone-mpbx1rm9` | `lumbar` | main | zone | unpaired | L | `lumbar` | polygone 7 points |
|
||||
| `zone-mpbx2rpe` | `thoracic` | main | zone | unpaired | T | `thoracic` | polygone 9 points |
|
||||
| `zone-mpbx5hx2` | `cervical` | main | zone | unpaired | C | `cervical` | polygone 17 points |
|
||||
| `zone-mpby55kd` | `head-trigger` | main | detail_trigger | unpaired | - | - | polygone 15 points |
|
||||
| `point-mpbykomv` | `parietal` | head | point | unpaired | - | `parietal` | cercle (348, 161) r 27 |
|
||||
| `point-mpbylh35` | `frontal` | head | point | unpaired | - | `frontal` | cercle (277, 214) r 27 |
|
||||
| `point-mpbymcln` | `sphenoid` | head | point | unpaired | - | `sphenoid` | cercle (299, 298) r 27 |
|
||||
| `point-mpbyn2k3` | `temporal` | head | point | unpaired | - | `temporal` | cercle (368, 236) r 27 |
|
||||
| `point-mpbynls5` | `occipital` | head | point | unpaired | - | `occipital` | cercle (441, 190) r 27 |
|
||||
| `point-mpbyo7zq` | `atm` | head | point | unpaired | - | `atm` | cercle (384.94287109375, 314.0172882080078) r 27 |
|
||||
| `point-mpbyphay` | `ssb` | head | point | unpaired | - | `ssb` | cercle (430, 266) r 27 |
|
||||
| `point-mpbyq841` | `hyoid` | head | point | unpaired | - | `hyoid` | cercle (376, 399) r 27 |
|
||||
| `point-mpbyqxbg` | `c0-c1` | head | point | unpaired | - | `c0-c1` | cercle (470, 333) r 27 |
|
||||
|
||||
## 4. Catégories d'annotation
|
||||
|
||||
| Id SVG | Id | Libellé FR | Libellé EN | Origine du libellé |
|
||||
| ------------------------ | ------------------------ | ---------------------- | ---------------- | ---------------------- |
|
||||
| `articulations` | `articulations` | Articulations | Joints | importateur, à valider |
|
||||
| `os` | `os` | Os | Bones | importateur, à valider |
|
||||
| `charni-res-vert-brales` | `charnieres-vertebrales` | Charnières vertébrales | Vertebral hinges | importateur, à valider |
|
||||
| `zone-colonne` | `zone-colonne` | Zone colonne | Spine | importateur, à valider |
|
||||
| `cadrans-du-cr-ne` | `cadrans-du-crane` | Cadrans du crâne | Skull quadrants | importateur, à valider |
|
||||
|
||||
Couleur : `null` partout (les couleurs du SVG restent dans l'asset). Dans les SVG, `data-anno-category-name` répète le slug (`articulations`, `os`) : ce n'est pas un libellé, le libellé lisible de la table de l'importateur est utilisé.
|
||||
|
||||
## 5. Configuration vertébrale
|
||||
|
||||
| Code | Nom FR | Nom EN | Vertèbres | Origine du libellé |
|
||||
| ---- | ----------- | -------- | --------- | ---------------------- |
|
||||
| `C` | Cervicales | Cervical | 7 | importateur, à valider |
|
||||
| `T` | Thoraciques | Thoracic | 18 | importateur, à valider |
|
||||
| `L` | Lombaires | Lumbar | 6 | importateur, à valider |
|
||||
| `S` | Sacrales | Sacral | 5 | importateur, à valider |
|
||||
| `Cd` | Caudales | Caudal | 18 | importateur, à valider |
|
||||
|
||||
Nombres de vertèbres : `vertebrae.ts`. Noms de région : écrits par l'importateur (aucune source ne les porte).
|
||||
|
||||
Codes de région déduits des libellés (racines `cervic`, `thorac`/`dors`, `lombair`/`lumbar`, `sacral`/`sacre`, `caudal`/`coccyg`, FR puis EN). Déduction faite une fois ici, le document porte le code :
|
||||
|
||||
| Annotation | Libellé lu | Racine | Code |
|
||||
| ---------- | --------------------- | --------- | ---- |
|
||||
| `caudal` | Vertèbres caudales | `caudal` | `Cd` |
|
||||
| `sacral` | Vertèbres sacrales | `sacral` | `S` |
|
||||
| `lumbar` | Vertèbres lombaires | `lombair` | `L` |
|
||||
| `thoracic` | Vertèbres thoraciques | `thorac` | `T` |
|
||||
| `cervical` | Vertèbres cervicales | `cervic` | `C` |
|
||||
|
||||
## 6. Arbre de constats par zone
|
||||
|
||||
Copie fidèle du catalogue : ids, libellés, descriptions présentes, orientations vétérinaires et sources. Ordre des zones et des catégories conservé. Nœuds = catégories incluses.
|
||||
|
||||
| Zone | Nom | Nœuds | Feuilles | Orientations vét. |
|
||||
| ---------------- | --------------------------------------- | ----- | -------- | ----------------- |
|
||||
| `parietal` | Pariétal | 26 | 19 | 0 |
|
||||
| `frontal` | Frontal | 29 | 22 | 2 |
|
||||
| `sphenoid` | Sphénoïde | 42 | 34 | 1 |
|
||||
| `temporal` | Temporel | 27 | 20 | 0 |
|
||||
| `occipital` | Occipital | 26 | 19 | 0 |
|
||||
| `ssb` | Synchondrose Sphéno-Basilaire (SSB) | 42 | 34 | 1 |
|
||||
| `atm` | Articulation Temporo-Mandibulaire (ATM) | 34 | 28 | 2 |
|
||||
| `hyoid` | Hyoïde | 26 | 20 | 1 |
|
||||
| `c0-c1` | Charnière C0-C1 (occipito-atloïdienne) | 28 | 22 | 2 |
|
||||
| `cervical` | Vertèbres cervicales | 34 | 26 | 3 |
|
||||
| `c7-t1` | Charnière C7-T1 (cervico-thoracique) | 27 | 21 | 1 |
|
||||
| `shoulder` | Épaule (scapulo-humérale) | 33 | 26 | 2 |
|
||||
| `elbow` | Coude (huméro-radial) | 30 | 23 | 2 |
|
||||
| `fore-fetlock` | Boulet ant. (métacarpo-phalangien) | 29 | 22 | 2 |
|
||||
| `fore-sesamoids` | Sésamoïdes ant. (boulet) | 22 | 16 | 2 |
|
||||
| `thoracic` | Vertèbres thoraciques | 38 | 29 | 2 |
|
||||
| `t18-l1` | Charnière T18-L1 (dorso-lombaire) | 27 | 21 | 1 |
|
||||
| `lumbar` | Vertèbres lombaires | 34 | 26 | 2 |
|
||||
| `l6-s1` | Charnière L6-S1 (lombo-sacrée) | 27 | 21 | 1 |
|
||||
| `sacral` | Vertèbres sacrales | 29 | 22 | 2 |
|
||||
| `sacroiliac` | Articulation Sacro-Iliaque | 33 | 26 | 2 |
|
||||
| `hip` | Hanche (coxo-fémorale) | 32 | 25 | 2 |
|
||||
| `stifle` | Grasset (fémoro-tibial) | 32 | 25 | 3 |
|
||||
| `hock` | Jarret (tarsien) | 32 | 25 | 2 |
|
||||
| `hind-fetlock` | Boulet post. (métatarso-phalangien) | 29 | 22 | 2 |
|
||||
| `caudal` | Vertèbres caudales | 24 | 18 | 1 |
|
||||
| **Total** | | 792 | 612 | 41 |
|
||||
|
||||
## 7. Anomalies à valider
|
||||
|
||||
21 points demandent une décision, 6 sont informatifs.
|
||||
|
||||
### À valider
|
||||
|
||||
| Code | Objet | Détail |
|
||||
| --------------------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `label.authored` | name | Libellé écrit par l'importateur : FR « Cheval », EN « Horse ». |
|
||||
| `label.authored` | description | Libellé écrit par l'importateur : FR « Fiche anatomique officielle Faunosteo », EN « Official Faunosteo anatomical sheet ». |
|
||||
| `label.authored` | views.main | Libellé écrit par l'importateur : FR « Vue générale », EN « Overview ». |
|
||||
| `label.authored` | views.head | Libellé écrit par l'importateur : FR « Tête », EN « Head ». |
|
||||
| `label.authored` | vertebral_config.C | Libellé écrit par l'importateur : FR « Cervicales », EN « Cervical ». |
|
||||
| `label.authored` | vertebral_config.T | Libellé écrit par l'importateur : FR « Thoraciques », EN « Thoracic ». |
|
||||
| `label.authored` | vertebral_config.L | Libellé écrit par l'importateur : FR « Lombaires », EN « Lumbar ». |
|
||||
| `label.authored` | vertebral_config.S | Libellé écrit par l'importateur : FR « Sacrales », EN « Sacral ». |
|
||||
| `label.authored` | vertebral_config.Cd | Libellé écrit par l'importateur : FR « Caudales », EN « Caudal ». |
|
||||
| `category.label.authored` | articulations | Libellé écrit par l'importateur : FR « Articulations », EN « Joints ». |
|
||||
| `category.label.authored` | os | Libellé écrit par l'importateur : FR « Os », EN « Bones ». |
|
||||
| `category.slug.normalised` | charni-res-vert-brales | Slug technique dégradé (accents perdus) normalisé en « charnieres-vertebrales ». |
|
||||
| `category.label.authored` | charnieres-vertebrales | Libellé écrit par l'importateur : FR « Charnières vertébrales », EN « Vertebral hinges ». |
|
||||
| `category.label.authored` | zone-colonne | Libellé écrit par l'importateur : FR « Zone colonne », EN « Spine ». |
|
||||
| `category.slug.normalised` | cadrans-du-cr-ne | Slug technique dégradé (accents perdus) normalisé en « cadrans-du-crane ». |
|
||||
| `category.label.authored` | cadrans-du-crane | Libellé écrit par l'importateur : FR « Cadrans du crâne », EN « Skull quadrants ». |
|
||||
| `finding.category.foreign_prefix` | sphenoid/ssb-dysfunctions | Identifiant de catégorie dupliqué entre sphenoid et ssb ; sphenoid-dysfunctions attendu ; décision ostéopathe requise. Importé tel quel (non renommé). |
|
||||
| `finding.description_en.missing` | pathologies.json | 62 descriptions sans traduction anglaise (clé « en » absente, rien d'inventé). |
|
||||
| `document.scope_disclaimer.no_en` | scope_disclaimer | Texte de périmètre légal en français seulement : traduction anglaise à rédiger. |
|
||||
| `vertebral.cd.capped` | Cd | Caudales plafonnées à 18 pour le sélecteur, alors que l'espèce varie (15–21) selon le commentaire source. |
|
||||
| `finding.sources.none` | pathologies.json | Aucune source bibliographique sur les nœuds, alors que la règle projet en demande au moins une par entrée. |
|
||||
|
||||
### Informatif
|
||||
|
||||
| Code | Objet | Détail |
|
||||
| -------------------------------- | ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `annotation.trigger.unnamed` | zone-mpby55kd | Déclencheur de vue détail sans nom (name null), comme dans le SVG. |
|
||||
| `finding.anamnesis.variant` | anamnesis variante 1/3 | Zones parietal, frontal, sphenoid, temporal, occipital, ssb, atm, hyoid : trauma-direct, stress-context, posture-context, dental-context, post-veterinary, no-identified-cause. |
|
||||
| `finding.anamnesis.variant` | anamnesis variante 2/3 | Zones c0-c1, cervical, c7-t1, thoracic, t18-l1, lumbar, l6-s1, sacral, caudal : trauma-direct, saddle-context, posture-context, stress-context, post-veterinary, no-identified-cause. |
|
||||
| `finding.anamnesis.variant` | anamnesis variante 3/3 | Zones shoulder, elbow, fore-fetlock, fore-sesamoids, sacroiliac, hip, stifle, hock, hind-fetlock : trauma-direct, sport-context, posture-context, stress-context, post-veterinary, no-identified-cause. |
|
||||
| `finding.id.shared_across_zones` | 110 identifiants | Identifiants de nœuds réutilisés entre zones (unicité entre frères seulement, adressage par zone + chemin). Les plus fréquents : anamnesis (26), no-identified-cause (26), post-veterinary (26), posture-context (26), stress-context (26), trauma-direct (26), mechanical (19), muscular (19). |
|
||||
| `annotation.geometry.hitbox` | géométrie | Géométrie lue sur le premier élément de chaque annotation (zone de clic), le marqueur visuel n'est pas importé. |
|
||||
|
||||
## 8. Données non importées
|
||||
|
||||
Aucune donnée métier écartée.
|
||||
|
||||
Non repris par construction :
|
||||
|
||||
- `schema_version` du catalogue (`2.0`) : version du format historique, remplacée par `schema_version: 2` du document canonique ; la valeur d'origine est citée dans `attribution.notes`.
|
||||
- bloc `species` du catalogue (`equine`, Cheval / Horse) : porté par `species_id` du document et par la table `public.species` ; le nom de la fiche est écrit séparément (voir anomalies `label.authored`).
|
||||
- second élément graphique de chaque annotation (marqueur visuel) : reste dans l'asset SVG copié à l'identique, le document ne garde que la zone de clic.
|
||||
- `data-anno-category-name` : répète le slug technique (`articulations`, `os`), ce n'est pas un libellé ; le libellé de catégorie vient de la table de l'importateur (section 4).
|
||||
|
||||
## 9. Résultat de validation
|
||||
|
||||
- Forme (`AnatomicalSheetDocumentSchema`) : conforme.
|
||||
- Intégrité (`validateSheetDocument`) : 0 erreur(s), 0 avertissement(s).
|
||||
Reference in new issue
Block a user