D1_15_M.RdHD Pneumonie ohne Tumor, Mukoviszidose oder COVID-19 (Alter >19), Direktaufnahmen, Mortalität
D1_15_M(x)ein tibble (siehe Format des Rückgabewertes von read.bfs)
14_26
D1-Lungenentzündung (Pneumonie)
D-Erkrankungen der Lunge
Mortalität
D1_15_M <- function(x){ x %>%
mutate( i = if_else((pdx %in_table% (ICD_Pneumonie) &
pdx %not_in_range% c('J690','J698') &
lba !='6' &
ddx %not_in_table% (ICD_TUMOR) &
ddx %not_in_table% (ICD_Mucoviszidose) &
ddx %not_in_range% c('U071') &
ageyears>19),
if_else((F_Tot), 2, 1), as.double(NA))) %>%
output_table_perc('D1_15_M') }
if (FALSE) read.bfs(path2file) %>% iqi.functions() %>% D1_15_M() # \dontrun{}