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

F_Cholecystektomie(x)

Arguments

x

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

Value

vrai ou faux

Spécification

F_Cholecystektomie <- function(x){ x %>%
mutate(F_Cholecystektomie =
(pdx %in_table% (ICD_Cholecystektomie) &
srg %in_table% (CHOP_Cholecystektomie) &
ddx %not_in_table% (ICD_TUMOR) &
srg %not_in_table% (CHOP_Galle_Excl)) ) }

Examples

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