F_Knie_TEP_Wechsel_Frakt_Infekt_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_Frakt_Infekt_ein(x)ein tibble (siehe Format des Rückgabewertes von read.bfs)
wahr oder falsch
F_Knie_TEP_Wechsel_Frakt_Infekt_ein <- function(x){ x %>%
mutate(F_Knie_TEP_Wechsel_Frakt_Infekt_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 %in_table% (ICD_Knie_Frak_Inf) |
pdx %in_table% (ICD_Sepsis) &
sdx %in_table% (ICD_Knie_Frak_Inf))) ) }
if (FALSE) read.bfs(path2file) %>% F_Knie_TEP_Wechsel_Frakt_Infekt_ein() # \dontrun{}