F_Knie_TEP_Wechsel_elektiv_ein.RdPrüft die Spezifikation gegen jeden Fall in einem tibble und fügt eine logische Spalte mit dem Ergebniss hinzu.
F_Knie_TEP_Wechsel_elektiv_ein(x)ein tibble (siehe Format des Rückgabewertes von read.bfs)
wahr oder falsch
F_Knie_TEP_Wechsel_elektiv_ein <- function(x){ x %>%
mutate(F_Knie_TEP_Wechsel_elektiv_ein =
(F_Hueft_Knie_Kombi_aus &
F_Hueft_Knie_Tumor_aus &
F_Knie_Erstimplantation_aus &
F_Knie_TEP_andere_aus &
(srg %in_table% (CHOP_Knie_TEP_Wechsel) |
(srg %in_table% (CHOP_Knie_Implantation) &
srg %in_table% (CHOP_TEPABST))) &
pdx %not_in_table% (ICD_Knie_Frak_Inf) &
F_Knie_Frak_Inf_bei_HD_Sepsis_aus) ) }
if (FALSE) read.bfs(path2file) %>% F_Knie_TEP_Wechsel_elektiv_ein() # \dontrun{}