Changelog
Source:NEWS.md
medicalcoder 0.7.0.9000
New Features
If a
tibbleis passed tocomorbidities()and thedplyrnamespace is available, thendplyrmethods will be used for data manipulation. This change will generally result in less computation time than base Rdata.frames(data.tablesrequire even less time).Add the
elixhauser_ahrq2026method forcomorbidities()(#32)
Bug Fixes
summary.medicalcoder_comorbidites()no longer crashes when a zero row input is passed in. Consistently returnNAinstead ofNaNwhen counts are zeros. (#26, #27)Improve the conditional and multiple comorbidities mapped by a code under AHRQ ICD-10 codes for fiscal years 2023 through 2026. The bug was found and fixed as part of the extension #32.
Other Changes
Extend and improve the internal ICD-9 database to distinguish between CDC and CMS source.
Fix documentation of the
mdcrandmdcr_longitudinaldatasets.Clarified internal data.frame/data.table helpers: documented that
mdcr_select()deep-copies data.table subsets to avoid aliasing, noted the selfref fix inmdcr_set(), and added inline guidance in the longitudinal section ofcomorbidities()to explain the first-occurrence logic.Improve cumulative flagging to apply first-occurrence logic more efficiently.
Extend documentation for the expected default behavior between the present-on-admission flags and
flag.methodargument incomorbidities()(re: #28)Add
mdcr_unique()to the data.frame utilities. This reduced the computational time required to applycomorbidities()totibbles anddata.tables. (#31)
medicalcoder 0.7.0
CRAN release: 2025-11-22
Bug Fixes
-
Elixhauser AHRQ 2022 - 2025
- exclusions for less severe conditions when more severe conditions are flagged.
- Improved POA, NPOA, and EXEMPTPOA. This came about from #20.
Make internal data.frame tool
mdcr_duplicated()data.table aware.Elixhauser (Quan 2005) - added missing ICD-10 codes to the mappings
New Features
-
comorbidities()will return atibblewhen the input data is atbl_df(#9). Assuming thedata.tableand/ortibblenamespaces are available, then the initial release (v0.6.0) would return adata.tableif adata.tablewas passed to acomorbidities()due to the S3 method dispatches. If atibble(tbl_df) or adata.framewas passed tocomorbidities()then the return would be adata.frame. In this release we have added logic to determine if the input is atibbleand if thetibblenamespace is available, then the return fromcomorbidities()will be atibble(or list oftibbles whensubconditions = TRUE).The tests were extended to consider the cases of passing in a
data.tableortibbleto comorbidities when the associated namespaces are not available. Added
elixhauser_ahrq_icd10to use all the ICD codes ever defined from 2022 to 2025. This will capture any future years as well.
medicalcoder 0.6.0
CRAN release: 2025-10-15
- Initial CRAN submission, providing a dependency-free toolkit for ICD-9/10 code lookups
- Introduces a unified
comorbidities()interface covering Charlson (Deyo, Quan 2005/2011, Glasheen), Elixhauser (original, Quan 2005, AHRQ 2017-2025), and Pediatric Complex Chronic Conditions (v2.0/2.1/3.0/3.1). - Adds support for present-on-admission indicators, longitudinal look-back, age scoring, and PCCC sub-condition flags within
comorbidities(). - Bundles curated ICD dictionaries alongside example datasets (
mdcr,mdcr_longitudinal) for reproducible testing and demonstrations. - Includes vignettes and benchmarking summaries that document usage patterns and showcase performance without non-base dependencies.