Beatmungsdauer oberhalb DRG Stufen (ohne Neugeborene)

J1_03_F(x)

Arguments

x

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

Alias

56_14_Z

Kapitel

J1-Beatmung, ARDS und extrakorporale Verfahren

Gruppe

J-Komplexe, heterogene Krankheitsbilder (Tracer für Peer Review)

Typ

Fallzahl

Spezifikation

J1_03_F <- function(x){ x %>%
mutate( i = if_else(( ((agedays>27 |
ageyears>0) &
(hmv<96 &
hmv>=72 |
hmv>=96 &
hmv<120 |
hmv<250 &
hmv>=226 |
hmv>=250 &
hmv<274 |
hmv<500 &
hmv>=476 |
hmv>=500 &
hmv<524 |
hmv<1500 &
hmv>=1476 |
hmv>=1500 &
hmv<1524))),
if_else(( ((agedays>27 |
ageyears>0) &
(hmv>=96 &
hmv<120 |
hmv>=250 &
hmv<274 |
hmv>=500 &
hmv<524 |
hmv>=1500 &
hmv<1524))), 2, 1), as.double(NA))) %>%
output_table_cnt('J1_03_F') }

Examples

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