Anteil neurologische oder andere Komplexbehandlung (Stroke Unit) bei HD Hirninfarkt oder TIA (Alter >19), Direktaufnahmen

B2_05_P(x)

Arguments

x

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

Alias

10_41

Kapitel

B2-Behandlung auf Stroke Unit

Gruppe

B-Erkrankungen des Nervensystems, Schlaganfall (Stroke)

Typ

Anteil

Spezifikation

B2_05_P <- function(x){ x %>%
mutate( i = if_else((ageyears>19 &
(pdx %in_range% c('I630','I639') |
pdx %in_table% (ICD_TIA)) &
lba !='6'),
if_else((srg %in_table% (CHOP_Stroke)), 2, 1), as.double(NA))) %>%
output_table_perc('B2_05_P') }

Examples

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