Context
CodeLookup now has a coding-system mode (PR #333 branch codelookup-code-search):
searchCodetypes prop — programmer fixes the system (e.g. ['ICD10'])
codetypeOptions prop — user-facing segmented control (see the Conditions Only story: All | ICD-10 | SNOMED)
- Engine-side
SearchOptions.codetypes filters both label and code-prefix matches
The filter is fully generic — ICD-11 mode is just codetypes: ['ICD11'] once the data exists. It doesn't yet: the source dataset (rxdb_utf8.MedicalCodify_search) has no ICD-11 rows (codetypes present: CVX, FDB, FDB MEDNAME, HCPCS, ICD10, ICD10PCS, ICD9, LabCorp Order, LOINC, LOINC Hierarchy, Measure, NDC, Quest Order, RxNORM, SNOMED US, ValueSet, VIS).
Task
Ingest the WHO ICD-11 MMS linearization into the codify pipeline so the condition shard carries ICD11 entries:
Out of scope
ICD-10 ↔ ICD-11 crosswalk/mapping tables (separate ticket if needed).
Context
CodeLookup now has a coding-system mode (PR #333 branch
codelookup-code-search):searchCodetypesprop — programmer fixes the system (e.g.['ICD10'])codetypeOptionsprop — user-facing segmented control (see the Conditions Only story: All | ICD-10 | SNOMED)SearchOptions.codetypesfilters both label and code-prefix matchesThe filter is fully generic — ICD-11 mode is just
codetypes: ['ICD11']once the data exists. It doesn't yet: the source dataset (rxdb_utf8.MedicalCodify_search) has no ICD-11 rows (codetypes present: CVX, FDB, FDB MEDNAME, HCPCS, ICD10, ICD10PCS, ICD9, LabCorp Order, LOINC, LOINC Hierarchy, Measure, NDC, Quest Order, RxNORM, SNOMED US, ValueSet, VIS).Task
Ingest the WHO ICD-11 MMS linearization into the codify pipeline so the
conditionshard carriesICD11entries:MedicalCodify_searchupstream, or add a supplemental input topackages/codify/scripts/build-index.mjs(external repo)ICD11to theconditionshard codetype list; rebuild.mcdxshards (git-lfs) — watch shard size / Cloudflare Pages 25 MiB capfamilyKey()(engine.ts) — current ICD-10 rule is letter+digit code-root; ICD-11 codes look likeBD10,8A61.0billableMask()(leaf-code rule) applicability to ICD-11 or scope it to ICD-10 only{ label: 'ICD-11', codetypes: ['ICD11'] }to the Conditions Only story toggleOut of scope
ICD-10 ↔ ICD-11 crosswalk/mapping tables (separate ticket if needed).