Beatmungen >24h bei nosokomialer Pneumonie, ohne Tumor oder Mukoviszidose (Alter >19), Direktaufnahmen, Mortalität

D1_17_M(x)

Arguments

x

ein tibble (siehe Format des Rückgabewertes von read.bfs)

Alias

14_611

Kapitel

D1-Lungenentzündung (Pneumonie)

Gruppe

D-Erkrankungen der Lunge

Typ

Mortalität

Spezifikation

D1_17_M <- function(x){ x %>%
mutate( i = if_else((sdx %in_table% (ICD_nosokom_Pneumonie) &
lba !='6' &
ddx %not_in_table% (ICD_TUMOR) &
ddx %not_in_range% c('E840','E849') &
ageyears>19 &
hmv>24),
if_else((F_Tot), 2, 1), as.double(NA))) %>%
output_table_perc('D1_17_M') }

Examples

if (FALSE)  read.bfs(path2file) %>% iqi.functions() %>% D1_17_M()  # \dontrun{}