getData4abiot_chrbettl: Get data on antibiosis before hospital admission (ABIOT),...

View source: R/getData4abiot_chrbettl.R

getData4abiot_chrbettlR Documentation

Get data on antibiosis before hospital admission (ABIOT), chronic bed confinement (CHRBETTL).

Description

Get data on antibiosis before hospital admission (ABIOT), chronic bed confinement (CHRBETTL).

Usage

getData4abiot_chrbettl(FRM_BAS)

Arguments

FRM_BAS

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

Value

data.table with the ID of the patient (PATSTUID), time point (EVENT), and the information on antibiosis before hospital admission (ABIOT), chronic bed confinement (CHRBETTL). Table FRM_BAS contains values at EVENT == 3 at present.

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)
res <- getData4abiot_chrbettl(FRM_BAS)
res[]

## End(Not run)

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