Vérifie la spécification par rapport à chaque rencontre dans un tibble et ajoute une colonne logique avec le résultat.

F_schwere_Komplikationen(x)

Arguments

x

un tibble (voir le format de la valeur de retour de read.bfs)

Value

vrai ou faux

Spécification

F_schwere_Komplikationen <- function(x){ x %>%
mutate(F_schwere_Komplikationen =
(!F_Tot &
(sdx %in_table% (ICD_schwere_Komplikationen) |
srg %in_table% (CHOP_schwere_Komplikationen) |
(srg %in_table% (CHOP_Transfusionen) &
ddx %not_in_table% (ICD_Gerinnungsstoerung)) |
(hmv>24 &
(agedays>27 |
ageyears>0)))) ) }

Examples

if (FALSE)  read.bfs(path2file) %>% F_schwere_Komplikationen()  # \dontrun{}