F_46_1_Aus.RdPrüft die Spezifikation gegen jeden Fall in einem tibble und fügt eine logische Spalte mit dem Ergebniss hinzu.
F_46_1_Aus(x)ein tibble (siehe Format des Rückgabewertes von read.bfs)
wahr oder falsch
F_46_1_Aus <- function(x){ x %>%
mutate(F_46_1_Aus =
!(pdx %in_table% (ICD_Schenkelhalsnahe_Frakturen) &
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_SHF_EndoproOP) |
srg %in_table% (CHOP_SHF_OsteoOP)) &
ageyears>19) ) }
if (FALSE) read.bfs(path2file) %>% F_46_1_Aus() # \dontrun{}