Skip to content

Commit 06c5c5b

Browse files
committed
ogar-class-view: register the 4 anatomy concepts (fix workspace CI)
The whole-workspace `cargo check + test` caught what per-crate testing missed: ogar-class-view's OgarClassView registry has a drift gate requiring every codebook concept to be registered, and the anatomy mints (anatomical_structure / skeleton / bone / joint, 0x0A01..04) were absent. Added them to all_canonical_classes() in codebook order (after health, before auth) + the imports. Workspace test now fully green: - every_codebook_id_appears_in_class_ids_all ... ok - known_class_ids_iterates_in_stable_codebook_order ... ok - registry_carries_every_codebook_concept ... ok Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EYvNjD8M8LMNYbRy3gq2FP
1 parent 54dc888 commit 06c5c5b

1 file changed

Lines changed: 15 additions & 10 deletions

File tree

  • crates/ogar-class-view/src

crates/ogar-class-view/src/lib.rs

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,16 @@ use lance_graph_contract::{
6464
ontology::{DisplayTemplate, FieldRef, ObjectView},
6565
};
6666
use ogar_vocab::{
67-
accounting_account, auth_ory_keto, auth_store, auth_zanzibar, auth_zitadel,
68-
billable_work_entry, billing_party, canonical_concept_id, commercial_document,
69-
commercial_line_item, currency_policy, diagnosis, lab_value, medication, patient,
70-
payment_record, priority, product, project, project_actor, project_attachment,
71-
project_changeset, project_comment, project_custom_field, project_custom_value,
72-
project_enabled_module, project_forum, project_journal, project_member_role,
73-
project_membership, project_message, project_news, project_query, project_relation,
74-
project_repository, project_role, project_status, project_type, project_version,
75-
project_watcher, project_wiki_page, project_work_item, tax_policy, treatment, visit,
76-
vital_sign, Class,
67+
Class, accounting_account, anatomical_structure, auth_ory_keto, auth_store, auth_zanzibar,
68+
auth_zitadel, billable_work_entry, billing_party, bone, canonical_concept_id,
69+
commercial_document, commercial_line_item, currency_policy, diagnosis, joint, lab_value,
70+
medication, patient, payment_record, priority, product, project, project_actor,
71+
project_attachment, project_changeset, project_comment, project_custom_field,
72+
project_custom_value, project_enabled_module, project_forum, project_journal,
73+
project_member_role, project_membership, project_message, project_news, project_query,
74+
project_relation, project_repository, project_role, project_status, project_type,
75+
project_version, project_watcher, project_wiki_page, project_work_item, skeleton, tax_policy,
76+
treatment, visit, vital_sign,
7777
};
7878

7979
/// All promoted canonical concepts: `(canonical_concept_name, Class)`.
@@ -128,6 +128,11 @@ fn all_canonical_classes() -> Vec<(&'static str, Class)> {
128128
("treatment", treatment()),
129129
("visit", visit()),
130130
("vital_sign", vital_sign()),
131+
// ── 0x0AXX — anatomy (FMA reference kinds) ──
132+
("anatomical_structure", anatomical_structure()),
133+
("skeleton", skeleton()),
134+
("bone", bone()),
135+
("joint", joint()),
131136
// ── 0x0BXX — auth (the AuthStore class family, keystone §7) ──
132137
("auth_store", auth_store()),
133138
("auth_zitadel", auth_zitadel()),

0 commit comments

Comments
 (0)