To derive the DTR, we included gender, age, Charlson co-morbidity index (Charlson et al., 1987), prior exposure to anti-TNF agents, as well as mentions of clinical terms associated with IBD such as bleeding complications extracted from the clinical notes via natural language processing (NLP). Here, TNF is linked to inflammatory bowel disease.