Crandore Hub

LABTNSCPSS

Calculation of Comorbidity and Frailty Scores

Computes comorbidity indices and combined frailty scores for multiple ICD coding systems, including ICD-10-CA, ICD-10-CM, and ICD-11. The package provides tools to preprocess episode data, map diagnosis codes to chronic categories, propagate conditions across episodes, and generate comorbidity and frailty measures. The methods implemented are original to this package and were developed by the authors for research applications; a manuscript describing the methodology is currently in preparation.

README

# LABTNSCPSS

LABTNSCPSS is an R package that implements a reproducible pipeline to process episode-level clinical data and compute chronic pathology, frailty, and comorbidity indices from diagnosis codes.

The package computes:

- Charlson Comorbidity Index (CCI)
- Elixhauser Comorbidity Index (ECI)
- Combined Comorbidity Index
- Frailty Index
- Morbidity-Frailty Index

from episode-level clinical data.

---

## Installation

Install from CRAN:

```r
install.packages("LABTNSCPSS")
```
Load the package:
```r
library(LABTNSCPSS)
```

##Quick Start Example

The example below uses the sample dataset included in the package.
```r
# Load example dataset included in the package
input_file <- system.file("extdata", "testpackage.csv", package = "LABTNSCPSS")

# Define column mapping
col_mapping <- list(
  patient_id = "trajectoire_id",
  ICD        = "diagnostic_code",
  start_date = "date_debut",
  end_date   = "date_fin",
  episode_id = "episode_id"
)

# Choose output directory
out_dir <- tempdir()

# Run the pipeline
results <- run_pipeline(
  input_file   = input_file,
  col_mapping  = col_mapping,
  coding_system = "ICD-10-CA",
  out_dir      = out_dir
)

results
```

Versions across snapshots

VersionRepositoryFileSize
1.0.2 rolling linux/jammy R-4.5 LABTNSCPSS_1.0.2.tar.gz 2.2 MiB
1.0.2 rolling linux/noble R-4.5 LABTNSCPSS_1.0.2.tar.gz 2.2 MiB
1.0.2 rolling source/ R- LABTNSCPSS_1.0.2.tar.gz 2.2 MiB
1.0.2 latest linux/jammy R-4.5 LABTNSCPSS_1.0.2.tar.gz 2.2 MiB
1.0.2 latest linux/noble R-4.5 LABTNSCPSS_1.0.2.tar.gz 2.2 MiB
1.0.2 latest source/ R- LABTNSCPSS_1.0.2.tar.gz 2.2 MiB
1.0.2 2026-04-26 source/ R- LABTNSCPSS_1.0.2.tar.gz 2.2 MiB
1.0.2 2026-04-23 source/ R- LABTNSCPSS_1.0.2.tar.gz 2.2 MiB

Dependencies (latest)

Imports

Suggests