extractComorbScore: compute the comorbidity score comorbscore

View source: R/extractComorbScore.R

extractComorbScoreR Documentation

compute the comorbidity score comorbscore

Description

compute the comorbidity score comorbscore

Usage

extractComorbScore(FRM_BAS)

Arguments

FRM_BAS

data.table containing the table FRM_BAS from the database of the PROGRESS study

Details

The comorbscore is the modified Charlson score (Charlson, Pompei, Ales, and MacKenzie, 1987) and is computed as a sum of the following points:

  • HI (heart failure, Herzinsuffizienz) or SCHRHERZ (other chronic heart problem): 1 point,

  • CEREBROERK (chronic cerebr. disease, Chronische Cerebr. Erkrankung): 1 point

  • CHRNIERE (chronic renal failure, chronische Nierenerkrankung): 2 points

  • CHRLEBER (chronic liver disease, chronische Lebererkrankung): 3 points

  • DIABETES: 1 point

  • CHRATEMLUNG (chronic lung disease, Chronische Atemwegs/Lungenerkrankung): 1 point

Value

named list with two elements "detailed" and "compact" containing data.tables with the computed comorbscore and its components.

Examples

## Not run: 
excel_fn <- paste0("/net/ifs1/san_projekte/projekte/",
"PROGRESS/Datenmanagement/Data_freezes/",
"20190320/PROGRESS-freeze_201903_01.xlsx")
FRM_BAS <- readxl::read_excel(excel_fn, "FRM_BAS")
data.table::setDT(FRM_BAS)
extractComorbScore(FRM_BAS)

## End(Not run)

maciejrosolowski/progressdatenbankderivate documentation built on Nov. 29, 2024, 3:39 a.m.