A structured knowledge base for ICD-11 disease classifications with symptom foundations and AI enrichment capabilities.
antigravity/
├── data/
│ ├── mms/ # Disease definitions (one per ICD-11 code)
│ ├── foundation/ # Symptom definitions
│ ├── research/ # Research notes and references
│ └── generated/ # Generated artifacts (FAISS indices, etc.)
├── schemas/ # JSON Schema definitions
├── scripts/ # Utility scripts
├── tests/ # Test suite
└── .github/workflows/ # CI/CD workflows
pip install -e ".[dev]"python scripts/validate.pyThis validates:
- All disease YAML files against the disease schema
- All symptom YAML files against the symptom schema
- Cross-references between diseases and symptoms
- Grade/probability consistency for symptoms
pytestruff check .
mypy scriptsRequired fields:
entity_uri: ICD-11 entity URIcode: ICD-11 codetitle_en: English titledefinition_en: English definitionparent_code: Parent ICD-11 code (or null)children_codes: Array of child codespathophysiology_en: Pathophysiology descriptionsymptoms: Array of symptom referencesdifferential_diagnosis: Array of differential diagnosesrisk_factors: Array of risk factorsdrugs: Array of associated drugsvector_text_en: Text for vector embeddingsstats: Statistics objectai_enriched: Boolean flag for AI enrichmentlast_updated: ISO date string
Required fields:
id: Unique symptom identifiertitle_en: English titledefinition_en: English definitionrelated_systems: Array of related body systems
| Grade | Probability Range |
|---|---|
| ALWAYS | 1.0 |
| VERY_COMMON | 0.7 - 0.99 |
| COMMON | 0.3 - 0.69 |
| OCCASIONAL | 0.05 - 0.29 |
| RARE | 0.001 - 0.049 |
| NEVER | 0.0 |
MIT