Hüft­Endoprothesen­Wechsel mit HD Frakturen oder Infektionen, Mortalität

I1_14_M(x)

Arguments

x

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

Alias

42_2

Kapitel

I1-Gelenkersatz, Endoprothese

Gruppe

I-Erkrankungen von Knochen, Gelenken und Bindegewebe

Typ

Mortalität

Spezifikation

I1_14_M <- function(x){ x %>%
mutate( i = if_else((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))),
if_else((F_Tot), 2, 1), as.double(NA))) %>%
output_table_perc('I1_14_M') }

Examples

if (FALSE)  read.bfs(path2file) %>% iqi.functions() %>% I1_14_M()  # \dontrun{}