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

F_46_3_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_3_Aus <- function(x){ x %>%
mutate(F_46_3_Aus =
!( (pdx %in_table% (ICD_Schenkelhalsnahe_Frakturen) |
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 %not_in_table% (CHOP_SHF_EndoproOP) &
srg %not_in_table% (CHOP_SHF_OsteoOP) &
srg %not_in_table% (CHOP_Pertroch_Frak_EndoproOP) &
srg %not_in_table% (CHOP_Pertroch_Frak_OsteoOP) &
ageyears>19) ) }

Examples

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