← Back to all sparks
M

medicalcoder

INFRA · APIS
Velocity0.0

R package medicalcoder by dewittpe — release notes from GitHub.

A comorbidity-coding package relicenses to BSD and grows past the American coding systems

health-informaticsicd-codingcomorbidityr-packageopen-source-licensing
Current state
medicalcoder maps ICD diagnosis codes to comorbidity conditions using the Charlson, Elixhauser, AHRQ and PCCC method families. Three releases since June 2026 moved it from a US-centric tool to one carrying Australian and Swedish modifications, added four new Charlson variants, and introduced a choice between precomputed code-condition links and regex mapping applied directly to input codes. The license moved from GPL-2 to BSD 3-Clause along the way.
Where it's heading
Two things are happening at once. The coding surface is broadening — ICD-10-AM, ICD-10-SE, Swedish register-based and MIMIC-IV-consistent Charlson methods — which points at users outside the US claims-data world. Separately, the package is hardening: validation on encounter ordering, deterministic result ordering, NA rather than NaN for zero counts, and corrected AHRQ and Quan mappings for fiscal years 2023 to 2026. The mapping argument is the first real fork in how the computation runs rather than what it covers.
Prediction
Regex mapping is currently unavailable for charlson_beyrer2021 and the release notes flag it as a gap, so closing that is the most clearly signposted next step.

Recent moves

  1. 1mo ago

    Regex mapping mode, four Charlson variants, and Australian and Swedish ICD-10

    comorbidities() gains a mapping argument choosing between precomputed ICD-condition links and regex applied directly to input codes, four Charlson variants arrive including Swedish register-based and MIMIC-IV-consistent methods, and the ICD database picks up the Australian and Swedish modifications. Encounter-order validation now errors on missing values rather than sorting silently.

    View source ↗
  2. 1mo ago

    Charlson age handling fixed and CMS codes refreshed for April 2026

    Corrections to Charlson age handling when id.vars is omitted or an ID carries multiple ages, deterministic ordering from lookup_icd_codes(), and the April 2026 CMS ICD-10 refresh. The age fixes change scores for affected records rather than just tidying behaviour.

    View source ↗
  3. 1mo ago

    Elixhauser AHRQ 2026, mapping corrections, and a GPL-2 to BSD relicense

    ⚡ SPARK

    AHRQ Elixhauser Comorbidity Software Refined v2026 support arrives alongside dplyr-based paths for tibble inputs, corrected AHRQ conditional and multiple-comorbidity mappings for fiscal years 2023 to 2026, and Quan 2005 Elixhauser fixes. The release also moves the package from GPL-2 to BSD 3-Clause.

    View source ↗
  4. 8mo ago

    v0.7.0-rc0

    A release candidate tag with a one-line body and no detail. It marks a point in the release process rather than a shipped change.

    View source ↗