R/injury_icd10cm_regex.r

injury_icd10cm_regex <- "(?!(^T78|^T8[0-8]))(^S|^T)" 
# diagnosis code beginning with S or T, except T78 and T80-T88
# (?!) is  a negative lookhead . It looks the pattern to its right (^S|^T) and excludes (^T78|^T8[0-8])
injuryepi/injuryepi documentation built on Nov. 13, 2019, 12:13 p.m.