feat: tag derivation from ClaML metadata + validity

This commit is contained in:
2026-05-18 16:40:08 +02:00
parent 27d5144864
commit ce7403fee9
2 changed files with 32 additions and 1 deletions
+12 -1
View File
@@ -1 +1,12 @@
// implemented in a later task
use crate::model::{IcdMeta, Tags};
/// Build display/filter Tags from ICD metadata and the Alpha-ID
/// validity flag of the matched entry.
pub fn tags_for(m: &IcdMeta, alpha_valid: bool) -> Tags {
Tags {
billable: m.para295 == "P",
valid: alpha_valid,
chapter: m.chapter.clone(),
exotic: m.exotic,
}
}