Skip to content

Commit 056b0cc

Browse files
AlexMikhalevclaude
andauthored
feat: add medical extensions (MedicalRoleGraph, symbolic embeddings, SNOMED/UMLS extractors)
Adds medical domain support behind `medical` feature flags across three crates: **terraphim_types**: MedicalNodeType (27 variants), MedicalEdgeType (65 variants) **terraphim_rolegraph**: MedicalRoleGraph with IS-A hierarchy, adjacency index, symbolic embeddings (Jaccard + path distance) **terraphim_automata**: EntityExtractor (SNOMED), UmlsExtractor, ShardedUmlsExtractor with daachorse sharded automaton, bincode+zstd artifact serialization Key fixes: - magic_unpair f32->f64 for SNOMED IDs (100M-900M range) - Overlap detection: start < m.span.1 && end > m.span.0 - Multi-CUI term preservation in ShardedUmlsExtractor - Adjacency index for O(degree) edge lookups - Clippy: derive(Default) and is_some_and 78 rolegraph tests + 41 automata tests, all passing. E2E verified in medgemma-competition (49/49 checks pass). Closes #549 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0b9b211 commit 056b0cc

60 files changed

Lines changed: 11254 additions & 573 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.beads/issues.jsonl

Lines changed: 0 additions & 23 deletions
Large diffs are not rendered by default.

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,9 @@ keys/
6060
crates/terraphim_settings/test_settings/settings.toml
6161
# Nightshift plan artifacts (keep out of version control)
6262
.nightshift-plan
63+
64+
# Build artifacts
65+
a.out
66+
67+
# Cache
68+
.cachebro/

0 commit comments

Comments
 (0)