F_46_2_Aus.RdPrüft die Spezifikation gegen jeden Fall in einem tibble und fügt eine logische Spalte mit dem Ergebniss hinzu.
F_46_2_Aus(x)ein tibble (siehe Format des Rückgabewertes von read.bfs)
wahr oder falsch
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) ) }
if (FALSE) read.bfs(path2file) %>% F_46_2_Aus() # \dontrun{}