feat(domain): R5.6 fingerprint switch to sha256-rfc8785-validated-v1

The Rust pipeline is the official seed writer (pnpm import:equine); sheet-ref.json
and report-migration-map.json carry 12d78872...74e2 and the v1 block, the only two
seed files changed. 27c7383c...2660 stays a registered alias, honoured only through
LoadedSheet::recognises_historical_stamp (verified v1, recomputed document). M1: the
snapshot of an old report keeps its stamp; export, archive reader strict. Historical
oracles run in their pre-switch context; equivalence is crate-private.
This commit is contained in:
bchanot committed 2026-10-25 02:02:42 +01:00
1 parent 59521dc195
commit 9e87016399
31 files changed
+2331 -154

No files matched your search

+74 -4
View File
@@ -29,6 +29,9 @@ use faunosteo_core::curation::prettier_json::format_json;
use faunosteo_core::domain::report::ReportMigrationMap;
use faunosteo_core::domain::report::read::read_report_document;
use faunosteo_core::domain::sheet::AnatomicalSheetDocument;
use faunosteo_core::domain::sheet::fingerprint::{
FINGERPRINT_CONVENTION, TRUSTED_ALIASES, sheet_fingerprint,
};
use faunosteo_core::json::to_js_compact;
use serde_json::{Map, Value, json};
@@ -139,18 +142,85 @@ fn the_r5_3_files_of_the_committed_draft_folder_are_reproduced_byte_for_byte() {
assert_eq!(frozen.len(), asset.byte_size);
}
/// The declared difference of the R5.6 switch, `R5.6-fingerprint-v1` (owner 2026-10-24): from the
/// pre-switch file the TypeScript wrote, only the fingerprint moves from the registered alias to
/// its canonical value, and `sheet-ref.json` gains the descriptive block. Applied to a parsed
/// value, then printed by the generator's own formatter: anything else that differs fails.
fn r5_6_rule(name: &str, mut value: Value) -> Value {
let pair = &TRUSTED_ALIASES[0];
let stamp = match name {
"sheet-ref.json" => &mut value["document_sha256"],
"report-migration-map.json" => &mut value["sheet"]["documentSha256"],
other => panic!("{other}: no declared rule"),
};
assert_eq!(
*stamp, pair.alias,
"{name}: the pre-switch value is the alias"
);
*stamp = Value::from(pair.canonical);
if name == "sheet-ref.json" {
value.as_object_mut().unwrap().insert(
"fingerprint".into(),
serde_json::json!({ "convention": FINGERPRINT_CONVENTION, "aliases": [pair.alias] }),
);
}
value
}
fn pre_switch(name: &str) -> String {
common::repo_file(&format!(
"crates/core/tests/fixtures/r5-6/pre-switch/{name}"
))
}
#[test]
fn the_document_fingerprint_is_the_historical_value() {
fn the_pre_switch_copies_are_the_files_the_typescript_wrote() {
let artifacts = oracle("pipeline.json")["artifacts"].clone();
for name in ["sheet-ref.json", "report-migration-map.json"] {
let row = artifacts
.as_array()
.unwrap()
.iter()
.find(|a| a["file"] == name && a["folder"].as_str().unwrap().ends_with("draft"))
.unwrap()
.clone();
let text = pre_switch(name);
assert_eq!(row["sha256"], sha256_hex(text.as_bytes()), "{name}");
assert_eq!(row["bytes"], text.len(), "{name}");
}
}
#[test]
fn the_switch_changes_only_the_fingerprint_of_the_two_files() {
for name in ["sheet-ref.json", "report-migration-map.json"] {
let before: Value = serde_json::from_str(&pre_switch(name)).unwrap();
let expected = format_json(&r5_6_rule(name, before)).unwrap();
assert!(
expected == common::repo_file(&format!("{DRAFT}/{name}")),
"{name}: the committed file is not the pre-switch one under R5.6-fingerprint-v1"
);
}
}
#[test]
fn the_document_fingerprint_is_v1_and_its_bytes_keep_the_historical_alias() {
let files = render_draft_artifacts(&equine_draft(), &[]).unwrap();
let document = &files[0].1;
let reference: Value = serde_json::from_str(&files[2].1).unwrap();
let pair = &TRUSTED_ALIASES[0];
assert_eq!(sha256_hex(document.as_bytes()), pair.alias);
assert_eq!(
reference["document_sha256"],
sha256_hex(document.as_bytes())
sheet_fingerprint(document).unwrap()
);
assert_eq!(reference["document_sha256"], pair.canonical);
assert_eq!(
reference["fingerprint"]["convention"],
FINGERPRINT_CONVENTION
);
assert_eq!(
reference["document_sha256"],
"27c7383c445c73dc2001ebf4794a3ea63d416910bbbaa0d7848dd720de7c2660"
reference["fingerprint"]["aliases"],
serde_json::json!([pair.alias])
);
}
+4 -3
View File
@@ -553,11 +553,12 @@ fn unnamed_triggers_repeating_a_long_view_name_are_refused_before_rendering() {
#[test]
fn the_drawings_projection_bounds_what_is_written() {
use faunosteo_core::curation::draft::pipeline::review_drawings_bytes;
let written = |draft: &DraftResult, anomalies: &[Anomaly]| -> usize {
render_draft_artifacts(draft, anomalies)
// The drawings alone (`render_draft_artifacts` writes exactly these): a draft with no
// annotation is no valid sheet, so since R5.6 it has no fingerprint and no full render.
let written = |draft: &DraftResult, _anomalies: &[Anomaly]| -> usize {
faunosteo_core::curation::draft::pipeline::review_drawings(draft)
.unwrap()
.iter()
.filter(|(name, _)| name.starts_with("review/"))
.map(|(_, text)| text.len())
.sum()
};
@@ -0,0 +1,997 @@
{
"schema_version": 1,
"sheet": {
"sheetId": "503dc301-a8b1-50d4-9e44-0919b2fc2916",
"versionId": null,
"documentSha256": "27c7383c445c73dc2001ebf4794a3ea63d416910bbbaa0d7848dd720de7c2660"
},
"main_view_id": "main",
"views": {
"head": "head"
},
"annotations": {
"point-mpbwrkp0": {
"id": "hind-fetlock",
"name": {
"fr": "Boulet post. (métatarso-phalangien)",
"en": "Hind fetlock"
}
},
"point-mpbwsi9q": {
"id": "hock",
"name": {
"fr": "Jarret (tarsien)",
"en": "Hock"
}
},
"point-mpbwt4fa": {
"id": "stifle",
"name": {
"fr": "Grasset (fémoro-tibial)",
"en": "Stifle"
}
},
"point-mpbwtst0": {
"id": "hip",
"name": {
"fr": "Hanche (coxo-fémorale)",
"en": "Hip joint"
}
},
"point-mpbwugty": {
"id": "sacroiliac",
"name": {
"fr": "Articulation Sacro-Iliaque",
"en": "Sacroiliac Joint"
}
},
"point-mpbwv4xy": {
"id": "shoulder",
"name": {
"fr": "Épaule (scapulo-humérale)",
"en": "Shoulder joint"
}
},
"point-mpbwvpvt": {
"id": "elbow",
"name": {
"fr": "Coude (huméro-radial)",
"en": "Elbow joint"
}
},
"point-mpbwwaru": {
"id": "fore-fetlock",
"name": {
"fr": "Boulet ant. (métacarpo-phalangien)",
"en": "Fore fetlock"
}
},
"point-mpbwwxvn": {
"id": "fore-sesamoids",
"name": {
"fr": "Sésamoïdes ant. (boulet)",
"en": "Forelimb Sesamoids"
}
},
"point-mpbwxnb4": {
"id": "l6-s1",
"name": {
"fr": "Charnière L6-S1 (lombo-sacrée)",
"en": "L6-S1 (Lumbosacral)"
}
},
"point-mpbwyd9i": {
"id": "t18-l1",
"name": {
"fr": "Charnière T18-L1 (dorso-lombaire)",
"en": "T18-L1 (Thoracolumbar)"
}
},
"point-mpbwyyc9": {
"id": "c7-t1",
"name": {
"fr": "Charnière C7-T1 (cervico-thoracique)",
"en": "C7-T1 (Cervicothoracic)"
}
},
"zone-mpbx00jq": {
"id": "caudal",
"name": {
"fr": "Vertèbres caudales",
"en": "Coccygeal Vertebrae"
}
},
"zone-mpbx0xnp": {
"id": "sacral",
"name": {
"fr": "Vertèbres sacrales",
"en": "Sacral Vertebrae"
}
},
"zone-mpbx1rm9": {
"id": "lumbar",
"name": {
"fr": "Vertèbres lombaires",
"en": "Lumbar Vertebrae"
}
},
"zone-mpbx2rpe": {
"id": "thoracic",
"name": {
"fr": "Vertèbres thoraciques",
"en": "Thoracic Vertebrae"
}
},
"zone-mpbx5hx2": {
"id": "cervical",
"name": {
"fr": "Vertèbres cervicales",
"en": "Cervical Vertebrae"
}
},
"zone-mpby55kd": {
"id": "head-trigger",
"name": {
"fr": "",
"en": ""
}
},
"point-mpbykomv": {
"id": "parietal",
"name": {
"fr": "Pariétal",
"en": "Parietal bone"
}
},
"point-mpbylh35": {
"id": "frontal",
"name": {
"fr": "Frontal",
"en": "Frontal bone"
}
},
"point-mpbymcln": {
"id": "sphenoid",
"name": {
"fr": "Sphénoïde",
"en": "Sphenoid"
}
},
"point-mpbyn2k3": {
"id": "temporal",
"name": {
"fr": "Temporel",
"en": "Temporal"
}
},
"point-mpbynls5": {
"id": "occipital",
"name": {
"fr": "Occipital",
"en": "Occipital"
}
},
"point-mpbyo7zq": {
"id": "atm",
"name": {
"fr": "Articulation Temporo-Mandibulaire (ATM)",
"en": "Temporomandibular Joint (TMJ)"
}
},
"point-mpbyphay": {
"id": "ssb",
"name": {
"fr": "Synchondrose Sphéno-Basilaire (SSB)",
"en": "Spheno-Basilar Synchondrosis (SBS)"
}
},
"point-mpbyq841": {
"id": "hyoid",
"name": {
"fr": "Hyoïde",
"en": "Hyoid"
}
},
"point-mpbyqxbg": {
"id": "c0-c1",
"name": {
"fr": "Charnière C0-C1 (occipito-atloïdienne)",
"en": "C0-C1 (Occipito-atlantal)"
}
}
},
"finding_paths": {
"parietal/parietal-dysfunctions": "parietal/parietal-dysfunctions",
"parietal/parietal-dysfunctions/mobility": "parietal/parietal-dysfunctions/mobility",
"parietal/parietal-dysfunctions/mobility/flexion-external-rotation": "parietal/parietal-dysfunctions/mobility/flexion-external-rotation",
"parietal/parietal-dysfunctions/mobility/extension-internal-rotation": "parietal/parietal-dysfunctions/mobility/extension-internal-rotation",
"parietal/parietal-dysfunctions/mobility/global-restriction": "parietal/parietal-dysfunctions/mobility/global-restriction",
"parietal/parietal-dysfunctions/intraosseous": "parietal/parietal-dysfunctions/intraosseous",
"parietal/parietal-dysfunctions/intraosseous/squama-deformation": "parietal/parietal-dysfunctions/intraosseous/squama-deformation",
"parietal/parietal-dysfunctions/intraosseous/interparietal-compression": "parietal/parietal-dysfunctions/intraosseous/interparietal-compression",
"parietal/parietal-dysfunctions/sutures": "parietal/parietal-dysfunctions/sutures",
"parietal/parietal-dysfunctions/sutures/frontoparietal": "parietal/parietal-dysfunctions/sutures/frontoparietal",
"parietal/parietal-dysfunctions/sutures/parieto-occipital": "parietal/parietal-dysfunctions/sutures/parieto-occipital",
"parietal/parietal-dysfunctions/sutures/parieto-temporal": "parietal/parietal-dysfunctions/sutures/parieto-temporal",
"parietal/parietal-dysfunctions/sutures/sphenoparietal": "parietal/parietal-dysfunctions/sutures/sphenoparietal",
"parietal/parietal-dysfunctions/sutures/interparietal": "parietal/parietal-dysfunctions/sutures/sagittal",
"parietal/parietal-observations": "parietal/parietal-consultation-reasons",
"parietal/parietal-observations/behavior-change": "parietal/parietal-consultation-reasons/behavior-change",
"parietal/parietal-observations/behavior-change/head-touch-hypersensitivity": "parietal/parietal-consultation-reasons/behavior-change/head-touch-hypersensitivity",
"parietal/parietal-observations/behavior-change/new-irritability": "parietal/parietal-consultation-reasons/behavior-change/new-irritability",
"parietal/parietal-observations/post-trauma-head": "parietal/parietal-consultation-reasons/post-trauma-head",
"parietal/anamnesis": "parietal/anamnesis",
"parietal/anamnesis/trauma-direct": "parietal/anamnesis/trauma-direct",
"parietal/anamnesis/stress-context": "parietal/anamnesis/stress-context",
"parietal/anamnesis/posture-context": "parietal/anamnesis/posture-context",
"parietal/anamnesis/dental-context": "parietal/anamnesis/dental-context",
"parietal/anamnesis/post-veterinary": "parietal/anamnesis/post-veterinary",
"parietal/anamnesis/no-identified-cause": "parietal/anamnesis/no-identified-cause",
"frontal/frontal-dysfunctions": "frontal/frontal-dysfunctions",
"frontal/frontal-dysfunctions/mobility": "frontal/frontal-dysfunctions/mobility",
"frontal/frontal-dysfunctions/mobility/flexion-external-rotation": "frontal/frontal-dysfunctions/mobility/flexion-external-rotation",
"frontal/frontal-dysfunctions/mobility/extension-internal-rotation": "frontal/frontal-dysfunctions/mobility/extension-internal-rotation",
"frontal/frontal-dysfunctions/mobility/global-restriction": "frontal/frontal-dysfunctions/mobility/global-restriction",
"frontal/frontal-dysfunctions/intraosseous": "frontal/frontal-dysfunctions/intraosseous",
"frontal/frontal-dysfunctions/intraosseous/metopic-compression": "frontal/frontal-dysfunctions/intraosseous/interfrontal-compression",
"frontal/frontal-dysfunctions/intraosseous/squama-deformation": "frontal/frontal-dysfunctions/intraosseous/squama-deformation",
"frontal/frontal-dysfunctions/sutures": "frontal/frontal-dysfunctions/sutures",
"frontal/frontal-dysfunctions/sutures/frontoparietal": "frontal/frontal-dysfunctions/sutures/frontoparietal",
"frontal/frontal-dysfunctions/sutures/frontosphenoidal": "frontal/frontal-dysfunctions/sutures/frontosphenoidal",
"frontal/frontal-dysfunctions/sutures/frontonasal": "frontal/frontal-dysfunctions/sutures/frontonasal",
"frontal/frontal-dysfunctions/sutures/frontolacrimal": "frontal/frontal-dysfunctions/sutures/frontolacrimal",
"frontal/frontal-dysfunctions/sutures/frontozygomatic": null,
"frontal/frontal-dysfunctions/sutures/interfrontal": "frontal/frontal-dysfunctions/sutures/interfrontal",
"frontal/frontal-observations": "frontal/frontal-consultation-reasons",
"frontal/frontal-observations/behavior-change": "frontal/frontal-consultation-reasons/behavior-change",
"frontal/frontal-observations/behavior-change/head-touch-hypersensitivity": "frontal/frontal-consultation-reasons/behavior-change/head-touch-hypersensitivity",
"frontal/frontal-observations/behavior-change/new-irritability": "frontal/frontal-consultation-reasons/behavior-change/new-irritability",
"frontal/frontal-observations/head-rubbing": "frontal/frontal-consultation-reasons/head-rubbing",
"frontal/frontal-observations/frontal-relief-asymmetry": "frontal/frontal-consultation-reasons/frontal-relief-asymmetry",
"frontal/frontal-observations/post-trauma-head": "frontal/frontal-consultation-reasons/post-trauma-head",
"frontal/anamnesis": "frontal/anamnesis",
"frontal/anamnesis/trauma-direct": "frontal/anamnesis/trauma-direct",
"frontal/anamnesis/stress-context": "frontal/anamnesis/stress-context",
"frontal/anamnesis/posture-context": "frontal/anamnesis/posture-context",
"frontal/anamnesis/dental-context": "frontal/anamnesis/dental-context",
"frontal/anamnesis/post-veterinary": "frontal/anamnesis/post-veterinary",
"frontal/anamnesis/no-identified-cause": "frontal/anamnesis/no-identified-cause",
"sphenoid/ssb-dysfunctions": null,
"sphenoid/ssb-dysfunctions/physiological": null,
"sphenoid/ssb-dysfunctions/physiological/flexion": null,
"sphenoid/ssb-dysfunctions/physiological/extension": null,
"sphenoid/ssb-dysfunctions/physiological/torsion-right": null,
"sphenoid/ssb-dysfunctions/physiological/torsion-left": null,
"sphenoid/ssb-dysfunctions/physiological/sidebending-rotation-right": null,
"sphenoid/ssb-dysfunctions/physiological/sidebending-rotation-left": null,
"sphenoid/ssb-dysfunctions/traumatic": null,
"sphenoid/ssb-dysfunctions/traumatic/vertical-strain-superior": null,
"sphenoid/ssb-dysfunctions/traumatic/vertical-strain-inferior": null,
"sphenoid/ssb-dysfunctions/traumatic/lateral-strain-right": null,
"sphenoid/ssb-dysfunctions/traumatic/lateral-strain-left": null,
"sphenoid/ssb-dysfunctions/traumatic/compression": null,
"sphenoid/ssb-dysfunctions/intraosseous": "sphenoid/sphenoid-dysfunctions/intraosseous",
"sphenoid/ssb-dysfunctions/intraosseous/pre-post-sphenoid": null,
"sphenoid/ssb-dysfunctions/intraosseous/lesser-wings": null,
"sphenoid/ssb-dysfunctions/intraosseous/greater-wings": null,
"sphenoid/ssb-dysfunctions/sutures": "sphenoid/sphenoid-dysfunctions/sutures",
"sphenoid/ssb-dysfunctions/sutures/sphenopetrosal": "sphenoid/sphenoid-dysfunctions/sutures/sphenopetrosal",
"sphenoid/ssb-dysfunctions/sutures/sphenosquamous": "sphenoid/sphenoid-dysfunctions/sutures/sphenosquamous",
"sphenoid/ssb-dysfunctions/sutures/sphenoparietal": "sphenoid/sphenoid-dysfunctions/sutures/sphenoparietal",
"sphenoid/ssb-dysfunctions/sutures/frontosphenoidal": null,
"sphenoid/ssb-dysfunctions/sutures/sphenozygomatic": null,
"sphenoid/ssb-dysfunctions/sutures/sphenomaxillary": "sphenoid/sphenoid-dysfunctions/sutures/sphenomaxillary",
"sphenoid/ssb-dysfunctions/sutures/sphenovomerian": null,
"sphenoid/ssb-dysfunctions/sutures/sphenopalatine": "sphenoid/sphenoid-dysfunctions/sutures/sphenopalatine",
"sphenoid/sphenoid-observations": "sphenoid/sphenoid-consultation-reasons",
"sphenoid/sphenoid-observations/behavior-change": "sphenoid/sphenoid-consultation-reasons/behavior-change",
"sphenoid/sphenoid-observations/behavior-change/irritability": "sphenoid/sphenoid-consultation-reasons/behavior-change/irritability",
"sphenoid/sphenoid-observations/behavior-change/withdrawal": "sphenoid/sphenoid-consultation-reasons/behavior-change/withdrawal",
"sphenoid/sphenoid-observations/behavior-change/hypersensitivity": "sphenoid/sphenoid-consultation-reasons/behavior-change/head-touch-hypersensitivity",
"sphenoid/sphenoid-observations/performance-drop": "sphenoid/sphenoid-consultation-reasons/performance-drop",
"sphenoid/sphenoid-observations/cycle-irregularity": "sphenoid/sphenoid-consultation-reasons/cycle-irregularity",
"sphenoid/sphenoid-observations/post-trauma-head": "sphenoid/sphenoid-consultation-reasons/post-trauma-head",
"sphenoid/anamnesis": "sphenoid/anamnesis",
"sphenoid/anamnesis/trauma-direct": "sphenoid/anamnesis/trauma-direct",
"sphenoid/anamnesis/stress-context": "sphenoid/anamnesis/stress-context",
"sphenoid/anamnesis/posture-context": "sphenoid/anamnesis/posture-context",
"sphenoid/anamnesis/dental-context": "sphenoid/anamnesis/dental-context",
"sphenoid/anamnesis/post-veterinary": "sphenoid/anamnesis/post-veterinary",
"sphenoid/anamnesis/no-identified-cause": "sphenoid/anamnesis/no-identified-cause",
"temporal/temporal-dysfunctions": "temporal/temporal-dysfunctions",
"temporal/temporal-dysfunctions/mobility": "temporal/temporal-dysfunctions/mobility",
"temporal/temporal-dysfunctions/mobility/temporal-anteriority": "temporal/temporal-dysfunctions/mobility/temporal-anteriority",
"temporal/temporal-dysfunctions/mobility/flexion-external-rotation": "temporal/temporal-dysfunctions/mobility/flexion-external-rotation",
"temporal/temporal-dysfunctions/mobility/extension-internal-rotation": "temporal/temporal-dysfunctions/mobility/extension-internal-rotation",
"temporal/temporal-dysfunctions/mobility/global-restriction": "temporal/temporal-dysfunctions/mobility/global-restriction",
"temporal/temporal-dysfunctions/intraosseous": "temporal/temporal-dysfunctions/intraosseous",
"temporal/temporal-dysfunctions/intraosseous/petrosquamous": "temporal/temporal-dysfunctions/intraosseous/petrosquamous",
"temporal/temporal-dysfunctions/intraosseous/tympanic-part": "temporal/temporal-dysfunctions/intraosseous/tympanic-part",
"temporal/temporal-dysfunctions/sutures": "temporal/temporal-dysfunctions/sutures",
"temporal/temporal-dysfunctions/sutures/parieto-temporal": "temporal/temporal-dysfunctions/sutures/parieto-temporal",
"temporal/temporal-dysfunctions/sutures/sphenosquamous": "temporal/temporal-dysfunctions/sutures/sphenosquamous",
"temporal/temporal-dysfunctions/sutures/occipitomastoid": "temporal/temporal-dysfunctions/sutures/occipitomastoid",
"temporal/temporal-dysfunctions/sutures/temporozygomatic": "temporal/temporal-dysfunctions/sutures/temporozygomatic",
"temporal/temporal-dysfunctions/sutures/petro-occipital": "temporal/temporal-dysfunctions/sutures/petro-occipital",
"temporal/temporal-observations": "temporal/temporal-consultation-reasons",
"temporal/temporal-observations/behavior-change": "temporal/temporal-consultation-reasons/behavior-change",
"temporal/temporal-observations/behavior-change/head-touch-hypersensitivity": "temporal/temporal-consultation-reasons/behavior-change/head-touch-hypersensitivity",
"temporal/temporal-observations/behavior-change/new-irritability": "temporal/temporal-consultation-reasons/behavior-change/new-irritability",
"temporal/temporal-observations/post-trauma-head": "temporal/temporal-consultation-reasons/post-trauma-head",
"temporal/anamnesis": "temporal/anamnesis",
"temporal/anamnesis/trauma-direct": "temporal/anamnesis/trauma-direct",
"temporal/anamnesis/stress-context": "temporal/anamnesis/stress-context",
"temporal/anamnesis/posture-context": "temporal/anamnesis/posture-context",
"temporal/anamnesis/dental-context": "temporal/anamnesis/dental-context",
"temporal/anamnesis/post-veterinary": "temporal/anamnesis/post-veterinary",
"temporal/anamnesis/no-identified-cause": "temporal/anamnesis/no-identified-cause",
"occipital/occipital-dysfunctions": "occipital/occipital-dysfunctions",
"occipital/occipital-dysfunctions/mobility": "occipital/occipital-dysfunctions/mobility",
"occipital/occipital-dysfunctions/mobility/condylar-compression": "occipital/occipital-dysfunctions/mobility/condylar-compression",
"occipital/occipital-dysfunctions/mobility/flexion-external-rotation": "occipital/occipital-dysfunctions/mobility/flexion-external-rotation",
"occipital/occipital-dysfunctions/mobility/extension-internal-rotation": "occipital/occipital-dysfunctions/mobility/extension-internal-rotation",
"occipital/occipital-dysfunctions/mobility/global-restriction": "occipital/occipital-dysfunctions/mobility/global-restriction",
"occipital/occipital-dysfunctions/intraosseous": "occipital/occipital-dysfunctions/intraosseous",
"occipital/occipital-dysfunctions/intraosseous/squama-part": "occipital/occipital-dysfunctions/intraosseous/squama-part",
"occipital/occipital-dysfunctions/intraosseous/condylar-parts": "occipital/occipital-dysfunctions/intraosseous/condylar-parts",
"occipital/occipital-dysfunctions/intraosseous/basilar-part": "occipital/occipital-dysfunctions/intraosseous/basilar-part",
"occipital/occipital-dysfunctions/sutures": "occipital/occipital-dysfunctions/sutures",
"occipital/occipital-dysfunctions/sutures/parieto-occipital": "occipital/occipital-dysfunctions/sutures/parieto-occipital",
"occipital/occipital-dysfunctions/sutures/occipitomastoid": "occipital/occipital-dysfunctions/sutures/occipitomastoid",
"occipital/occipital-dysfunctions/sutures/petro-occipital": "occipital/occipital-dysfunctions/sutures/petro-occipital",
"occipital/occipital-observations": "occipital/occipital-consultation-reasons",
"occipital/occipital-observations/behavior-change": "occipital/occipital-consultation-reasons/behavior-change",
"occipital/occipital-observations/behavior-change/head-touch-hypersensitivity": "occipital/occipital-consultation-reasons/behavior-change/head-touch-hypersensitivity",
"occipital/occipital-observations/behavior-change/new-irritability": "occipital/occipital-consultation-reasons/behavior-change/new-irritability",
"occipital/occipital-observations/post-trauma-head": "occipital/occipital-consultation-reasons/post-trauma-head",
"occipital/anamnesis": "occipital/anamnesis",
"occipital/anamnesis/trauma-direct": "occipital/anamnesis/trauma-direct",
"occipital/anamnesis/stress-context": "occipital/anamnesis/stress-context",
"occipital/anamnesis/posture-context": "occipital/anamnesis/posture-context",
"occipital/anamnesis/dental-context": "occipital/anamnesis/dental-context",
"occipital/anamnesis/post-veterinary": "occipital/anamnesis/post-veterinary",
"occipital/anamnesis/no-identified-cause": "occipital/anamnesis/no-identified-cause",
"ssb/ssb-dysfunctions": "ssb/ssb-dysfunctions",
"ssb/ssb-dysfunctions/physiological": "ssb/ssb-dysfunctions/physiological",
"ssb/ssb-dysfunctions/physiological/flexion": "ssb/ssb-dysfunctions/physiological/flexion",
"ssb/ssb-dysfunctions/physiological/extension": "ssb/ssb-dysfunctions/physiological/extension",
"ssb/ssb-dysfunctions/physiological/torsion-right": "ssb/ssb-dysfunctions/physiological/torsion-right",
"ssb/ssb-dysfunctions/physiological/torsion-left": "ssb/ssb-dysfunctions/physiological/torsion-left",
"ssb/ssb-dysfunctions/physiological/sidebending-rotation-right": "ssb/ssb-dysfunctions/physiological/sidebending-rotation-right",
"ssb/ssb-dysfunctions/physiological/sidebending-rotation-left": "ssb/ssb-dysfunctions/physiological/sidebending-rotation-left",
"ssb/ssb-dysfunctions/traumatic": "ssb/ssb-dysfunctions/traumatic",
"ssb/ssb-dysfunctions/traumatic/vertical-strain-superior": "ssb/ssb-dysfunctions/traumatic/vertical-strain-superior",
"ssb/ssb-dysfunctions/traumatic/vertical-strain-inferior": "ssb/ssb-dysfunctions/traumatic/vertical-strain-inferior",
"ssb/ssb-dysfunctions/traumatic/lateral-strain-right": "ssb/ssb-dysfunctions/traumatic/lateral-strain-right",
"ssb/ssb-dysfunctions/traumatic/lateral-strain-left": "ssb/ssb-dysfunctions/traumatic/lateral-strain-left",
"ssb/ssb-dysfunctions/traumatic/compression": "ssb/ssb-dysfunctions/traumatic/compression",
"ssb/ssb-dysfunctions/intraosseous": null,
"ssb/ssb-dysfunctions/intraosseous/pre-post-sphenoid": null,
"ssb/ssb-dysfunctions/intraosseous/lesser-wings": null,
"ssb/ssb-dysfunctions/intraosseous/greater-wings": null,
"ssb/ssb-dysfunctions/sutures": null,
"ssb/ssb-dysfunctions/sutures/sphenopetrosal": null,
"ssb/ssb-dysfunctions/sutures/sphenosquamous": null,
"ssb/ssb-dysfunctions/sutures/sphenoparietal": null,
"ssb/ssb-dysfunctions/sutures/frontosphenoidal": null,
"ssb/ssb-dysfunctions/sutures/sphenozygomatic": null,
"ssb/ssb-dysfunctions/sutures/sphenomaxillary": null,
"ssb/ssb-dysfunctions/sutures/sphenovomerian": null,
"ssb/ssb-dysfunctions/sutures/sphenopalatine": null,
"ssb/ssb-observations": "ssb/ssb-consultation-reasons",
"ssb/ssb-observations/behavior-change": "ssb/ssb-consultation-reasons/behavior-change",
"ssb/ssb-observations/behavior-change/irritability": "ssb/ssb-consultation-reasons/behavior-change/irritability",
"ssb/ssb-observations/behavior-change/withdrawal": "ssb/ssb-consultation-reasons/behavior-change/withdrawal",
"ssb/ssb-observations/behavior-change/hypersensitivity": "ssb/ssb-consultation-reasons/behavior-change/head-touch-hypersensitivity",
"ssb/ssb-observations/performance-drop": "ssb/ssb-consultation-reasons/performance-drop",
"ssb/ssb-observations/cycle-irregularity": "ssb/ssb-consultation-reasons/cycle-irregularity",
"ssb/ssb-observations/post-trauma-head": "ssb/ssb-consultation-reasons/post-trauma-head",
"ssb/anamnesis": "ssb/anamnesis",
"ssb/anamnesis/trauma-direct": "ssb/anamnesis/trauma-direct",
"ssb/anamnesis/stress-context": "ssb/anamnesis/stress-context",
"ssb/anamnesis/posture-context": "ssb/anamnesis/posture-context",
"ssb/anamnesis/dental-context": "ssb/anamnesis/dental-context",
"ssb/anamnesis/post-veterinary": "ssb/anamnesis/post-veterinary",
"ssb/anamnesis/no-identified-cause": "ssb/anamnesis/no-identified-cause",
"atm/atm-dysfunctions": "atm/atm-dysfunctions",
"atm/atm-dysfunctions/articular": "atm/atm-dysfunctions/articular",
"atm/atm-dysfunctions/articular/restriction-opening": "atm/atm-dysfunctions/articular/restriction-opening",
"atm/atm-dysfunctions/articular/restriction-closing": "atm/atm-dysfunctions/articular/restriction-closing",
"atm/atm-dysfunctions/articular/restriction-lateral": "atm/atm-dysfunctions/articular/restriction-lateral",
"atm/atm-dysfunctions/articular/restriction-protrusion": "atm/atm-dysfunctions/articular/restriction-protrusion",
"atm/atm-dysfunctions/articular/hypomobility": "atm/atm-dysfunctions/articular/hypomobility",
"atm/atm-dysfunctions/articular/hypermobility": "atm/atm-dysfunctions/articular/hypermobility",
"atm/atm-dysfunctions/muscular": "atm/atm-dysfunctions/muscular",
"atm/atm-dysfunctions/muscular/masseter-tension": "atm/atm-dysfunctions/muscular/masseter-tension",
"atm/atm-dysfunctions/muscular/temporalis-tension": "atm/atm-dysfunctions/muscular/temporalis-tension",
"atm/atm-dysfunctions/muscular/pterygoid-tension": "atm/atm-dysfunctions/muscular/pterygoid-tension",
"atm/atm-dysfunctions/muscular/trigger-points": "atm/atm-dysfunctions/muscular/trigger-points",
"atm/atm-dysfunctions/mechanical": "atm/atm-dysfunctions/mechanical",
"atm/atm-dysfunctions/mechanical/lateral-deviation-jaw": "atm/atm-dysfunctions/mechanical/lateral-deviation-jaw",
"atm/atm-dysfunctions/mechanical/asymmetric-dental-wear": "atm/atm-dysfunctions/mechanical/asymmetric-dental-wear",
"atm/atm-dysfunctions/mechanical/opening-deviation": "atm/atm-dysfunctions/mechanical/opening-deviation",
"atm/atm-dysfunctions/mechanical/asymmetric-amplitude": "atm/atm-dysfunctions/mechanical/asymmetric-amplitude",
"atm/atm-observations": "atm/atm-consultation-reasons",
"atm/atm-observations/bit-defense": "atm/atm-consultation-reasons/bit-defense",
"atm/atm-observations/headshaking": "atm/atm-consultation-reasons/headshaking",
"atm/atm-observations/head-tilt-saddle": "atm/atm-consultation-reasons/head-tilt-saddle",
"atm/atm-observations/slow-eating": "atm/atm-consultation-reasons/slow-eating",
"atm/atm-observations/drops-food": "atm/atm-consultation-reasons/drops-food",
"atm/atm-observations/hand-contact-refusal": "atm/atm-consultation-reasons/hand-contact-refusal",
"atm/atm-observations/false-bend": "atm/atm-consultation-reasons/false-bend",
"atm/atm-observations/post-dental-care": "atm/atm-consultation-reasons/post-dental-care",
"atm/anamnesis": "atm/anamnesis",
"atm/anamnesis/trauma-direct": "atm/anamnesis/trauma-direct",
"atm/anamnesis/stress-context": "atm/anamnesis/stress-context",
"atm/anamnesis/posture-context": "atm/anamnesis/posture-context",
"atm/anamnesis/dental-context": "atm/anamnesis/dental-context",
"atm/anamnesis/post-veterinary": "atm/anamnesis/post-veterinary",
"atm/anamnesis/no-identified-cause": "atm/anamnesis/no-identified-cause",
"hyoid/hyoid-dysfunctions": "hyoid/hyoid-dysfunctions",
"hyoid/hyoid-dysfunctions/mobility": "hyoid/hyoid-dysfunctions/mobility",
"hyoid/hyoid-dysfunctions/mobility/global-restriction": "hyoid/hyoid-dysfunctions/mobility/global-restriction",
"hyoid/hyoid-dysfunctions/mobility/lateral-deviation": "hyoid/hyoid-dysfunctions/mobility/lateral-deviation",
"hyoid/hyoid-dysfunctions/mobility/swing-restriction": "hyoid/hyoid-dysfunctions/mobility/retraction-protraction-restriction",
"hyoid/hyoid-dysfunctions/muscular": "hyoid/hyoid-dysfunctions/muscular",
"hyoid/hyoid-dysfunctions/muscular/suprahyoid-tension": "hyoid/hyoid-dysfunctions/muscular/suprahyoid-tension",
"hyoid/hyoid-dysfunctions/muscular/infrahyoid-tension": "hyoid/hyoid-dysfunctions/muscular/infrahyoid-tension",
"hyoid/hyoid-dysfunctions/muscular/stylohyoid-tension": "hyoid/hyoid-dysfunctions/muscular/stylohyoid-tension",
"hyoid/hyoid-dysfunctions/muscular/tongue-base-tension": "hyoid/hyoid-dysfunctions/muscular/tongue-base-tension",
"hyoid/hyoid-dysfunctions/intraosseous": "hyoid/hyoid-dysfunctions/intraosseous",
"hyoid/hyoid-dysfunctions/intraosseous/stylohyoid-bone": "hyoid/hyoid-dysfunctions/intraosseous/stylohyoid-bone",
"hyoid/hyoid-dysfunctions/intraosseous/basihyoid": "hyoid/hyoid-dysfunctions/intraosseous/basihyoid",
"hyoid/hyoid-observations": "hyoid/hyoid-consultation-reasons",
"hyoid/hyoid-observations/bit-defense": "hyoid/hyoid-consultation-reasons/bit-defense",
"hyoid/hyoid-observations/tongue-over-bit": "hyoid/hyoid-consultation-reasons/tongue-over-bit",
"hyoid/hyoid-observations/swallowing-difficulty": "hyoid/hyoid-consultation-reasons/swallowing-difficulty",
"hyoid/hyoid-observations/head-carriage-resistance": "hyoid/hyoid-consultation-reasons/head-carriage-resistance",
"hyoid/hyoid-observations/post-dental-care": "hyoid/hyoid-consultation-reasons/post-dental-care",
"hyoid/anamnesis": "hyoid/anamnesis",
"hyoid/anamnesis/trauma-direct": "hyoid/anamnesis/trauma-direct",
"hyoid/anamnesis/stress-context": "hyoid/anamnesis/stress-context",
"hyoid/anamnesis/posture-context": "hyoid/anamnesis/posture-context",
"hyoid/anamnesis/dental-context": "hyoid/anamnesis/dental-context",
"hyoid/anamnesis/post-veterinary": "hyoid/anamnesis/post-veterinary",
"hyoid/anamnesis/no-identified-cause": "hyoid/anamnesis/no-identified-cause",
"c0-c1/c0-c1-dysfunctions": "c0-c1/c0-c1-dysfunctions",
"c0-c1/c0-c1-dysfunctions/segmental": "c0-c1/c0-c1-dysfunctions/segmental",
"c0-c1/c0-c1-dysfunctions/segmental/restriction-flexion": "c0-c1/c0-c1-dysfunctions/segmental/restriction-flexion",
"c0-c1/c0-c1-dysfunctions/segmental/restriction-extension": "c0-c1/c0-c1-dysfunctions/segmental/restriction-extension",
"c0-c1/c0-c1-dysfunctions/segmental/restriction-lateroflexion": "c0-c1/c0-c1-dysfunctions/segmental/restriction-lateroflexion",
"c0-c1/c0-c1-dysfunctions/segmental/restriction-rotation": "c0-c1/c0-c1-dysfunctions/segmental/restriction-rotation",
"c0-c1/c0-c1-dysfunctions/segmental/fixation": "c0-c1/c0-c1-dysfunctions/segmental/fixation",
"c0-c1/c0-c1-dysfunctions/muscular": "c0-c1/c0-c1-dysfunctions/muscular",
"c0-c1/c0-c1-dysfunctions/muscular/rectus-capitis-tension": "c0-c1/c0-c1-dysfunctions/muscular/rectus-capitis-tension",
"c0-c1/c0-c1-dysfunctions/muscular/obliquus-capitis-tension": "c0-c1/c0-c1-dysfunctions/muscular/obliquus-capitis-tension",
"c0-c1/c0-c1-dysfunctions/muscular/splenius-tension": "c0-c1/c0-c1-dysfunctions/muscular/splenius-tension",
"c0-c1/c0-c1-dysfunctions/muscular/trigger-points": "c0-c1/c0-c1-dysfunctions/muscular/trigger-points",
"c0-c1/c0-c1-dysfunctions/mechanical": "c0-c1/c0-c1-dysfunctions/mechanical",
"c0-c1/c0-c1-dysfunctions/mechanical/amplitude-asymmetry": "c0-c1/c0-c1-dysfunctions/mechanical/amplitude-asymmetry",
"c0-c1/c0-c1-dysfunctions/mechanical/alignment-asymmetry": "c0-c1/c0-c1-dysfunctions/mechanical/alignment-asymmetry",
"c0-c1/c0-c1-observations": "c0-c1/c0-c1-consultation-reasons",
"c0-c1/c0-c1-observations/poll-sensitivity": "c0-c1/c0-c1-consultation-reasons/poll-sensitivity",
"c0-c1/c0-c1-observations/head-carriage": "c0-c1/c0-c1-consultation-reasons/head-carriage",
"c0-c1/c0-c1-observations/headshaking": "c0-c1/c0-c1-consultation-reasons/headshaking",
"c0-c1/c0-c1-observations/bridle-resistance": "c0-c1/c0-c1-consultation-reasons/bridle-resistance",
"c0-c1/c0-c1-observations/palpation-sensitivity": "c0-c1/c0-c1-consultation-reasons/palpation-sensitivity",
"c0-c1/anamnesis": "c0-c1/anamnesis",
"c0-c1/anamnesis/trauma-direct": "c0-c1/anamnesis/trauma-direct",
"c0-c1/anamnesis/saddle-context": "c0-c1/anamnesis/saddle-context",
"c0-c1/anamnesis/posture-context": "c0-c1/anamnesis/posture-context",
"c0-c1/anamnesis/stress-context": "c0-c1/anamnesis/stress-context",
"c0-c1/anamnesis/post-veterinary": "c0-c1/anamnesis/post-veterinary",
"c0-c1/anamnesis/no-identified-cause": "c0-c1/anamnesis/no-identified-cause",
"cervical/cervical-dysfunctions": "cervical/cervical-dysfunctions",
"cervical/cervical-dysfunctions/segmental": "cervical/cervical-dysfunctions/segmental",
"cervical/cervical-dysfunctions/segmental/restriction-flexion": "cervical/cervical-dysfunctions/segmental/restriction-flexion",
"cervical/cervical-dysfunctions/segmental/restriction-extension": "cervical/cervical-dysfunctions/segmental/restriction-extension",
"cervical/cervical-dysfunctions/segmental/restriction-lateroflexion": "cervical/cervical-dysfunctions/segmental/restriction-lateroflexion",
"cervical/cervical-dysfunctions/segmental/restriction-rotation": "cervical/cervical-dysfunctions/segmental/restriction-rotation",
"cervical/cervical-dysfunctions/segmental/localized-fixation": "cervical/cervical-dysfunctions/segmental/localized-fixation",
"cervical/cervical-dysfunctions/group": "cervical/cervical-dysfunctions/group",
"cervical/cervical-dysfunctions/group/nsr-group": "cervical/cervical-dysfunctions/group/nsr-group",
"cervical/cervical-dysfunctions/group/functional-scoliotic-attitude": "cervical/cervical-dysfunctions/group/functional-scoliotic-attitude",
"cervical/cervical-dysfunctions/muscular": "cervical/cervical-dysfunctions/muscular",
"cervical/cervical-dysfunctions/muscular/splenius-tension": "cervical/cervical-dysfunctions/muscular/splenius-tension",
"cervical/cervical-dysfunctions/muscular/longissimus-capitis-cervicis": "cervical/cervical-dysfunctions/muscular/longissimus-capitis-cervicis",
"cervical/cervical-dysfunctions/muscular/scalenus-tension": "cervical/cervical-dysfunctions/muscular/scalenus-tension",
"cervical/cervical-dysfunctions/muscular/brachiocephalicus-tension": "cervical/cervical-dysfunctions/muscular/brachiocephalicus-tension",
"cervical/cervical-dysfunctions/muscular/multifidus-cervicis": "cervical/cervical-dysfunctions/muscular/multifidus-cervicis",
"cervical/cervical-dysfunctions/mechanical": "cervical/cervical-dysfunctions/mechanical",
"cervical/cervical-dysfunctions/mechanical/lateral-bend-asymmetry": "cervical/cervical-dysfunctions/mechanical/lateral-bend-asymmetry",
"cervical/cervical-dysfunctions/mechanical/muscle-relief-asymmetry": "cervical/cervical-dysfunctions/mechanical/muscle-relief-asymmetry",
"cervical/cervical-observations": "cervical/cervical-consultation-reasons",
"cervical/cervical-observations/ridden-work": "cervical/cervical-consultation-reasons/ridden-work",
"cervical/cervical-observations/ridden-work/bend-asymmetry-work": "cervical/cervical-consultation-reasons/ridden-work/bend-asymmetry-work",
"cervical/cervical-observations/ridden-work/head-carriage": "cervical/cervical-consultation-reasons/ridden-work/head-carriage",
"cervical/cervical-observations/ridden-work/contact-resistance": "cervical/cervical-consultation-reasons/ridden-work/contact-resistance",
"cervical/cervical-observations/stumbling-proprioceptive": "cervical/cervical-consultation-reasons/stumbling-proprioceptive",
"cervical/cervical-observations/palpation-sensitivity": "cervical/cervical-consultation-reasons/palpation-sensitivity",
"cervical/cervical-observations/new-stiffness": "cervical/cervical-consultation-reasons/new-stiffness",
"cervical/anamnesis": "cervical/anamnesis",
"cervical/anamnesis/trauma-direct": "cervical/anamnesis/trauma-direct",
"cervical/anamnesis/saddle-context": "cervical/anamnesis/saddle-context",
"cervical/anamnesis/posture-context": "cervical/anamnesis/posture-context",
"cervical/anamnesis/stress-context": "cervical/anamnesis/stress-context",
"cervical/anamnesis/post-veterinary": "cervical/anamnesis/post-veterinary",
"cervical/anamnesis/no-identified-cause": "cervical/anamnesis/no-identified-cause",
"c7-t1/c7-t1-dysfunctions": "c7-t1/c7-t1-dysfunctions",
"c7-t1/c7-t1-dysfunctions/segmental": "c7-t1/c7-t1-dysfunctions/segmental",
"c7-t1/c7-t1-dysfunctions/segmental/restriction-flexion": "c7-t1/c7-t1-dysfunctions/segmental/restriction-flexion",
"c7-t1/c7-t1-dysfunctions/segmental/restriction-extension": "c7-t1/c7-t1-dysfunctions/segmental/restriction-extension",
"c7-t1/c7-t1-dysfunctions/segmental/restriction-lateroflexion": "c7-t1/c7-t1-dysfunctions/segmental/restriction-lateroflexion",
"c7-t1/c7-t1-dysfunctions/segmental/restriction-rotation": "c7-t1/c7-t1-dysfunctions/segmental/restriction-rotation",
"c7-t1/c7-t1-dysfunctions/segmental/fixation": "c7-t1/c7-t1-dysfunctions/segmental/fixation",
"c7-t1/c7-t1-dysfunctions/muscular": "c7-t1/c7-t1-dysfunctions/muscular",
"c7-t1/c7-t1-dysfunctions/muscular/scalenus-tension": "c7-t1/c7-t1-dysfunctions/muscular/scalenus-tension",
"c7-t1/c7-t1-dysfunctions/muscular/serratus-tension": "c7-t1/c7-t1-dysfunctions/muscular/serratus-tension",
"c7-t1/c7-t1-dysfunctions/muscular/brachiocephalicus-tension": "c7-t1/c7-t1-dysfunctions/muscular/brachiocephalicus-tension",
"c7-t1/c7-t1-dysfunctions/muscular/deep-cervical-tension": "c7-t1/c7-t1-dysfunctions/muscular/deep-cervical-tension",
"c7-t1/c7-t1-dysfunctions/mechanical": "c7-t1/c7-t1-dysfunctions/mechanical",
"c7-t1/c7-t1-dysfunctions/mechanical/amplitude-asymmetry": "c7-t1/c7-t1-dysfunctions/mechanical/amplitude-asymmetry",
"c7-t1/c7-t1-dysfunctions/mechanical/alignment-asymmetry": "c7-t1/c7-t1-dysfunctions/mechanical/alignment-asymmetry",
"c7-t1/c7-t1-observations": "c7-t1/c7-t1-consultation-reasons",
"c7-t1/c7-t1-observations/base-neck-stiffness": "c7-t1/c7-t1-consultation-reasons/base-neck-stiffness",
"c7-t1/c7-t1-observations/forelimb-engagement": "c7-t1/c7-t1-consultation-reasons/forelimb-engagement",
"c7-t1/c7-t1-observations/ewe-neck-posture": "c7-t1/c7-t1-consultation-reasons/ewe-neck-posture",
"c7-t1/c7-t1-observations/forelimb-lameness": "c7-t1/c7-t1-consultation-reasons/forelimb-lameness",
"c7-t1/anamnesis": "c7-t1/anamnesis",
"c7-t1/anamnesis/trauma-direct": "c7-t1/anamnesis/trauma-direct",
"c7-t1/anamnesis/saddle-context": "c7-t1/anamnesis/saddle-context",
"c7-t1/anamnesis/posture-context": "c7-t1/anamnesis/posture-context",
"c7-t1/anamnesis/stress-context": "c7-t1/anamnesis/stress-context",
"c7-t1/anamnesis/post-veterinary": "c7-t1/anamnesis/post-veterinary",
"c7-t1/anamnesis/no-identified-cause": "c7-t1/anamnesis/no-identified-cause",
"shoulder/shoulder-dysfunctions": "shoulder/shoulder-dysfunctions",
"shoulder/shoulder-dysfunctions/articular": "shoulder/shoulder-dysfunctions/articular",
"shoulder/shoulder-dysfunctions/articular/restriction-flexion": "shoulder/shoulder-dysfunctions/articular/restriction-flexion",
"shoulder/shoulder-dysfunctions/articular/restriction-extension": "shoulder/shoulder-dysfunctions/articular/restriction-extension",
"shoulder/shoulder-dysfunctions/articular/restriction-abduction-adduction": "shoulder/shoulder-dysfunctions/articular/restriction-abduction-adduction",
"shoulder/shoulder-dysfunctions/articular/restriction-glide": "shoulder/shoulder-dysfunctions/articular/restriction-glide",
"shoulder/shoulder-dysfunctions/articular/hypomobility": "shoulder/shoulder-dysfunctions/articular/hypomobility",
"shoulder/shoulder-dysfunctions/articular/hypermobility": "shoulder/shoulder-dysfunctions/articular/hypermobility",
"shoulder/shoulder-dysfunctions/muscular": "shoulder/shoulder-dysfunctions/muscular",
"shoulder/shoulder-dysfunctions/muscular/supraspinatus-infraspinatus": "shoulder/shoulder-dysfunctions/muscular/supraspinatus-infraspinatus",
"shoulder/shoulder-dysfunctions/muscular/subscapularis-tension": "shoulder/shoulder-dysfunctions/muscular/subscapularis-tension",
"shoulder/shoulder-dysfunctions/muscular/deltoid-tension": "shoulder/shoulder-dysfunctions/muscular/deltoid-tension",
"shoulder/shoulder-dysfunctions/muscular/biceps-brachii-tension": "shoulder/shoulder-dysfunctions/muscular/biceps-brachii-tension",
"shoulder/shoulder-dysfunctions/muscular/trigger-points": "shoulder/shoulder-dysfunctions/muscular/trigger-points",
"shoulder/shoulder-dysfunctions/mechanical": "shoulder/shoulder-dysfunctions/mechanical",
"shoulder/shoulder-dysfunctions/mechanical/weight-bearing-asymmetry": "shoulder/shoulder-dysfunctions/mechanical/weight-bearing-asymmetry",
"shoulder/shoulder-dysfunctions/mechanical/amplitude-asymmetry": "shoulder/shoulder-dysfunctions/mechanical/amplitude-asymmetry",
"shoulder/shoulder-dysfunctions/mechanical/scapula-position-asymmetry": "shoulder/shoulder-dysfunctions/mechanical/scapula-position-asymmetry",
"shoulder/shoulder-observations": "shoulder/shoulder-consultation-reasons",
"shoulder/shoulder-observations/ridden-work": "shoulder/shoulder-consultation-reasons/ridden-work",
"shoulder/shoulder-observations/ridden-work/canter-difficulty": "shoulder/shoulder-consultation-reasons/ridden-work/canter-difficulty",
"shoulder/shoulder-observations/ridden-work/backing-difficulty": "shoulder/shoulder-consultation-reasons/ridden-work/backing-difficulty",
"shoulder/shoulder-observations/ridden-work/limb-engagement": "shoulder/shoulder-consultation-reasons/ridden-work/limb-engagement",
"shoulder/shoulder-observations/ridden-work/jumping-difficulty": "shoulder/shoulder-consultation-reasons/ridden-work/jumping-difficulty",
"shoulder/shoulder-observations/shortened-cranial-phase": "shoulder/shoulder-consultation-reasons/shortened-cranial-phase",
"shoulder/shoulder-observations/limb-lameness": "shoulder/shoulder-consultation-reasons/limb-lameness",
"shoulder/anamnesis": "shoulder/anamnesis",
"shoulder/anamnesis/trauma-direct": "shoulder/anamnesis/trauma-direct",
"shoulder/anamnesis/sport-context": "shoulder/anamnesis/sport-context",
"shoulder/anamnesis/posture-context": "shoulder/anamnesis/posture-context",
"shoulder/anamnesis/stress-context": "shoulder/anamnesis/stress-context",
"shoulder/anamnesis/post-veterinary": "shoulder/anamnesis/post-veterinary",
"shoulder/anamnesis/no-identified-cause": "shoulder/anamnesis/no-identified-cause",
"elbow/elbow-dysfunctions": "elbow/elbow-dysfunctions",
"elbow/elbow-dysfunctions/articular": "elbow/elbow-dysfunctions/articular",
"elbow/elbow-dysfunctions/articular/restriction-flexion": "elbow/elbow-dysfunctions/articular/restriction-flexion",
"elbow/elbow-dysfunctions/articular/restriction-extension": "elbow/elbow-dysfunctions/articular/restriction-extension",
"elbow/elbow-dysfunctions/articular/restriction-lateromedial": "elbow/elbow-dysfunctions/articular/restriction-lateromedial",
"elbow/elbow-dysfunctions/articular/hypomobility": "elbow/elbow-dysfunctions/articular/hypomobility",
"elbow/elbow-dysfunctions/articular/hypermobility": "elbow/elbow-dysfunctions/articular/hypermobility",
"elbow/elbow-dysfunctions/muscular": "elbow/elbow-dysfunctions/muscular",
"elbow/elbow-dysfunctions/muscular/triceps-tension": "elbow/elbow-dysfunctions/muscular/triceps-tension",
"elbow/elbow-dysfunctions/muscular/biceps-brachialis-tension": "elbow/elbow-dysfunctions/muscular/biceps-brachialis-tension",
"elbow/elbow-dysfunctions/muscular/carpal-extensors-origin": "elbow/elbow-dysfunctions/muscular/carpal-extensors-origin",
"elbow/elbow-dysfunctions/muscular/carpal-flexors-origin": "elbow/elbow-dysfunctions/muscular/carpal-flexors-origin",
"elbow/elbow-dysfunctions/muscular/trigger-points": "elbow/elbow-dysfunctions/muscular/trigger-points",
"elbow/elbow-dysfunctions/mechanical": "elbow/elbow-dysfunctions/mechanical",
"elbow/elbow-dysfunctions/mechanical/weight-bearing-asymmetry": "elbow/elbow-dysfunctions/mechanical/weight-bearing-asymmetry",
"elbow/elbow-dysfunctions/mechanical/amplitude-asymmetry": "elbow/elbow-dysfunctions/mechanical/amplitude-asymmetry",
"elbow/elbow-observations": "elbow/elbow-consultation-reasons",
"elbow/elbow-observations/ridden-work": "elbow/elbow-consultation-reasons/ridden-work",
"elbow/elbow-observations/ridden-work/canter-difficulty": "elbow/elbow-consultation-reasons/ridden-work/canter-difficulty",
"elbow/elbow-observations/ridden-work/backing-difficulty": "elbow/elbow-consultation-reasons/ridden-work/backing-difficulty",
"elbow/elbow-observations/ridden-work/limb-engagement": "elbow/elbow-consultation-reasons/ridden-work/limb-engagement",
"elbow/elbow-observations/ridden-work/jumping-difficulty": "elbow/elbow-consultation-reasons/ridden-work/jumping-difficulty",
"elbow/elbow-observations/limb-lameness": "elbow/elbow-consultation-reasons/limb-lameness",
"elbow/anamnesis": "elbow/anamnesis",
"elbow/anamnesis/trauma-direct": "elbow/anamnesis/trauma-direct",
"elbow/anamnesis/sport-context": "elbow/anamnesis/sport-context",
"elbow/anamnesis/posture-context": "elbow/anamnesis/posture-context",
"elbow/anamnesis/stress-context": "elbow/anamnesis/stress-context",
"elbow/anamnesis/post-veterinary": "elbow/anamnesis/post-veterinary",
"elbow/anamnesis/no-identified-cause": "elbow/anamnesis/no-identified-cause",
"fore-fetlock/fore-fetlock-dysfunctions": "fore-fetlock/fore-fetlock-dysfunctions",
"fore-fetlock/fore-fetlock-dysfunctions/articular": "fore-fetlock/fore-fetlock-dysfunctions/articular",
"fore-fetlock/fore-fetlock-dysfunctions/articular/restriction-flexion": "fore-fetlock/fore-fetlock-dysfunctions/articular/restriction-flexion",
"fore-fetlock/fore-fetlock-dysfunctions/articular/restriction-extension": "fore-fetlock/fore-fetlock-dysfunctions/articular/restriction-extension",
"fore-fetlock/fore-fetlock-dysfunctions/articular/restriction-lateromedial": "fore-fetlock/fore-fetlock-dysfunctions/articular/restriction-lateromedial",
"fore-fetlock/fore-fetlock-dysfunctions/articular/hypomobility": "fore-fetlock/fore-fetlock-dysfunctions/articular/hypomobility",
"fore-fetlock/fore-fetlock-dysfunctions/articular/hypermobility": "fore-fetlock/fore-fetlock-dysfunctions/articular/hypermobility",
"fore-fetlock/fore-fetlock-dysfunctions/muscular": "fore-fetlock/fore-fetlock-dysfunctions/muscular",
"fore-fetlock/fore-fetlock-dysfunctions/muscular/digital-flexors-tendon": "fore-fetlock/fore-fetlock-dysfunctions/muscular/digital-flexors-tendon",
"fore-fetlock/fore-fetlock-dysfunctions/muscular/digital-extensor-tendon": "fore-fetlock/fore-fetlock-dysfunctions/muscular/digital-extensor-tendon",
"fore-fetlock/fore-fetlock-dysfunctions/muscular/palmar-fascia": "fore-fetlock/fore-fetlock-dysfunctions/muscular/palmar-fascia",
"fore-fetlock/fore-fetlock-dysfunctions/mechanical": "fore-fetlock/fore-fetlock-dysfunctions/mechanical",
"fore-fetlock/fore-fetlock-dysfunctions/mechanical/weight-bearing-asymmetry": "fore-fetlock/fore-fetlock-dysfunctions/mechanical/weight-bearing-asymmetry",
"fore-fetlock/fore-fetlock-dysfunctions/mechanical/amplitude-asymmetry": "fore-fetlock/fore-fetlock-dysfunctions/mechanical/amplitude-asymmetry",
"fore-fetlock/fore-fetlock-dysfunctions/mechanical/fetlock-axis-asymmetry": "fore-fetlock/fore-fetlock-dysfunctions/mechanical/fetlock-axis-asymmetry",
"fore-fetlock/fore-fetlock-observations": "fore-fetlock/fore-fetlock-consultation-reasons",
"fore-fetlock/fore-fetlock-observations/ridden-work": "fore-fetlock/fore-fetlock-consultation-reasons/ridden-work",
"fore-fetlock/fore-fetlock-observations/ridden-work/canter-difficulty": "fore-fetlock/fore-fetlock-consultation-reasons/ridden-work/canter-difficulty",
"fore-fetlock/fore-fetlock-observations/ridden-work/backing-difficulty": "fore-fetlock/fore-fetlock-consultation-reasons/ridden-work/backing-difficulty",
"fore-fetlock/fore-fetlock-observations/ridden-work/limb-engagement": "fore-fetlock/fore-fetlock-consultation-reasons/ridden-work/limb-engagement",
"fore-fetlock/fore-fetlock-observations/ridden-work/jumping-difficulty": "fore-fetlock/fore-fetlock-consultation-reasons/ridden-work/jumping-difficulty",
"fore-fetlock/fore-fetlock-observations/limb-lameness": "fore-fetlock/fore-fetlock-consultation-reasons/limb-lameness",
"fore-fetlock/anamnesis": "fore-fetlock/anamnesis",
"fore-fetlock/anamnesis/trauma-direct": "fore-fetlock/anamnesis/trauma-direct",
"fore-fetlock/anamnesis/sport-context": "fore-fetlock/anamnesis/sport-context",
"fore-fetlock/anamnesis/posture-context": "fore-fetlock/anamnesis/posture-context",
"fore-fetlock/anamnesis/stress-context": "fore-fetlock/anamnesis/stress-context",
"fore-fetlock/anamnesis/post-veterinary": "fore-fetlock/anamnesis/post-veterinary",
"fore-fetlock/anamnesis/no-identified-cause": "fore-fetlock/anamnesis/no-identified-cause",
"fore-sesamoids/fore-sesamoids-dysfunctions": "fore-sesamoids/fore-sesamoids-dysfunctions",
"fore-sesamoids/fore-sesamoids-dysfunctions/mobility": "fore-sesamoids/fore-sesamoids-dysfunctions/mobility",
"fore-sesamoids/fore-sesamoids-dysfunctions/mobility/sesamoid-glide-restriction": "fore-sesamoids/fore-sesamoids-dysfunctions/mobility/sesamoid-glide-restriction",
"fore-sesamoids/fore-sesamoids-dysfunctions/mobility/medial-sesamoid": "fore-sesamoids/fore-sesamoids-dysfunctions/mobility/medial-sesamoid",
"fore-sesamoids/fore-sesamoids-dysfunctions/mobility/lateral-sesamoid": "fore-sesamoids/fore-sesamoids-dysfunctions/mobility/lateral-sesamoid",
"fore-sesamoids/fore-sesamoids-dysfunctions/ligamentous": "fore-sesamoids/fore-sesamoids-dysfunctions/ligamentous",
"fore-sesamoids/fore-sesamoids-dysfunctions/ligamentous/intersesamoidean": "fore-sesamoids/fore-sesamoids-dysfunctions/ligamentous/intersesamoidean",
"fore-sesamoids/fore-sesamoids-dysfunctions/ligamentous/flexor-tendon-glide": "fore-sesamoids/fore-sesamoids-dysfunctions/ligamentous/flexor-tendon-glide",
"fore-sesamoids/fore-sesamoids-dysfunctions/mechanical": "fore-sesamoids/fore-sesamoids-dysfunctions/mechanical",
"fore-sesamoids/fore-sesamoids-dysfunctions/mechanical/sesamoid-asymmetry": "fore-sesamoids/fore-sesamoids-dysfunctions/mechanical/sesamoid-asymmetry",
"fore-sesamoids/fore-sesamoids-dysfunctions/mechanical/weight-bearing-asymmetry": "fore-sesamoids/fore-sesamoids-dysfunctions/mechanical/weight-bearing-asymmetry",
"fore-sesamoids/fore-sesamoids-observations": "fore-sesamoids/fore-sesamoids-consultation-reasons",
"fore-sesamoids/fore-sesamoids-observations/local-sensitivity": "fore-sesamoids/fore-sesamoids-consultation-reasons/local-sensitivity",
"fore-sesamoids/fore-sesamoids-observations/shortened-stride": "fore-sesamoids/fore-sesamoids-consultation-reasons/shortened-stride",
"fore-sesamoids/fore-sesamoids-observations/forelimb-lameness": "fore-sesamoids/fore-sesamoids-consultation-reasons/forelimb-lameness",
"fore-sesamoids/anamnesis": "fore-sesamoids/anamnesis",
"fore-sesamoids/anamnesis/trauma-direct": "fore-sesamoids/anamnesis/trauma-direct",
"fore-sesamoids/anamnesis/sport-context": "fore-sesamoids/anamnesis/sport-context",
"fore-sesamoids/anamnesis/posture-context": "fore-sesamoids/anamnesis/posture-context",
"fore-sesamoids/anamnesis/stress-context": "fore-sesamoids/anamnesis/stress-context",
"fore-sesamoids/anamnesis/post-veterinary": "fore-sesamoids/anamnesis/post-veterinary",
"fore-sesamoids/anamnesis/no-identified-cause": "fore-sesamoids/anamnesis/no-identified-cause",
"thoracic/thoracic-dysfunctions": "thoracic/thoracic-dysfunctions",
"thoracic/thoracic-dysfunctions/segmental": "thoracic/thoracic-dysfunctions/segmental",
"thoracic/thoracic-dysfunctions/segmental/restriction-flexion": "thoracic/thoracic-dysfunctions/segmental/restriction-flexion",
"thoracic/thoracic-dysfunctions/segmental/restriction-extension": "thoracic/thoracic-dysfunctions/segmental/restriction-extension",
"thoracic/thoracic-dysfunctions/segmental/restriction-lateroflexion": "thoracic/thoracic-dysfunctions/segmental/restriction-lateroflexion",
"thoracic/thoracic-dysfunctions/segmental/restriction-rotation": "thoracic/thoracic-dysfunctions/segmental/restriction-rotation",
"thoracic/thoracic-dysfunctions/segmental/localized-fixation": "thoracic/thoracic-dysfunctions/segmental/localized-fixation",
"thoracic/thoracic-dysfunctions/costovertebral": "thoracic/thoracic-dysfunctions/costovertebral",
"thoracic/thoracic-dysfunctions/costovertebral/rib-head-restriction": "thoracic/thoracic-dysfunctions/costovertebral/rib-head-restriction",
"thoracic/thoracic-dysfunctions/costovertebral/rib-respiratory-restriction": "thoracic/thoracic-dysfunctions/costovertebral/rib-respiratory-restriction",
"thoracic/thoracic-dysfunctions/group": "thoracic/thoracic-dysfunctions/group",
"thoracic/thoracic-dysfunctions/group/nsr-group": "thoracic/thoracic-dysfunctions/group/nsr-group",
"thoracic/thoracic-dysfunctions/group/functional-scoliotic-attitude": "thoracic/thoracic-dysfunctions/group/functional-scoliotic-attitude",
"thoracic/thoracic-dysfunctions/muscular": "thoracic/thoracic-dysfunctions/muscular",
"thoracic/thoracic-dysfunctions/muscular/longissimus-tension": "thoracic/thoracic-dysfunctions/muscular/longissimus-tension",
"thoracic/thoracic-dysfunctions/muscular/iliocostalis-tension": "thoracic/thoracic-dysfunctions/muscular/iliocostalis-tension",
"thoracic/thoracic-dysfunctions/muscular/trapezius-tension": "thoracic/thoracic-dysfunctions/muscular/trapezius-tension",
"thoracic/thoracic-dysfunctions/muscular/latissimus-tension": "thoracic/thoracic-dysfunctions/muscular/latissimus-tension",
"thoracic/thoracic-dysfunctions/muscular/trigger-points": "thoracic/thoracic-dysfunctions/muscular/trigger-points",
"thoracic/thoracic-dysfunctions/mechanical": "thoracic/thoracic-dysfunctions/mechanical",
"thoracic/thoracic-dysfunctions/mechanical/muscle-relief-asymmetry": "thoracic/thoracic-dysfunctions/mechanical/muscle-relief-asymmetry",
"thoracic/thoracic-dysfunctions/mechanical/withers-asymmetry": "thoracic/thoracic-dysfunctions/mechanical/withers-asymmetry",
"thoracic/thoracic-observations": "thoracic/thoracic-consultation-reasons",
"thoracic/thoracic-observations/ridden-work": "thoracic/thoracic-consultation-reasons/ridden-work",
"thoracic/thoracic-observations/ridden-work/saddle-region-sensitivity": "thoracic/thoracic-consultation-reasons/ridden-work/saddle-region-sensitivity",
"thoracic/thoracic-observations/ridden-work/cold-backed": "thoracic/thoracic-consultation-reasons/ridden-work/cold-backed",
"thoracic/thoracic-observations/ridden-work/hindquarter-engagement": "thoracic/thoracic-consultation-reasons/ridden-work/back-transmission",
"thoracic/thoracic-observations/ridden-work/bucking": "thoracic/thoracic-consultation-reasons/ridden-work/bucking",
"thoracic/thoracic-observations/girthing-defense": "thoracic/thoracic-consultation-reasons/girthing-defense",
"thoracic/thoracic-observations/palpation-sensitivity": "thoracic/thoracic-consultation-reasons/palpation-sensitivity",
"thoracic/thoracic-observations/new-stiffness": "thoracic/thoracic-consultation-reasons/new-stiffness",
"thoracic/anamnesis": "thoracic/anamnesis",
"thoracic/anamnesis/trauma-direct": "thoracic/anamnesis/trauma-direct",
"thoracic/anamnesis/saddle-context": "thoracic/anamnesis/saddle-context",
"thoracic/anamnesis/posture-context": "thoracic/anamnesis/posture-context",
"thoracic/anamnesis/stress-context": "thoracic/anamnesis/stress-context",
"thoracic/anamnesis/post-veterinary": "thoracic/anamnesis/post-veterinary",
"thoracic/anamnesis/no-identified-cause": "thoracic/anamnesis/no-identified-cause",
"t18-l1/t18-l1-dysfunctions": "t18-l1/t18-l1-dysfunctions",
"t18-l1/t18-l1-dysfunctions/segmental": "t18-l1/t18-l1-dysfunctions/segmental",
"t18-l1/t18-l1-dysfunctions/segmental/restriction-flexion": "t18-l1/t18-l1-dysfunctions/segmental/restriction-flexion",
"t18-l1/t18-l1-dysfunctions/segmental/restriction-extension": "t18-l1/t18-l1-dysfunctions/segmental/restriction-extension",
"t18-l1/t18-l1-dysfunctions/segmental/restriction-lateroflexion": "t18-l1/t18-l1-dysfunctions/segmental/restriction-lateroflexion",
"t18-l1/t18-l1-dysfunctions/segmental/restriction-rotation": "t18-l1/t18-l1-dysfunctions/segmental/restriction-rotation",
"t18-l1/t18-l1-dysfunctions/segmental/fixation": "t18-l1/t18-l1-dysfunctions/segmental/fixation",
"t18-l1/t18-l1-dysfunctions/muscular": "t18-l1/t18-l1-dysfunctions/muscular",
"t18-l1/t18-l1-dysfunctions/muscular/longissimus-tension": "t18-l1/t18-l1-dysfunctions/muscular/longissimus-tension",
"t18-l1/t18-l1-dysfunctions/muscular/iliocostalis-tension": "t18-l1/t18-l1-dysfunctions/muscular/iliocostalis-tension",
"t18-l1/t18-l1-dysfunctions/muscular/thoracolumbar-fascia": "t18-l1/t18-l1-dysfunctions/muscular/thoracolumbar-fascia",
"t18-l1/t18-l1-dysfunctions/muscular/trigger-points": "t18-l1/t18-l1-dysfunctions/muscular/trigger-points",
"t18-l1/t18-l1-dysfunctions/mechanical": "t18-l1/t18-l1-dysfunctions/mechanical",
"t18-l1/t18-l1-dysfunctions/mechanical/amplitude-asymmetry": "t18-l1/t18-l1-dysfunctions/mechanical/amplitude-asymmetry",
"t18-l1/t18-l1-dysfunctions/mechanical/alignment-asymmetry": "t18-l1/t18-l1-dysfunctions/mechanical/alignment-asymmetry",
"t18-l1/t18-l1-observations": "t18-l1/t18-l1-consultation-reasons",
"t18-l1/t18-l1-observations/back-mobility-loss": "t18-l1/t18-l1-consultation-reasons/back-mobility-loss",
"t18-l1/t18-l1-observations/saddle-rear-sensitivity": "t18-l1/t18-l1-consultation-reasons/saddle-rear-sensitivity",
"t18-l1/t18-l1-observations/transmission-defect": "t18-l1/t18-l1-consultation-reasons/transmission-defect",
"t18-l1/t18-l1-observations/palpation-sensitivity": "t18-l1/t18-l1-consultation-reasons/palpation-sensitivity",
"t18-l1/anamnesis": "t18-l1/anamnesis",
"t18-l1/anamnesis/trauma-direct": "t18-l1/anamnesis/trauma-direct",
"t18-l1/anamnesis/saddle-context": "t18-l1/anamnesis/saddle-context",
"t18-l1/anamnesis/posture-context": "t18-l1/anamnesis/posture-context",
"t18-l1/anamnesis/stress-context": "t18-l1/anamnesis/stress-context",
"t18-l1/anamnesis/post-veterinary": "t18-l1/anamnesis/post-veterinary",
"t18-l1/anamnesis/no-identified-cause": "t18-l1/anamnesis/no-identified-cause",
"lumbar/lumbar-dysfunctions": "lumbar/lumbar-dysfunctions",
"lumbar/lumbar-dysfunctions/segmental": "lumbar/lumbar-dysfunctions/segmental",
"lumbar/lumbar-dysfunctions/segmental/restriction-flexion": "lumbar/lumbar-dysfunctions/segmental/restriction-flexion",
"lumbar/lumbar-dysfunctions/segmental/restriction-extension": "lumbar/lumbar-dysfunctions/segmental/restriction-extension",
"lumbar/lumbar-dysfunctions/segmental/restriction-lateroflexion": "lumbar/lumbar-dysfunctions/segmental/restriction-lateroflexion",
"lumbar/lumbar-dysfunctions/segmental/restriction-rotation": "lumbar/lumbar-dysfunctions/segmental/restriction-rotation",
"lumbar/lumbar-dysfunctions/segmental/localized-fixation": "lumbar/lumbar-dysfunctions/segmental/localized-fixation",
"lumbar/lumbar-dysfunctions/group": "lumbar/lumbar-dysfunctions/group",
"lumbar/lumbar-dysfunctions/group/nsr-group": "lumbar/lumbar-dysfunctions/group/nsr-group",
"lumbar/lumbar-dysfunctions/group/functional-scoliotic-attitude": "lumbar/lumbar-dysfunctions/group/functional-scoliotic-attitude",
"lumbar/lumbar-dysfunctions/muscular": "lumbar/lumbar-dysfunctions/muscular",
"lumbar/lumbar-dysfunctions/muscular/longissimus-tension": "lumbar/lumbar-dysfunctions/muscular/longissimus-tension",
"lumbar/lumbar-dysfunctions/muscular/iliocostalis-tension": "lumbar/lumbar-dysfunctions/muscular/iliocostalis-tension",
"lumbar/lumbar-dysfunctions/muscular/psoas-tension": "lumbar/lumbar-dysfunctions/muscular/psoas-tension",
"lumbar/lumbar-dysfunctions/muscular/trigger-points": "lumbar/lumbar-dysfunctions/muscular/trigger-points",
"lumbar/lumbar-dysfunctions/mechanical": "lumbar/lumbar-dysfunctions/mechanical",
"lumbar/lumbar-dysfunctions/mechanical/muscle-relief-asymmetry": "lumbar/lumbar-dysfunctions/mechanical/muscle-relief-asymmetry",
"lumbar/lumbar-dysfunctions/mechanical/pelvic-tilt-asymmetry": "lumbar/lumbar-dysfunctions/mechanical/pelvic-tilt-asymmetry",
"lumbar/lumbar-observations": "lumbar/lumbar-consultation-reasons",
"lumbar/lumbar-observations/ridden-work": "lumbar/lumbar-consultation-reasons/ridden-work",
"lumbar/lumbar-observations/ridden-work/hollow-back-under-rider": "lumbar/lumbar-consultation-reasons/ridden-work/hollow-back-under-rider",
"lumbar/lumbar-observations/ridden-work/hindlimb-engagement": "lumbar/lumbar-consultation-reasons/ridden-work/hindlimb-engagement",
"lumbar/lumbar-observations/ridden-work/jumping-difficulty": "lumbar/lumbar-consultation-reasons/ridden-work/jumping-difficulty",
"lumbar/lumbar-observations/ridden-work/blocking-at-work": "lumbar/lumbar-consultation-reasons/ridden-work/blocking-at-work",
"lumbar/lumbar-observations/girthing-defense": "lumbar/lumbar-consultation-reasons/girthing-defense",
"lumbar/lumbar-observations/palpation-sensitivity": "lumbar/lumbar-consultation-reasons/palpation-sensitivity",
"lumbar/lumbar-observations/new-stiffness": "lumbar/lumbar-consultation-reasons/new-stiffness",
"lumbar/anamnesis": "lumbar/anamnesis",
"lumbar/anamnesis/trauma-direct": "lumbar/anamnesis/trauma-direct",
"lumbar/anamnesis/saddle-context": "lumbar/anamnesis/saddle-context",
"lumbar/anamnesis/posture-context": "lumbar/anamnesis/posture-context",
"lumbar/anamnesis/stress-context": "lumbar/anamnesis/stress-context",
"lumbar/anamnesis/post-veterinary": "lumbar/anamnesis/post-veterinary",
"lumbar/anamnesis/no-identified-cause": "lumbar/anamnesis/no-identified-cause",
"l6-s1/l6-s1-dysfunctions": "l6-s1/l6-s1-dysfunctions",
"l6-s1/l6-s1-dysfunctions/segmental": "l6-s1/l6-s1-dysfunctions/segmental",
"l6-s1/l6-s1-dysfunctions/segmental/restriction-flexion": "l6-s1/l6-s1-dysfunctions/segmental/restriction-flexion",
"l6-s1/l6-s1-dysfunctions/segmental/restriction-extension": "l6-s1/l6-s1-dysfunctions/segmental/restriction-extension",
"l6-s1/l6-s1-dysfunctions/segmental/restriction-lateroflexion": "l6-s1/l6-s1-dysfunctions/segmental/restriction-lateroflexion",
"l6-s1/l6-s1-dysfunctions/segmental/restriction-rotation": "l6-s1/l6-s1-dysfunctions/segmental/restriction-rotation",
"l6-s1/l6-s1-dysfunctions/segmental/fixation": "l6-s1/l6-s1-dysfunctions/segmental/fixation",
"l6-s1/l6-s1-dysfunctions/muscular": "l6-s1/l6-s1-dysfunctions/muscular",
"l6-s1/l6-s1-dysfunctions/muscular/psoas-tension": "l6-s1/l6-s1-dysfunctions/muscular/psoas-tension",
"l6-s1/l6-s1-dysfunctions/muscular/longissimus-tension": "l6-s1/l6-s1-dysfunctions/muscular/longissimus-tension",
"l6-s1/l6-s1-dysfunctions/muscular/gluteal-tension": "l6-s1/l6-s1-dysfunctions/muscular/gluteal-tension",
"l6-s1/l6-s1-dysfunctions/muscular/trigger-points": "l6-s1/l6-s1-dysfunctions/muscular/trigger-points",
"l6-s1/l6-s1-dysfunctions/mechanical": "l6-s1/l6-s1-dysfunctions/mechanical",
"l6-s1/l6-s1-dysfunctions/mechanical/amplitude-asymmetry": "l6-s1/l6-s1-dysfunctions/mechanical/amplitude-asymmetry",
"l6-s1/l6-s1-dysfunctions/mechanical/alignment-asymmetry": "l6-s1/l6-s1-dysfunctions/mechanical/alignment-asymmetry",
"l6-s1/l6-s1-observations": "l6-s1/l6-s1-consultation-reasons",
"l6-s1/l6-s1-observations/hindlimb-engagement": "l6-s1/l6-s1-consultation-reasons/hindlimb-engagement",
"l6-s1/l6-s1-observations/canter-quality": "l6-s1/l6-s1-consultation-reasons/canter-quality",
"l6-s1/l6-s1-observations/jumping-propulsion": "l6-s1/l6-s1-consultation-reasons/jumping-propulsion",
"l6-s1/l6-s1-observations/palpation-sensitivity": "l6-s1/l6-s1-consultation-reasons/palpation-sensitivity",
"l6-s1/anamnesis": "l6-s1/anamnesis",
"l6-s1/anamnesis/trauma-direct": "l6-s1/anamnesis/trauma-direct",
"l6-s1/anamnesis/saddle-context": "l6-s1/anamnesis/saddle-context",
"l6-s1/anamnesis/posture-context": "l6-s1/anamnesis/posture-context",
"l6-s1/anamnesis/stress-context": "l6-s1/anamnesis/stress-context",
"l6-s1/anamnesis/post-veterinary": "l6-s1/anamnesis/post-veterinary",
"l6-s1/anamnesis/no-identified-cause": "l6-s1/anamnesis/no-identified-cause",
"sacral/sacral-dysfunctions": "sacral/sacral-dysfunctions",
"sacral/sacral-dysfunctions/mobility": "sacral/sacral-dysfunctions/mobility",
"sacral/sacral-dysfunctions/mobility/nutation-restriction": "sacral/sacral-dysfunctions/mobility/nutation-restriction",
"sacral/sacral-dysfunctions/mobility/counternutation-restriction": "sacral/sacral-dysfunctions/mobility/counternutation-restriction",
"sacral/sacral-dysfunctions/mobility/sacral-torsion": "sacral/sacral-dysfunctions/mobility/sacral-torsion",
"sacral/sacral-dysfunctions/mobility/lateralisation": "sacral/sacral-dysfunctions/mobility/lateralisation",
"sacral/sacral-dysfunctions/muscular": "sacral/sacral-dysfunctions/muscular",
"sacral/sacral-dysfunctions/muscular/gluteal-tension": "sacral/sacral-dysfunctions/muscular/gluteal-tension",
"sacral/sacral-dysfunctions/muscular/longissimus-tension": "sacral/sacral-dysfunctions/muscular/longissimus-tension",
"sacral/sacral-dysfunctions/muscular/sacrocaudalis-tension": "sacral/sacral-dysfunctions/muscular/sacrocaudalis-tension",
"sacral/sacral-dysfunctions/muscular/trigger-points": "sacral/sacral-dysfunctions/muscular/trigger-points",
"sacral/sacral-dysfunctions/mechanical": "sacral/sacral-dysfunctions/mechanical",
"sacral/sacral-dysfunctions/mechanical/tuber-sacrale-asymmetry": "sacral/sacral-dysfunctions/mechanical/tuber-sacrale-asymmetry",
"sacral/sacral-dysfunctions/mechanical/pelvic-obliquity": "sacral/sacral-dysfunctions/mechanical/pelvic-obliquity",
"sacral/sacral-observations": "sacral/sacral-consultation-reasons",
"sacral/sacral-observations/ridden-work": "sacral/sacral-consultation-reasons/ridden-work",
"sacral/sacral-observations/ridden-work/hindlimb-propulsion": "sacral/sacral-consultation-reasons/ridden-work/hindlimb-propulsion",
"sacral/sacral-observations/ridden-work/canter-quality": "sacral/sacral-consultation-reasons/ridden-work/canter-quality",
"sacral/sacral-observations/ridden-work/bunny-hopping": "sacral/sacral-consultation-reasons/ridden-work/bunny-hopping",
"sacral/sacral-observations/tail-carriage": "sacral/sacral-consultation-reasons/tail-carriage",
"sacral/sacral-observations/palpation-sensitivity": "sacral/sacral-consultation-reasons/palpation-sensitivity",
"sacral/sacral-observations/new-stiffness": "sacral/sacral-consultation-reasons/new-stiffness",
"sacral/anamnesis": "sacral/anamnesis",
"sacral/anamnesis/trauma-direct": "sacral/anamnesis/trauma-direct",
"sacral/anamnesis/saddle-context": "sacral/anamnesis/saddle-context",
"sacral/anamnesis/posture-context": "sacral/anamnesis/posture-context",
"sacral/anamnesis/stress-context": "sacral/anamnesis/stress-context",
"sacral/anamnesis/post-veterinary": "sacral/anamnesis/post-veterinary",
"sacral/anamnesis/no-identified-cause": "sacral/anamnesis/no-identified-cause",
"sacroiliac/sacroiliac-dysfunctions": "sacroiliac/sacroiliac-dysfunctions",
"sacroiliac/sacroiliac-dysfunctions/articular": "sacroiliac/sacroiliac-dysfunctions/articular",
"sacroiliac/sacroiliac-dysfunctions/articular/nutation-restriction": "sacroiliac/sacroiliac-dysfunctions/articular/nutation-restriction",
"sacroiliac/sacroiliac-dysfunctions/articular/counternutation-restriction": "sacroiliac/sacroiliac-dysfunctions/articular/counternutation-restriction",
"sacroiliac/sacroiliac-dysfunctions/articular/iliac-rotation": "sacroiliac/sacroiliac-dysfunctions/articular/iliac-rotation",
"sacroiliac/sacroiliac-dysfunctions/articular/shear-restriction": "sacroiliac/sacroiliac-dysfunctions/articular/shear-restriction",
"sacroiliac/sacroiliac-dysfunctions/articular/hypomobility": "sacroiliac/sacroiliac-dysfunctions/articular/hypomobility",
"sacroiliac/sacroiliac-dysfunctions/articular/hypermobility": "sacroiliac/sacroiliac-dysfunctions/articular/hypermobility",
"sacroiliac/sacroiliac-dysfunctions/muscular": "sacroiliac/sacroiliac-dysfunctions/muscular",
"sacroiliac/sacroiliac-dysfunctions/muscular/gluteus-medius-tension": "sacroiliac/sacroiliac-dysfunctions/muscular/gluteus-medius-tension",
"sacroiliac/sacroiliac-dysfunctions/muscular/longissimus-tension": "sacroiliac/sacroiliac-dysfunctions/muscular/longissimus-tension",
"sacroiliac/sacroiliac-dysfunctions/muscular/biceps-femoris-tension": "sacroiliac/sacroiliac-dysfunctions/muscular/biceps-femoris-tension",
"sacroiliac/sacroiliac-dysfunctions/muscular/sacrotuberous-tension": "sacroiliac/sacroiliac-dysfunctions/muscular/sacrotuberous-ligament",
"sacroiliac/sacroiliac-dysfunctions/muscular/trigger-points": "sacroiliac/sacroiliac-dysfunctions/muscular/trigger-points",
"sacroiliac/sacroiliac-dysfunctions/mechanical": "sacroiliac/sacroiliac-dysfunctions/mechanical",
"sacroiliac/sacroiliac-dysfunctions/mechanical/tuber-sacrale-asymmetry": "sacroiliac/sacroiliac-dysfunctions/mechanical/tuber-sacrale-asymmetry",
"sacroiliac/sacroiliac-dysfunctions/mechanical/tuber-coxae-asymmetry": "sacroiliac/sacroiliac-dysfunctions/mechanical/tuber-coxae-asymmetry",
"sacroiliac/sacroiliac-dysfunctions/mechanical/pelvic-obliquity": "sacroiliac/sacroiliac-dysfunctions/mechanical/pelvic-obliquity",
"sacroiliac/sacroiliac-observations": "sacroiliac/sacroiliac-consultation-reasons",
"sacroiliac/sacroiliac-observations/ridden-work": "sacroiliac/sacroiliac-consultation-reasons/ridden-work",
"sacroiliac/sacroiliac-observations/ridden-work/hindlimb-engagement": "sacroiliac/sacroiliac-consultation-reasons/ridden-work/hindlimb-engagement",
"sacroiliac/sacroiliac-observations/ridden-work/canter-disunited": "sacroiliac/sacroiliac-consultation-reasons/ridden-work/canter-disunited",
"sacroiliac/sacroiliac-observations/ridden-work/bunny-hopping": "sacroiliac/sacroiliac-consultation-reasons/ridden-work/bunny-hopping",
"sacroiliac/sacroiliac-observations/ridden-work/jumping-difficulty": "sacroiliac/sacroiliac-consultation-reasons/ridden-work/jumping-difficulty",
"sacroiliac/sacroiliac-observations/croup-asymmetry": "sacroiliac/sacroiliac-consultation-reasons/croup-asymmetry",
"sacroiliac/sacroiliac-observations/hindlimb-lameness": "sacroiliac/sacroiliac-consultation-reasons/hindlimb-lameness",
"sacroiliac/anamnesis": "sacroiliac/anamnesis",
"sacroiliac/anamnesis/trauma-direct": "sacroiliac/anamnesis/trauma-direct",
"sacroiliac/anamnesis/sport-context": "sacroiliac/anamnesis/sport-context",
"sacroiliac/anamnesis/posture-context": "sacroiliac/anamnesis/posture-context",
"sacroiliac/anamnesis/stress-context": "sacroiliac/anamnesis/stress-context",
"sacroiliac/anamnesis/post-veterinary": "sacroiliac/anamnesis/post-veterinary",
"sacroiliac/anamnesis/no-identified-cause": "sacroiliac/anamnesis/no-identified-cause",
"hip/hip-dysfunctions": "hip/hip-dysfunctions",
"hip/hip-dysfunctions/articular": "hip/hip-dysfunctions/articular",
"hip/hip-dysfunctions/articular/restriction-flexion": "hip/hip-dysfunctions/articular/restriction-flexion",
"hip/hip-dysfunctions/articular/restriction-extension": "hip/hip-dysfunctions/articular/restriction-extension",
"hip/hip-dysfunctions/articular/restriction-abduction-adduction": "hip/hip-dysfunctions/articular/restriction-abduction-adduction",
"hip/hip-dysfunctions/articular/restriction-rotation": "hip/hip-dysfunctions/articular/restriction-rotation",
"hip/hip-dysfunctions/articular/hypomobility": "hip/hip-dysfunctions/articular/hypomobility",
"hip/hip-dysfunctions/articular/hypermobility": "hip/hip-dysfunctions/articular/hypermobility",
"hip/hip-dysfunctions/muscular": "hip/hip-dysfunctions/muscular",
"hip/hip-dysfunctions/muscular/gluteal-group-tension": "hip/hip-dysfunctions/muscular/gluteal-group-tension",
"hip/hip-dysfunctions/muscular/iliopsoas-tension": "hip/hip-dysfunctions/muscular/iliopsoas-tension",
"hip/hip-dysfunctions/muscular/adductors-tension": "hip/hip-dysfunctions/muscular/adductors-tension",
"hip/hip-dysfunctions/muscular/biceps-femoris-tension": "hip/hip-dysfunctions/muscular/biceps-femoris-tension",
"hip/hip-dysfunctions/muscular/trigger-points": "hip/hip-dysfunctions/muscular/trigger-points",
"hip/hip-dysfunctions/mechanical": "hip/hip-dysfunctions/mechanical",
"hip/hip-dysfunctions/mechanical/weight-bearing-asymmetry": "hip/hip-dysfunctions/mechanical/weight-bearing-asymmetry",
"hip/hip-dysfunctions/mechanical/amplitude-asymmetry": "hip/hip-dysfunctions/mechanical/amplitude-asymmetry",
"hip/hip-dysfunctions/mechanical/croup-asymmetry": "hip/hip-dysfunctions/mechanical/croup-asymmetry",
"hip/hip-observations": "hip/hip-consultation-reasons",
"hip/hip-observations/ridden-work": "hip/hip-consultation-reasons/ridden-work",
"hip/hip-observations/ridden-work/canter-difficulty": "hip/hip-consultation-reasons/ridden-work/canter-difficulty",
"hip/hip-observations/ridden-work/backing-difficulty": "hip/hip-consultation-reasons/ridden-work/backing-difficulty",
"hip/hip-observations/ridden-work/limb-engagement": "hip/hip-consultation-reasons/ridden-work/limb-engagement",
"hip/hip-observations/ridden-work/jumping-difficulty": "hip/hip-consultation-reasons/ridden-work/jumping-difficulty",
"hip/hip-observations/limb-lameness": "hip/hip-consultation-reasons/limb-lameness",
"hip/anamnesis": "hip/anamnesis",
"hip/anamnesis/trauma-direct": "hip/anamnesis/trauma-direct",
"hip/anamnesis/sport-context": "hip/anamnesis/sport-context",
"hip/anamnesis/posture-context": "hip/anamnesis/posture-context",
"hip/anamnesis/stress-context": "hip/anamnesis/stress-context",
"hip/anamnesis/post-veterinary": "hip/anamnesis/post-veterinary",
"hip/anamnesis/no-identified-cause": "hip/anamnesis/no-identified-cause",
"stifle/stifle-dysfunctions": "stifle/stifle-dysfunctions",
"stifle/stifle-dysfunctions/articular": "stifle/stifle-dysfunctions/articular",
"stifle/stifle-dysfunctions/articular/restriction-flexion": "stifle/stifle-dysfunctions/articular/restriction-flexion",
"stifle/stifle-dysfunctions/articular/restriction-extension": "stifle/stifle-dysfunctions/articular/restriction-extension",
"stifle/stifle-dysfunctions/articular/restriction-patellar-glide": "stifle/stifle-dysfunctions/articular/restriction-patellar-glide",
"stifle/stifle-dysfunctions/articular/restriction-tibial-rotation": "stifle/stifle-dysfunctions/articular/restriction-tibial-rotation",
"stifle/stifle-dysfunctions/articular/hypomobility": "stifle/stifle-dysfunctions/articular/hypomobility",
"stifle/stifle-dysfunctions/articular/hypermobility": "stifle/stifle-dysfunctions/articular/hypermobility",
"stifle/stifle-dysfunctions/muscular": "stifle/stifle-dysfunctions/muscular",
"stifle/stifle-dysfunctions/muscular/quadriceps-tension": "stifle/stifle-dysfunctions/muscular/quadriceps-tension",
"stifle/stifle-dysfunctions/muscular/hamstrings-tension": "stifle/stifle-dysfunctions/muscular/hamstrings-tension",
"stifle/stifle-dysfunctions/muscular/tfl-tension": "stifle/stifle-dysfunctions/muscular/tfl-tension",
"stifle/stifle-dysfunctions/muscular/trigger-points": "stifle/stifle-dysfunctions/muscular/trigger-points",
"stifle/stifle-dysfunctions/mechanical": "stifle/stifle-dysfunctions/mechanical",
"stifle/stifle-dysfunctions/mechanical/weight-bearing-asymmetry": "stifle/stifle-dysfunctions/mechanical/weight-bearing-asymmetry",
"stifle/stifle-dysfunctions/mechanical/amplitude-asymmetry": "stifle/stifle-dysfunctions/mechanical/amplitude-asymmetry",
"stifle/stifle-dysfunctions/mechanical/patellar-lateral-deviation": "stifle/stifle-dysfunctions/mechanical/patellar-lateral-deviation",
"stifle/stifle-observations": "stifle/stifle-consultation-reasons",
"stifle/stifle-observations/ridden-work": "stifle/stifle-consultation-reasons/ridden-work",
"stifle/stifle-observations/ridden-work/canter-difficulty": "stifle/stifle-consultation-reasons/ridden-work/canter-difficulty",
"stifle/stifle-observations/ridden-work/backing-difficulty": "stifle/stifle-consultation-reasons/ridden-work/backing-difficulty",
"stifle/stifle-observations/ridden-work/limb-engagement": "stifle/stifle-consultation-reasons/ridden-work/limb-engagement",
"stifle/stifle-observations/ridden-work/jumping-difficulty": "stifle/stifle-consultation-reasons/ridden-work/jumping-difficulty",
"stifle/stifle-observations/patellar-catching": "stifle/stifle-consultation-reasons/patellar-catching",
"stifle/stifle-observations/limb-lameness": "stifle/stifle-consultation-reasons/limb-lameness",
"stifle/anamnesis": "stifle/anamnesis",
"stifle/anamnesis/trauma-direct": "stifle/anamnesis/trauma-direct",
"stifle/anamnesis/sport-context": "stifle/anamnesis/sport-context",
"stifle/anamnesis/posture-context": "stifle/anamnesis/posture-context",
"stifle/anamnesis/stress-context": "stifle/anamnesis/stress-context",
"stifle/anamnesis/post-veterinary": "stifle/anamnesis/post-veterinary",
"stifle/anamnesis/no-identified-cause": "stifle/anamnesis/no-identified-cause",
"hock/hock-dysfunctions": "hock/hock-dysfunctions",
"hock/hock-dysfunctions/articular": "hock/hock-dysfunctions/articular",
"hock/hock-dysfunctions/articular/restriction-flexion": "hock/hock-dysfunctions/articular/restriction-flexion",
"hock/hock-dysfunctions/articular/restriction-extension": "hock/hock-dysfunctions/articular/restriction-extension",
"hock/hock-dysfunctions/articular/restriction-rotation": "hock/hock-dysfunctions/articular/restriction-rotation",
"hock/hock-dysfunctions/articular/restriction-small-joints": "hock/hock-dysfunctions/articular/restriction-small-joints",
"hock/hock-dysfunctions/articular/hypomobility": "hock/hock-dysfunctions/articular/hypomobility",
"hock/hock-dysfunctions/articular/hypermobility": "hock/hock-dysfunctions/articular/hypermobility",
"hock/hock-dysfunctions/muscular": "hock/hock-dysfunctions/muscular",
"hock/hock-dysfunctions/muscular/gastrocnemius-tension": "hock/hock-dysfunctions/muscular/gastrocnemius-tension",
"hock/hock-dysfunctions/muscular/peroneus-tertius": "hock/hock-dysfunctions/muscular/peroneus-tertius",
"hock/hock-dysfunctions/muscular/deep-digital-flexor": "hock/hock-dysfunctions/muscular/deep-digital-flexor",
"hock/hock-dysfunctions/muscular/tibialis-cranialis": "hock/hock-dysfunctions/muscular/tibialis-cranialis",
"hock/hock-dysfunctions/muscular/trigger-points": "hock/hock-dysfunctions/muscular/trigger-points",
"hock/hock-dysfunctions/mechanical": "hock/hock-dysfunctions/mechanical",
"hock/hock-dysfunctions/mechanical/weight-bearing-asymmetry": "hock/hock-dysfunctions/mechanical/weight-bearing-asymmetry",
"hock/hock-dysfunctions/mechanical/amplitude-asymmetry": "hock/hock-dysfunctions/mechanical/amplitude-asymmetry",
"hock/hock-dysfunctions/mechanical/hock-axis-asymmetry": "hock/hock-dysfunctions/mechanical/hock-axis-asymmetry",
"hock/hock-observations": "hock/hock-consultation-reasons",
"hock/hock-observations/ridden-work": "hock/hock-consultation-reasons/ridden-work",
"hock/hock-observations/ridden-work/canter-difficulty": "hock/hock-consultation-reasons/ridden-work/canter-difficulty",
"hock/hock-observations/ridden-work/backing-difficulty": "hock/hock-consultation-reasons/ridden-work/backing-difficulty",
"hock/hock-observations/ridden-work/limb-engagement": "hock/hock-consultation-reasons/ridden-work/limb-engagement",
"hock/hock-observations/ridden-work/jumping-difficulty": "hock/hock-consultation-reasons/ridden-work/jumping-difficulty",
"hock/hock-observations/limb-lameness": "hock/hock-consultation-reasons/limb-lameness",
"hock/anamnesis": "hock/anamnesis",
"hock/anamnesis/trauma-direct": "hock/anamnesis/trauma-direct",
"hock/anamnesis/sport-context": "hock/anamnesis/sport-context",
"hock/anamnesis/posture-context": "hock/anamnesis/posture-context",
"hock/anamnesis/stress-context": "hock/anamnesis/stress-context",
"hock/anamnesis/post-veterinary": "hock/anamnesis/post-veterinary",
"hock/anamnesis/no-identified-cause": "hock/anamnesis/no-identified-cause",
"hind-fetlock/hind-fetlock-dysfunctions": "hind-fetlock/hind-fetlock-dysfunctions",
"hind-fetlock/hind-fetlock-dysfunctions/articular": "hind-fetlock/hind-fetlock-dysfunctions/articular",
"hind-fetlock/hind-fetlock-dysfunctions/articular/restriction-flexion": "hind-fetlock/hind-fetlock-dysfunctions/articular/restriction-flexion",
"hind-fetlock/hind-fetlock-dysfunctions/articular/restriction-extension": "hind-fetlock/hind-fetlock-dysfunctions/articular/restriction-extension",
"hind-fetlock/hind-fetlock-dysfunctions/articular/restriction-lateromedial": "hind-fetlock/hind-fetlock-dysfunctions/articular/restriction-lateromedial",
"hind-fetlock/hind-fetlock-dysfunctions/articular/hypomobility": "hind-fetlock/hind-fetlock-dysfunctions/articular/hypomobility",
"hind-fetlock/hind-fetlock-dysfunctions/articular/hypermobility": "hind-fetlock/hind-fetlock-dysfunctions/articular/hypermobility",
"hind-fetlock/hind-fetlock-dysfunctions/muscular": "hind-fetlock/hind-fetlock-dysfunctions/muscular",
"hind-fetlock/hind-fetlock-dysfunctions/muscular/digital-flexors-tendon": "hind-fetlock/hind-fetlock-dysfunctions/muscular/digital-flexors-tendon",
"hind-fetlock/hind-fetlock-dysfunctions/muscular/digital-extensor-tendon": "hind-fetlock/hind-fetlock-dysfunctions/muscular/digital-extensor-tendon",
"hind-fetlock/hind-fetlock-dysfunctions/muscular/plantar-fascia": "hind-fetlock/hind-fetlock-dysfunctions/muscular/plantar-fascia",
"hind-fetlock/hind-fetlock-dysfunctions/mechanical": "hind-fetlock/hind-fetlock-dysfunctions/mechanical",
"hind-fetlock/hind-fetlock-dysfunctions/mechanical/weight-bearing-asymmetry": "hind-fetlock/hind-fetlock-dysfunctions/mechanical/weight-bearing-asymmetry",
"hind-fetlock/hind-fetlock-dysfunctions/mechanical/amplitude-asymmetry": "hind-fetlock/hind-fetlock-dysfunctions/mechanical/amplitude-asymmetry",
"hind-fetlock/hind-fetlock-dysfunctions/mechanical/fetlock-axis-asymmetry": "hind-fetlock/hind-fetlock-dysfunctions/mechanical/fetlock-axis-asymmetry",
"hind-fetlock/hind-fetlock-observations": "hind-fetlock/hind-fetlock-consultation-reasons",
"hind-fetlock/hind-fetlock-observations/ridden-work": "hind-fetlock/hind-fetlock-consultation-reasons/ridden-work",
"hind-fetlock/hind-fetlock-observations/ridden-work/canter-difficulty": "hind-fetlock/hind-fetlock-consultation-reasons/ridden-work/canter-difficulty",
"hind-fetlock/hind-fetlock-observations/ridden-work/backing-difficulty": "hind-fetlock/hind-fetlock-consultation-reasons/ridden-work/backing-difficulty",
"hind-fetlock/hind-fetlock-observations/ridden-work/limb-engagement": "hind-fetlock/hind-fetlock-consultation-reasons/ridden-work/limb-engagement",
"hind-fetlock/hind-fetlock-observations/ridden-work/jumping-difficulty": "hind-fetlock/hind-fetlock-consultation-reasons/ridden-work/jumping-difficulty",
"hind-fetlock/hind-fetlock-observations/limb-lameness": "hind-fetlock/hind-fetlock-consultation-reasons/limb-lameness",
"hind-fetlock/anamnesis": "hind-fetlock/anamnesis",
"hind-fetlock/anamnesis/trauma-direct": "hind-fetlock/anamnesis/trauma-direct",
"hind-fetlock/anamnesis/sport-context": "hind-fetlock/anamnesis/sport-context",
"hind-fetlock/anamnesis/posture-context": "hind-fetlock/anamnesis/posture-context",
"hind-fetlock/anamnesis/stress-context": "hind-fetlock/anamnesis/stress-context",
"hind-fetlock/anamnesis/post-veterinary": "hind-fetlock/anamnesis/post-veterinary",
"hind-fetlock/anamnesis/no-identified-cause": "hind-fetlock/anamnesis/no-identified-cause",
"caudal/caudal-dysfunctions": "caudal/caudal-dysfunctions",
"caudal/caudal-dysfunctions/segmental": "caudal/caudal-dysfunctions/segmental",
"caudal/caudal-dysfunctions/segmental/restriction-lateroflexion": "caudal/caudal-dysfunctions/segmental/restriction-lateroflexion",
"caudal/caudal-dysfunctions/segmental/restriction-dorsoventral": "caudal/caudal-dysfunctions/segmental/restriction-dorsoventral",
"caudal/caudal-dysfunctions/segmental/localized-fixation": "caudal/caudal-dysfunctions/segmental/localized-fixation",
"caudal/caudal-dysfunctions/muscular": "caudal/caudal-dysfunctions/muscular",
"caudal/caudal-dysfunctions/muscular/sacrocaudalis-dorsalis": "caudal/caudal-dysfunctions/muscular/sacrocaudalis-dorsalis",
"caudal/caudal-dysfunctions/muscular/sacrocaudalis-ventralis": "caudal/caudal-dysfunctions/muscular/sacrocaudalis-ventralis",
"caudal/caudal-dysfunctions/muscular/coccygeus-tension": "caudal/caudal-dysfunctions/muscular/coccygeus-tension",
"caudal/caudal-dysfunctions/mechanical": "caudal/caudal-dysfunctions/mechanical",
"caudal/caudal-dysfunctions/mechanical/tail-deviation": "caudal/caudal-dysfunctions/mechanical/tail-deviation",
"caudal/caudal-dysfunctions/mechanical/tail-carriage-asymmetry": "caudal/caudal-dysfunctions/mechanical/tail-carriage-asymmetry",
"caudal/caudal-observations": "caudal/caudal-consultation-reasons",
"caudal/caudal-observations/tail-clamped": "caudal/caudal-consultation-reasons/tail-clamped",
"caudal/caudal-observations/tail-swishing": "caudal/caudal-consultation-reasons/tail-swishing",
"caudal/caudal-observations/tail-deviation-new": "caudal/caudal-consultation-reasons/tail-deviation-new",
"caudal/caudal-observations/tail-handling-sensitivity": "caudal/caudal-consultation-reasons/tail-handling-sensitivity",
"caudal/anamnesis": "caudal/anamnesis",
"caudal/anamnesis/trauma-direct": "caudal/anamnesis/trauma-direct",
"caudal/anamnesis/saddle-context": "caudal/anamnesis/saddle-context",
"caudal/anamnesis/posture-context": "caudal/anamnesis/posture-context",
"caudal/anamnesis/stress-context": "caudal/anamnesis/stress-context",
"caudal/anamnesis/post-veterinary": "caudal/anamnesis/post-veterinary",
"caudal/anamnesis/no-identified-cause": "caudal/anamnesis/no-identified-cause"
}
}
@@ -0,0 +1,7 @@
{
"sheet_id": "503dc301-a8b1-50d4-9e44-0919b2fc2916",
"version_id": null,
"document_sha256": "27c7383c445c73dc2001ebf4794a3ea63d416910bbbaa0d7848dd720de7c2660",
"schema_version": 2,
"species_id": "equine"
}
+80 -19
View File
@@ -27,24 +27,58 @@ use serde_json::{Value, json};
const SEED: &str = "supabase/seed/anatomical-sheets/equine/draft";
/// The seed sheet as the binary loads it: document and map, no drawing.
/// The sheet O10 was frozen against (before R5.6): the seed's document with the pre-switch
/// `sheet-ref.json` and migration map (`tests/fixtures/r5-6/pre-switch`). O10 replays in that
/// context; the switched seed has its own test under the declared rule below.
fn draft_sheet() -> &'static LoadedSheet {
static SHEET: OnceLock<LoadedSheet> = OnceLock::new();
SHEET.get_or_init(|| {
let seed = repo_root().join(SEED);
let read = |name: &str| -> Value {
serde_json::from_str(&std::fs::read_to_string(seed.join(name)).unwrap()).unwrap()
};
let payload = json!({
"status": "draft",
"ref": read("sheet-ref.json"),
"document": read("document.json"),
"migrationMap": read("report-migration-map.json"),
"assets": {},
"assetHashes": {},
});
let data: BundledSheetData = serde_json::from_value(payload).unwrap();
LoadedSheet::from_bundle(data).unwrap()
})
SHEET
.get_or_init(|| sheet_with(&repo_root().join("crates/core/tests/fixtures/r5-6/pre-switch")))
}
/// The committed (switched) seed, as the `report-compare` binary reads it.
fn switched_sheet() -> &'static LoadedSheet {
static SHEET: OnceLock<LoadedSheet> = OnceLock::new();
SHEET.get_or_init(|| sheet_with(&repo_root().join(SEED)))
}
fn sheet_with(refs: &std::path::Path) -> LoadedSheet {
let seed = repo_root().join(SEED);
let read = |dir: &std::path::Path, name: &str| -> Value {
serde_json::from_str(&std::fs::read_to_string(dir.join(name)).unwrap()).unwrap()
};
let payload = json!({
"status": "draft",
"ref": read(refs, "sheet-ref.json"),
"document": read(&seed, "document.json"),
"migrationMap": read(refs, "report-migration-map.json"),
"assets": {},
"assetHashes": {},
});
let data: BundledSheetData = serde_json::from_value(payload).unwrap();
LoadedSheet::from_bundle(data).unwrap()
}
/// The declared difference of the R5.6 switch for `report-compare` (`R5.6-fingerprint-v1`), per
/// file block: a report read as is keeps its historical stamp and is the bundled sheet through
/// the trusted alias, both raw values printed; a v2 report migrated on the switched map carries
/// the canonical value and keeps the plain line. Only that one line changes; a report on
/// another document still prints `!!`, so no content difference can hide behind the rule.
fn r5_6_rule(text: &str) -> String {
let plain = "(draft, matches the bundled sheet)";
let alias = "(draft, matches the bundled sheet through the trusted alias: report sha 27c7383c445c…, sheet sha 12d788727c1e…)";
let mut out = String::new();
for (index, block) in text.split("== ").enumerate() {
if index > 0 {
out.push_str("== ");
}
if block.contains("(migrated)") {
out.push_str(block);
} else {
out.push_str(&block.replace(plain, alias));
}
}
out
}
/// The repository as the TypeScript CLI saw it: arguments typed from the root.
@@ -131,6 +165,10 @@ fn replay(row: &Row) -> Run {
run(draft_sheet(), &row.args, &RepoFiles)
}
fn replay_switched(row: &Row) -> Run {
run(switched_sheet(), &row.args, &RepoFiles)
}
fn assert_exact(row: &Row) {
let got = replay(row);
let args = row.args.join(" ");
@@ -436,9 +474,14 @@ fn binary_prints_what_the_pure_run_prints_from_init_cwd() {
let shapes = ["cli", "folder"];
let mut spawned = 0;
for row in rows.iter().filter(|r| shapes.contains(&r.group.as_str())) {
// The binary reads the committed (switched) seed: the oracle under the declared rule.
let got = spawn(&row.args);
let args = row.args.join(" ");
assert_eq!(got.stdout, row.stdout, "binary stdout of `{args}`");
assert_eq!(
got.stdout,
r5_6_rule(&row.stdout),
"binary stdout of `{args}`"
);
assert_eq!(got.stderr, row.stderr, "binary stderr of `{args}`");
assert_eq!(got.exit_code, row.exit_code, "binary exit code of `{args}`");
spawned += 1;
@@ -449,10 +492,28 @@ fn binary_prints_what_the_pure_run_prints_from_init_cwd() {
.iter()
.find(|r| r.args.first().map(String::as_str) == Some("a.pdf"))
.unwrap();
assert_eq!(spawn(&scenario.args), replay(scenario));
assert_eq!(spawn(&scenario.args), replay_switched(scenario));
let full = rows
.iter()
.find(|r| r.args.first().map(String::as_str) == Some("--full") && r.args.len() == 2)
.unwrap();
assert_eq!(spawn(&full.args), replay(full));
assert_eq!(spawn(&full.args), replay_switched(full));
}
/// After R5.6, on the switched seed: every exact O10 row prints the oracle under the declared
/// rule (the one sheet line), stderr and exit codes unchanged.
#[test]
fn o10_on_the_switched_seed_differs_only_by_the_declared_alias_line() {
let mut aliased = 0;
for row in rows().iter().filter(|r| r.declared.is_none()) {
let got = replay_switched(row);
let args = row.args.join(" ");
let expected = r5_6_rule(&row.stdout);
aliased += usize::from(expected != row.stdout);
assert_eq!(got.stdout, expected, "stdout of `{args}`");
assert_eq!(got.stderr, row.stderr, "stderr of `{args}`");
assert_eq!(got.exit_code, row.exit_code, "exit code of `{args}`");
}
assert_eq!(aliased, 77, "rows through the alias");
assert!(switched_sheet().is_fingerprint_verified() && !draft_sheet().is_fingerprint_verified());
}
+61 -7
View File
@@ -32,22 +32,34 @@ const SEED: &str = "supabase/seed/anatomical-sheets/equine/draft";
/// The bundled draft sheet exactly as `apps/app/vite/sheet-bundle.ts` embeds it.
fn draft_sheet() -> LoadedSheet {
sheet_with(&repo_root().join(SEED))
}
/// The sheet the R4 oracles were frozen against (before R5.6): the same document and drawing,
/// with the pre-switch `sheet-ref.json` and migration map (`tests/fixtures/r5-6/pre-switch`,
/// proven to be the TypeScript's files by `curation_draft`).
fn historical_sheet() -> LoadedSheet {
sheet_with(&repo_root().join("crates/core/tests/fixtures/r5-6/pre-switch"))
}
/// The seed's document and drawings, with `sheet-ref.json` and the migration map from `refs`.
fn sheet_with(refs: &std::path::Path) -> LoadedSheet {
let seed = repo_root().join(SEED);
let read = |name: &str| std::fs::read_to_string(seed.join(name)).unwrap();
let manifest: Value = serde_json::from_str(&read("assets.json")).unwrap();
let read = |dir: &std::path::Path, name: &str| std::fs::read_to_string(dir.join(name)).unwrap();
let manifest: Value = serde_json::from_str(&read(&seed, "assets.json")).unwrap();
let mut assets = serde_json::Map::new();
let mut hashes = serde_json::Map::new();
for asset in manifest.as_array().unwrap() {
let id = asset["svg_asset_id"].as_str().unwrap().to_owned();
let file = format!("assets/{}", asset["file"].as_str().unwrap());
assets.insert(id.clone(), Value::String(read(&file)));
assets.insert(id.clone(), Value::String(read(&seed, &file)));
hashes.insert(id, asset["sha256"].clone());
}
let payload = json!({
"status": "draft",
"ref": parse_json(&read("sheet-ref.json")).unwrap(),
"document": parse_json(&read("document.json")).unwrap(),
"migrationMap": parse_json(&read("report-migration-map.json")).unwrap(),
"ref": parse_json(&read(refs, "sheet-ref.json")).unwrap(),
"document": parse_json(&read(&seed, "document.json")).unwrap(),
"migrationMap": parse_json(&read(refs, "report-migration-map.json")).unwrap(),
"assets": assets,
"assetHashes": hashes,
});
@@ -126,7 +138,9 @@ fn archive_row(text: &str, sheet: &LoadedSheet) -> Value {
#[test]
fn o7_locate_and_read_match_the_typescript() {
let oracle = r4_oracle("read.json");
let sheet = draft_sheet();
// In its original context: the oracle froze the reports a v2 migration stamps with the
// pre-switch map (R5.6 leaves it untouched; the post-switch stamp has its own test below).
let sheet = historical_sheet();
let (mut inputs, mut located, mut archives, mut mismatches) = (0, 0, 0, Vec::new());
for row in oracle["inputs"].as_array().unwrap() {
if row["kind"] != "pdf" {
@@ -179,6 +193,46 @@ fn o7_locate_and_read_match_the_typescript() {
println!("O7: {inputs} inputs, {located} locate rows, {archives} archive rows");
}
/// After R5.6 a v2 migration stamps the canonical value; everything else is what O7 froze.
#[test]
fn o7_after_r5_6_migrated_v2_reports_carry_the_canonical_stamp_and_nothing_else_moves() {
let (now, then) = (draft_sheet(), historical_sheet());
for file in ["scan.report-v2-full.pdf", "scan.report-v2-minimal.pdf"] {
let bytes = r4_input("read", file);
let text = read_attached_document(&bytes, ProbeLimits::UNBOUNDED)
.unwrap()
.text
.into_owned();
let data = parse_json(&text).unwrap();
let after = read_archive_document(&data, &now.migration_map).unwrap();
let before = read_archive_document(&data, &then.migration_map).unwrap();
assert_eq!(
after.report.sheet.document_sha256, now.reference.document_sha256,
"{file}"
);
assert_eq!(
before.report.sheet.document_sha256, then.reference.document_sha256,
"{file}"
);
let mut aligned = after.report.clone();
aligned.sheet.document_sha256 = before.report.sheet.document_sha256.clone();
assert_eq!(aligned, before.report, "{file}");
assert_eq!(
(
after.migrated,
after.unresolved_zones,
after.unresolved_findings
),
(
before.migrated,
before.unresolved_zones,
before.unresolved_findings
),
"{file}"
);
}
}
fn compare(
mismatches: &mut Vec<String>,
file: &str,
+432
View File
@@ -0,0 +1,432 @@
//! The R5.6 switch on the switched seed (owner 2026-10-24 « corrections préalables à la
//! bascule » §1, M1 option 1): an old PDF stamped with the registered historical value opens
//! with no rebase; re-exported, its snapshot keeps the report's stamp, so the current reader,
//! the pre-switch bundle (rollback) and the frozen N-1 reader (vitest
//! `packages/core-wasm/tests/r5-6.n-1.test.ts`) all keep the snapshot; archived labels, views,
//! annotations and branding survive; forged or unknown values and a real content change keep
//! their behaviour; the sheet load refuses a contradicting reference.
#![allow(clippy::disallowed_methods, clippy::unwrap_used, clippy::expect_used)]
mod archive_support;
mod common;
use archive_support::{draft_sheet, from, json_file, loaded};
use faunosteo_core::domain::archive::build_sheet_snapshot;
use faunosteo_core::domain::session::import_archive;
use faunosteo_core::domain::sheet::fingerprint::{TRUSTED_ALIASES, document_fingerprint};
use faunosteo_core::domain::sheet::{BundledSheetData, LoadError, LoadedSheet};
use faunosteo_core::pdf::read::probe::{ProbeLimits, read_attached_document};
use faunosteo_core::pdf::write::export::export_pdf;
use faunosteo_core::pdf::write::input::{ExportInput, Rasters};
use serde_json::{Value, json};
const OLD_PDF: &str = "apps/app/tests/fixtures/pdf/r3/demo.fr.nologos.pdf";
const DRAFT: &str = "supabase/seed/anatomical-sheets/equine/draft";
const PRE_SWITCH: &str = "crates/core/tests/fixtures/r5-6/pre-switch";
fn alias() -> &'static str {
TRUSTED_ALIASES[0].alias
}
fn canonical() -> &'static str {
TRUSTED_ALIASES[0].canonical
}
fn attachment(pdf: &[u8]) -> Value {
let text = read_attached_document(pdf, ProbeLimits::UNBOUNDED)
.unwrap()
.text
.into_owned();
serde_json::from_str(&text).unwrap()
}
fn old_envelope() -> Value {
attachment(&std::fs::read(common::repo_path(OLD_PDF)).unwrap())
}
/// The bundle with its reference and migration map replaced (the document and drawings stay).
fn sheet_with_ref(reference: Value, map: Value) -> Result<LoadedSheet, String> {
let base = draft_sheet();
let assets: serde_json::Map<String, Value> = base
.assets
.iter()
.map(|(k, v)| (k.clone(), json!(v)))
.collect();
let hashes: serde_json::Map<String, Value> = base
.asset_hashes
.iter()
.map(|(k, v)| (k.clone(), json!(v)))
.collect();
let data: BundledSheetData = serde_json::from_value(json!({
"status": "draft",
"ref": reference,
"document": json_file(&format!("{DRAFT}/document.json")),
"migrationMap": map,
"assets": assets,
"assetHashes": hashes,
}))
.map_err(|e| format!("shape: {e}"))?;
LoadedSheet::from_bundle(data).map_err(|e: LoadError| format!("{e:?}"))
}
/// The pre-switch bundle: what a rollback build ships.
fn rollback_sheet() -> LoadedSheet {
sheet_with_ref(
json_file(&format!("{PRE_SWITCH}/sheet-ref.json")),
json_file(&format!("{PRE_SWITCH}/report-migration-map.json")),
)
.unwrap()
}
fn reexport(sheet: &LoadedSheet, envelope: &Value) -> Vec<u8> {
let report = import_archive(sheet, &envelope.to_string())
.unwrap()
.rebase
.report;
let input = ExportInput {
sheet_snapshot: serde_json::to_value(build_sheet_snapshot(sheet, &report)).unwrap(),
report,
branding: envelope["branding"].clone(),
labels: envelope["labels"].clone(),
locale: from(envelope["locale"].clone()),
exported_at: "2026-10-24T12:00:00.000Z".into(),
};
export_pdf(input, &Rasters::default()).unwrap().pdf
}
#[test]
fn the_switched_seed_is_v1_and_the_old_pdf_carries_the_alias() {
let sheet = draft_sheet();
assert_eq!(sheet.reference.document_sha256, canonical());
assert_eq!(document_fingerprint(&sheet.document).unwrap(), canonical());
let envelope = old_envelope();
assert_eq!(envelope["report"]["sheet"]["documentSha256"], alias());
assert_eq!(envelope["sheetSnapshot"]["ref"]["documentSha256"], alias());
}
#[test]
fn an_old_pdf_opens_with_no_rebase_and_keeps_its_archive_and_stamp() {
let import = import_archive(&draft_sheet(), &old_envelope().to_string()).unwrap();
assert!(!import.rebase.rebased);
assert_eq!(import.rebase.report.sheet.document_sha256, alias());
assert!(import.read.archive.is_some() && import.read.snapshot_rejected.is_none());
}
#[test]
fn a_reexport_writes_one_stamp_that_every_reader_keeps() {
let envelope = old_envelope();
let pdf = reexport(&draft_sheet(), &envelope);
let written = attachment(&pdf);
assert_eq!(written["report"]["sheet"]["documentSha256"], alias());
assert_eq!(written["sheetSnapshot"]["ref"]["documentSha256"], alias());
// The current reader, then the pre-switch bundle (rollback): snapshot kept, no rebase.
for sheet in [draft_sheet(), rollback_sheet()] {
let import = import_archive(&sheet, &written.to_string()).unwrap();
assert!(
import.read.archive.is_some(),
"{:?}",
import.read.snapshot_rejected
);
assert!(!import.rebase.rebased);
}
// Kept for the rollback check with the pre-switch build's own `report-compare`.
let out = std::path::PathBuf::from(common::repo_path("target/tmp/r5-6"));
std::fs::create_dir_all(&out).unwrap();
std::fs::write(out.join("reexport.demo.fr.nologos.pdf"), &pdf).unwrap();
}
#[test]
fn a_reexport_preserves_the_archived_labels_views_annotations_and_branding() {
let envelope = old_envelope();
let written = attachment(&reexport(&draft_sheet(), &envelope));
for key in ["labels", "branding", "locale", "report"] {
assert_eq!(written[key], envelope[key], "{key}");
}
let (before, after) = (&envelope["sheetSnapshot"], &written["sheetSnapshot"]);
assert_eq!(
after["document"], before["document"],
"views, annotations, findings, labels"
);
assert_eq!(after["assets"], before["assets"]);
assert_eq!(after["ref"], before["ref"]);
}
#[test]
fn a_new_report_still_carries_the_canonical_value() {
let sheet = draft_sheet();
let mut envelope = old_envelope();
envelope["report"]["sheet"]["documentSha256"] = json!(canonical());
envelope["sheetSnapshot"]["ref"]["documentSha256"] = json!(canonical());
let pdf = reexport(&sheet, &envelope);
let written = attachment(&pdf);
assert_eq!(written["report"]["sheet"]["documentSha256"], canonical());
assert_eq!(
written["sheetSnapshot"]["ref"]["documentSha256"],
canonical()
);
// Kept for the rollback check of a NEW report with the pre-switch build (RUST.md §11.22).
let out = std::path::PathBuf::from(common::repo_path("target/tmp/r5-6"));
std::fs::create_dir_all(&out).unwrap();
std::fs::write(out.join("new-report.v1.demo.fr.nologos.pdf"), &pdf).unwrap();
}
#[test]
fn an_unknown_or_forged_stamp_rebases_and_a_mixed_envelope_loses_its_snapshot() {
let sheet = draft_sheet();
let mut envelope = old_envelope();
envelope["report"]["sheet"]["documentSha256"] = json!("c".repeat(64));
envelope["sheetSnapshot"]["ref"]["documentSha256"] = json!("c".repeat(64));
assert!(
import_archive(&sheet, &envelope.to_string())
.unwrap()
.rebase
.rebased
);
// A case-changed canonical value is no 64-lowercase-hex stamp: the v3 contract refuses it.
let mut upper = old_envelope();
upper["report"]["sheet"]["documentSha256"] = json!(canonical().to_uppercase());
assert!(import_archive(&sheet, &upper.to_string()).is_err());
// An archive pairing the alias with the canonical value is not loosened into a match.
let mut mixed = old_envelope();
mixed["sheetSnapshot"]["ref"]["documentSha256"] = json!(canonical());
let import = import_archive(&sheet, &mixed.to_string()).unwrap();
assert!(import.read.archive.is_none() && import.read.snapshot_rejected.is_some());
}
#[test]
fn a_real_content_change_still_rebases() {
let mut document = json_file(&format!("{DRAFT}/document.json"));
document["name"]["fr"] = json!("Fiche équine modifiée");
let typed = from(document.clone());
let changed = document_fingerprint(&typed).unwrap();
assert_ne!(changed, canonical());
let mut reference = json_file(&format!("{DRAFT}/sheet-ref.json"));
reference["document_sha256"] = json!(changed);
reference["fingerprint"]["aliases"] = json!([]);
let base = draft_sheet();
let assets: serde_json::Map<String, Value> = base
.assets
.iter()
.map(|(k, v)| (k.clone(), json!(v)))
.collect();
let hashes: serde_json::Map<String, Value> = base
.asset_hashes
.iter()
.map(|(k, v)| (k.clone(), json!(v)))
.collect();
let sheet = loaded(
reference,
document,
json_file(&format!("{DRAFT}/report-migration-map.json")),
Value::Object(assets),
Value::Object(hashes),
);
let import = import_archive(&sheet, &old_envelope().to_string()).unwrap();
assert!(import.rebase.rebased);
}
#[test]
fn the_sheet_load_refuses_a_reference_that_contradicts_the_registry_or_the_content() {
let map = json_file(&format!("{DRAFT}/report-migration-map.json"));
let good = json_file(&format!("{DRAFT}/sheet-ref.json"));
assert!(sheet_with_ref(good.clone(), map.clone()).is_ok());
let mut cases = Vec::new();
let mut forged = good.clone();
forged["fingerprint"]["aliases"] = json!(["d".repeat(64)]);
cases.push(forged);
let mut convention = good.clone();
convention["fingerprint"]["convention"] = json!("sha256-rfc8785-validated-v2");
cases.push(convention);
let mut content = good.clone();
content["document_sha256"] = json!("e".repeat(64));
content["fingerprint"]["aliases"] = json!([]);
cases.push(content);
let mut unknown_key = good.clone();
unknown_key["fingerprint"]["trusted"] = json!(true);
cases.push(unknown_key);
for reference in cases {
assert!(
sheet_with_ref(reference.clone(), map.clone()).is_err(),
"{reference}"
);
}
// A historical v0 reference (no block) still loads, unverified, with no alias privilege,
// even when it carries the canonical value: an old stamp then rebases.
let rollback = sheet_with_ref(
json_file(&format!("{PRE_SWITCH}/sheet-ref.json")),
map.clone(),
);
assert!(!rollback.unwrap().is_fingerprint_verified());
let mut v0_with_v1_value = good.clone();
v0_with_v1_value
.as_object_mut()
.unwrap()
.remove("fingerprint");
let unverified = sheet_with_ref(v0_with_v1_value, map).unwrap();
assert!(!unverified.is_fingerprint_verified());
let import = import_archive(&unverified, &old_envelope().to_string()).unwrap();
assert!(import.rebase.rebased);
assert!(draft_sheet().is_fingerprint_verified());
}
// ---------------------------------------------------------------------------
// M1 correction (owner 2026-10-25): the direct APIs, not only the application's paths.
fn old_report() -> faunosteo_core::domain::report::Report {
from(old_envelope()["report"].clone())
}
/// The direct export: a snapshot built by the core for `sheet`, then `export_pdf`.
fn export_on(
sheet: &LoadedSheet,
report: &faunosteo_core::domain::report::Report,
) -> Result<Vec<u8>, String> {
let envelope = old_envelope();
let input = ExportInput {
sheet_snapshot: serde_json::to_value(build_sheet_snapshot(sheet, report)).unwrap(),
report: report.clone(),
branding: envelope["branding"].clone(),
labels: envelope["labels"].clone(),
locale: from(envelope["locale"].clone()),
exported_at: "2026-10-25T12:00:00.000Z".into(),
};
export_pdf(input, &Rasters::default())
.map(|r| r.pdf)
.map_err(|e| format!("{e:?}"))
}
#[test]
fn the_direct_export_on_an_unverified_v0_sheet_with_the_canonical_value_is_refused() {
let map = json_file(&format!("{DRAFT}/report-migration-map.json"));
let mut v0 = json_file(&format!("{DRAFT}/sheet-ref.json"));
v0.as_object_mut().unwrap().remove("fingerprint");
let sheet = sheet_with_ref(v0, map).unwrap();
assert!(!sheet.is_fingerprint_verified());
let snapshot = build_sheet_snapshot(&sheet, &old_report());
assert_eq!(snapshot.reference.document_sha256, canonical());
let refused = export_on(&sheet, &old_report()).unwrap_err();
assert!(refused.contains("SheetMismatch"), "{refused}");
}
#[test]
fn a_mutated_document_or_reference_never_keeps_the_alias() {
let mut document = draft_sheet();
document.document.name.fr = "Fiche modifiée après chargement".into();
assert!(!document.recognises_historical_stamp(&document.reference.sheet_id.clone(), alias()));
assert!(export_on(&document, &old_report()).is_err());
let mut reference = draft_sheet();
reference.reference.document_sha256 = "f".repeat(64);
assert!(!reference.recognises_historical_stamp(&reference.reference.sheet_id.clone(), alias()));
assert!(export_on(&reference, &old_report()).is_err());
// Untouched, the same sheet grants it, and the direct export writes one stamp.
let sheet = draft_sheet();
assert!(sheet.recognises_historical_stamp(&sheet.reference.sheet_id, alias()));
let written = attachment(&export_on(&sheet, &old_report()).unwrap());
assert_eq!(written["sheetSnapshot"]["ref"]["documentSha256"], alias());
}
#[test]
fn the_historical_value_on_another_sheet_id_is_not_recognised() {
let sheet = draft_sheet();
assert!(!sheet.recognises_historical_stamp("00000000-0000-0000-0000-000000000000", alias()));
let mut report = old_report();
report.sheet.sheet_id = "00000000-0000-0000-0000-000000000000".into();
assert_eq!(
build_sheet_snapshot(&sheet, &report)
.reference
.document_sha256,
canonical()
);
assert!(export_on(&sheet, &report).is_err());
let import_other = {
let mut envelope = old_envelope();
envelope["report"]["sheet"]["sheetId"] = json!("00000000-0000-0000-0000-000000000000");
import_archive(&sheet, &envelope.to_string()).unwrap()
};
assert!(import_other.rebase.rebased);
}
#[test]
fn a_v1_block_whose_value_contradicts_the_content_is_refused_at_load() {
let mut document = json_file(&format!("{DRAFT}/document.json"));
document["name"]["fr"] = json!("Contenu modifié, tampon conservé");
let base = draft_sheet();
let assets: serde_json::Map<String, Value> = base
.assets
.iter()
.map(|(k, v)| (k.clone(), json!(v)))
.collect();
let data: Result<BundledSheetData, _> = serde_json::from_value(json!({
"status": "draft",
"ref": json_file(&format!("{DRAFT}/sheet-ref.json")),
"document": document,
"migrationMap": json_file(&format!("{DRAFT}/report-migration-map.json")),
"assets": assets,
"assetHashes": {},
}));
let refused = LoadedSheet::from_bundle(data.unwrap()).unwrap_err();
assert!(
format!("{refused:?}").contains("ContentMismatch"),
"{refused:?}"
);
}
#[test]
fn an_explicit_null_block_is_refused_and_an_absent_one_is_v0() {
let map = json_file(&format!("{DRAFT}/report-migration-map.json"));
let mut null_block = json_file(&format!("{DRAFT}/sheet-ref.json"));
null_block["fingerprint"] = Value::Null;
let refused = sheet_with_ref(null_block, map.clone()).unwrap_err();
assert!(refused.starts_with("shape:"), "{refused}");
let mut malformed = json_file(&format!("{DRAFT}/sheet-ref.json"));
malformed["fingerprint"] = json!("sha256-rfc8785-validated-v1");
assert!(sheet_with_ref(malformed, map.clone()).is_err());
let absent = sheet_with_ref(json_file(&format!("{PRE_SWITCH}/sheet-ref.json")), map).unwrap();
assert!(!absent.is_fingerprint_verified());
}
#[test]
fn a_v1_sheet_carrying_only_draft_warnings_loads() {
use faunosteo_core::domain::sheet::validate::{SheetIssueSeverity, validate_sheet_document};
let mut document = json_file(&format!("{DRAFT}/document.json"));
document["annotations"][0]["finding_zone_id"] = Value::Null;
let typed = from(document.clone());
let issues = validate_sheet_document(&typed);
assert!(!issues.is_empty());
assert!(
issues
.iter()
.all(|i| i.severity == SheetIssueSeverity::Warning),
"{issues:?}"
);
let value = document_fingerprint(&typed).unwrap();
let mut reference = json_file(&format!("{DRAFT}/sheet-ref.json"));
reference["document_sha256"] = json!(value);
reference["fingerprint"]["aliases"] = json!([]);
let base = draft_sheet();
let assets: serde_json::Map<String, Value> = base
.assets
.iter()
.map(|(k, v)| (k.clone(), json!(v)))
.collect();
let hashes: serde_json::Map<String, Value> = base
.asset_hashes
.iter()
.map(|(k, v)| (k.clone(), json!(v)))
.collect();
let sheet = loaded(
reference,
document,
json_file(&format!("{DRAFT}/report-migration-map.json")),
Value::Object(assets),
Value::Object(hashes),
);
assert!(sheet.is_fingerprint_verified());
// Another content: an old report on it is no alias, it rebases.
assert!(
import_archive(&sheet, &old_envelope().to_string())
.unwrap()
.rebase
.rebased
);
}
+46 -30
View File
@@ -5,12 +5,13 @@
//! every fixture PDF's attachment) under the comparison the five consumers will use.
#![allow(clippy::disallowed_methods, clippy::unwrap_used, clippy::expect_used)]
mod archive_support;
mod common;
use faunosteo_core::domain::js::parse_json;
use faunosteo_core::domain::sheet::fingerprint::{
AliasRefusal, Equivalence, FINGERPRINT_CONVENTION, FingerprintError, TRUSTED_ALIASES,
canonical_json, check_declared, equivalence, sheet_fingerprint,
AliasRefusal, FINGERPRINT_CONVENTION, FingerprintError, TRUSTED_ALIASES, canonical_json,
check_declared, sheet_fingerprint,
};
use faunosteo_core::pdf::read::probe::{ProbeLimits, read_attached_document};
use serde_json::Value;
@@ -120,34 +121,20 @@ fn an_invalid_or_malformed_document_has_no_fingerprint() {
#[test]
fn the_registry_holds_one_pair_bound_to_the_equine_sheet() {
// The comparison itself is crate-private (its unit test sits in `fingerprint.rs`); the
// consumers reach it only through `LoadedSheet::recognises_historical_stamp`.
assert_eq!(TRUSTED_ALIASES.len(), 1);
assert_eq!(FINGERPRINT_CONVENTION, "sha256-rfc8785-validated-v1");
let pair = &TRUSTED_ALIASES[0];
assert_eq!(
equivalence(SHEET, CANONICAL, CANONICAL),
Equivalence::Identical
);
assert_eq!(
equivalence(SHEET, CANONICAL, ALIAS),
Equivalence::TrustedAlias
);
assert_eq!(
equivalence(SHEET, ALIAS, CANONICAL),
Equivalence::TrustedAlias
);
let other_sheet = "00000000-0000-0000-0000-000000000000";
assert_eq!(
equivalence(other_sheet, CANONICAL, ALIAS),
Equivalence::Different
);
let other_content = "a".repeat(64);
assert_eq!(
equivalence(SHEET, &other_content, ALIAS),
Equivalence::Different
);
assert_eq!(
equivalence(SHEET, &other_content, CANONICAL),
Equivalence::Different
(pair.sheet_id, pair.alias, pair.canonical),
(SHEET, ALIAS, CANONICAL)
);
let sheet = archive_support::draft_sheet();
assert!(sheet.recognises_historical_stamp(SHEET, ALIAS));
assert!(!sheet.recognises_historical_stamp(SHEET, CANONICAL));
assert!(!sheet.recognises_historical_stamp(SHEET, &"a".repeat(64)));
assert!(!sheet.recognises_historical_stamp("00000000-0000-0000-0000-000000000000", ALIAS));
}
#[test]
@@ -239,12 +226,17 @@ fn historical_archives_open_as_the_same_document_only_through_the_registered_pai
stamps(&value, &mut found);
}
}
assert!(pdfs > 50, "{pdfs} attachments read");
assert_eq!(pdfs, 147, "attachments read");
let loaded = archive_support::draft_sheet();
assert_eq!(loaded.reference.document_sha256, CANONICAL);
let mut same = 0;
for (sheet, sha) in &found {
let verdict = equivalence(sheet, sha, CANONICAL);
// What the rebase decides: equal values, or the proven historical stamp of this sheet.
let recognised = *sha == loaded.reference.document_sha256
|| (*sheet == loaded.reference.sheet_id
&& loaded.recognises_historical_stamp(sheet, sha));
let expected = sheet == SHEET && sha == ALIAS;
assert_eq!(verdict.same_document(), expected, "{sheet} {sha}");
assert_eq!(recognised, expected, "{sheet} {sha}");
same += usize::from(expected);
}
// Every authentic stamp of the equine draft is the alias; the synthetic ones stay different.
@@ -252,7 +244,7 @@ fn historical_archives_open_as_the_same_document_only_through_the_registered_pai
"census: {pdfs} PDF attachments, {} stamps, {same} alias",
found.len()
);
assert!(same > 30, "{same} of {}", found.len());
assert_eq!((found.len(), same), (124, 123), "stamps, aliases");
}
#[test]
@@ -268,3 +260,27 @@ fn v1_never_carries_the_historical_value_or_a_malformed_one() {
);
}
}
fn nested(depth: usize) -> Value {
let mut value = Value::from(1);
for _ in 0..depth {
value = Value::Array(vec![value]);
}
value
}
#[test]
fn nesting_is_bounded_with_a_controlled_error() {
use faunosteo_core::domain::sheet::fingerprint::{CanonicalError, MAX_CANONICAL_DEPTH};
assert_eq!(MAX_CANONICAL_DEPTH, 128);
assert!(canonical_json(&nested(MAX_CANONICAL_DEPTH)).is_ok());
assert_eq!(
canonical_json(&nested(MAX_CANONICAL_DEPTH + 1)),
Err(CanonicalError::TooDeep)
);
let mut object = Value::from(1);
for _ in 0..=MAX_CANONICAL_DEPTH {
object = serde_json::json!({ "k": object });
}
assert_eq!(canonical_json(&object), Err(CanonicalError::TooDeep));
}