Skip to main content

import_condition_map

Function import_condition_map 

Source
pub fn import_condition_map(
    json: &str,
    provenance: Provenance,
    systems: &SystemRegistry,
) -> Result<ImportResult, String>
Expand description

Import the bundled condition-map.json (condition → primary system label). Each condition becomes a chronic clinical FactorKnowledge targeting its primary system, resolved through systems — so a condition that maps to a registered extension system (beyond the seeded 17) resolves and is evaluated, not silently dropped. A label that resolves to no registered system is still skipped with a warning (you can’t map to a system nobody has defined) — register it first. Pass super::registry::default_registry for just the seeded 17, or an extended registry.