Prüft die Spezifikation gegen jeden Fall in einem tibble und fügt eine logische Spalte mit dem Ergebniss hinzu.

F_Hueft_TEP_Wechsel_Frakt_Infekt_ein(x)

Arguments

x

ein tibble (siehe Format des Rückgabewertes von read.bfs)

Value

wahr oder falsch

Spezifikation

F_Hueft_TEP_Wechsel_Frakt_Infekt_ein <- function(x){ x %>%
mutate(F_Hueft_TEP_Wechsel_Frakt_Infekt_ein =
(F_Hueft_Knie_Kombi_aus &
F_Hueft_Knie_Tumor_aus &
F_Hueft_TEP_Erstimpl_elektiv_aus &
F_Hueft_TEP_Fraktur_aus &
F_Hueft_TEP_andere_aus &
(srg %in_table% (CHOP_Hueft_TEP_Wechsel) |
(srg %in_table% (CHOP_Huefte_Implantation) &
srg %in_table% (CHOP_TEPABST))) &
(pdx %in_table% (ICD_Hueft_Frak_Inf) |
pdx %in_table% (ICD_Sepsis) &
sdx %in_table% (ICD_Hueft_Frak_Inf))) ) }

Examples

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