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

F_46_2_Aus(x)

Arguments

x

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

Value

vrai ou faux

Spécification

F_46_2_Aus <- function(x){ x %>%
mutate(F_46_2_Aus =
!(pdx %in_table% (ICD_Pertrochantaere_Fraktur) &
ddx %not_in_table% (ICD_Hueftfraktur_Aus) &
ddx %not_in_table% (ICD_TUMOR) &
srg %not_in_range% c('81A111') &
srg %not_in_table% (CHOP_TEPABST) &
srg %not_in_table% (CHOP_Huefte_Knie_Sonderprothese) &
(srg %in_table% (CHOP_Pertroch_Frak_EndoproOP) |
srg %in_table% (CHOP_Pertroch_Frak_OsteoOP)) &
ageyears>19) ) }

Examples

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