Durata di ventilazione sopra i livelli DRG (neonati esclusi), percentuale

J1_03_P(x)

Arguments

x

un tibble (vedi il formato del valore di ritorno di read.bfs)

Alias

56_14

Capitolo

J1-Ventilazione assistita, ARDS e procedure extracorporee

Gruppo

J-Quadri clinici complessi, eterogenei (tracer per revisione tra pari)

Tipo

percentuale

Specificazione

J1_03_P <- 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_perc('J1_03_P') }

Examples

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