Package: coder 0.13.10
coder: Deterministic Categorization of Items Based on External Code Data
Fast categorization of items based on external code data identified by regular expressions. A typical use case considers patient with medically coded data, such as codes from the International Classification of Diseases ('ICD') or the Anatomic Therapeutic Chemical ('ATC') classification system. Functions of the package relies on a triad of objects: (1) case data with unit id:s and possible dates of interest; (2) external code data for corresponding units in (1) and with optional dates of interest and; (3) a classification scheme ('classcodes' object) with regular expressions to identify and categorize relevant codes from (2). It is easy to introduce new classification schemes ('classcodes' objects) or to use default schemes included in the package. Use cases includes patient categorization based on 'comorbidity indices' such as 'Charlson', 'Elixhauser', 'RxRisk V', or the 'comorbidity-polypharmacy' score (CPS), as well as adverse events after hip and knee replacement surgery.
Authors:
coder_0.13.10.tar.gz
coder_0.13.10.zip(r-4.5)coder_0.13.10.zip(r-4.4)coder_0.13.10.zip(r-4.3)
coder_0.13.10.tgz(r-4.4-any)coder_0.13.10.tgz(r-4.3-any)
coder_0.13.10.tar.gz(r-4.5-noble)coder_0.13.10.tar.gz(r-4.4-noble)
coder_0.13.10.tgz(r-4.4-emscripten)coder_0.13.10.tgz(r-4.3-emscripten)
coder.pdf |coder.html✨
coder/json (API)
NEWS
# Install 'coder' in R: |
install.packages('coder', repos = c('https://ropensci.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/ropensci/coder/issues
- charlson - Classcodes for Charlson comorbidity based on ICD-codes
- cps - Classcodes for the comorbidity-polypharmacy score (CPS) based on ICD-10 codes
- elixhauser - Classcodes for Elixhauser based on ICD-codes
- ex_atc - Example data for random ATC codes
- ex_icd10 - Example data for random codes assigned to random people
- ex_people - Example data for random people
- hip_ae - Classcodes for adverse events after knee and hip arthroplasty
- hip_ae_hailer - Classcodes for infection and dislocation after hip arthroplasty
- knee_ae - Classcodes for adverse events after knee and hip arthroplasty
- rxriskv - Classcodes for RxRisk V based on ATC codes
Last updated 2 years agofrom:957d87186c (on master). Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Oct 28 2024 |
R-4.5-win | OK | Oct 28 2024 |
R-4.5-linux | OK | Oct 28 2024 |
R-4.4-win | OK | Oct 28 2024 |
R-4.4-mac | OK | Oct 28 2024 |
R-4.3-win | OK | Oct 28 2024 |
R-4.3-mac | OK | Oct 28 2024 |
Exports:%>%all_classcodesas.classcodescategorizeclassifycodebookcodebookscodifyindexis.classcodesset_classcodesvisualize
Dependencies:clidata.tabledecoderfansigenericsgluelifecyclemagrittrpillarpkgconfigrlangtibbleutf8vctrs
Classcodes
Rendered fromclasscodes.Rmd
usingknitr::rmarkdown
on Oct 28 2024.Last update: 2020-11-19
Started: 2020-04-22
coder
Rendered fromcoder.Rmd
usingknitr::rmarkdown
on Oct 28 2024.Last update: 2021-01-12
Started: 2018-10-04
Example data
Rendered fromex_data.Rmd
usingknitr::rmarkdown
on Oct 28 2024.Last update: 2020-11-20
Started: 2020-11-19
Interpret regular expressions
Rendered fromInterpret_regular_expressions.Rmd
usingknitr::rmarkdown
on Oct 28 2024.Last update: 2020-11-19
Started: 2020-11-19