4ee705e57db2ef552c2f1f608ba70dd66d335565
ICD-10-GM models the 4th/5th sub-digits of many groups (incl. all E10-E14 diabetes) via <Modifier>/<ModifierClass> referenced by ordered <ModifiedBy> on the parent <Class>, not as nested <Class> elements. load() previously returned nothing for codes like E11.90/E11.72/I10.91, so ~1.7k corpus codes (incl. ~1.2k billable) fell back to the non-billable 3-digit root and were silently dropped under --billable-only. Collect per-Class ModifiedBy refs and all ModifierClass defs during the existing single stream, then expand: cartesian product of the referenced modifiers' ModifierClass codes in ModifiedBy order, concatenated verbatim onto the parent code (E11 + .9 + 0 = E11.90), matching the Alpha-ID corpus format exactly. Terminal leaves are billable (Para295/Para301=P); description = parent label + each ModifierClass label joined by ' - '; chapter/group/exotic/ifsg/content inherited from parent. Purely additive: explicit <Class> entries always win. Generic over every modifier group. Map size 12334 -> 17249 (+4915 synthesized). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Description
No description provided
Languages
Rust
100%