Show all changes in ICD history relating to the 3-digit codes contained in the data.frame icd_in. The output of icd_expand can be passed directly to this function to display relevant changes.

icd_showchanges(icd_in, col_icd = "icd_sub")

Arguments

icd_in

Data frame defining ICD codes of interest

col_icd

Column of icd_in containing ICD codes (Default: ICD)

Value

data.frame with columns YEAR, ICD_CODE, ICD_LABEL and, if specified, DIAG_GROUP

Examples

dat_icd <- icd_expand( data.frame(ICD_SPEC = c("K52.9")), col_icd = "ICD_SPEC", year = 2019) icd_showchanges(dat_icd)
#> year_from year_to icd_from icd_to automatic_forward automatic_backward #> 70770 2009 2010 K52.8 K52.30 A #> 70771 2009 2010 K52.8 K52.31 A #> 70772 2009 2010 K52.8 K52.32 A #> 70773 2009 2010 K52.8 K52.38 A #> 70775 2009 2010 K52.9 A09.9 #> change_5 change_4 change_3 change icd3 icd_kapitel #> 70770 FALSE TRUE FALSE TRUE K52 K #> 70771 FALSE TRUE FALSE TRUE K52 K #> 70772 FALSE TRUE FALSE TRUE K52 K #> 70773 FALSE TRUE FALSE TRUE K52 K #> 70775 FALSE FALSE TRUE TRUE A09 A