Fig. 2: Temporal subgroups for patient prescriptions.
From: Investigating racial disparities in drug prescriptions for patients with endometriosis

Three example longitudinal records are shown, with prescriptions marked as “x” and a laparoscopic diagnosis of endometriosis marked with a vertical line. As shown in the figure, prescriptions ordered prior to diagnosis fall into subgroup 1 (pre-diagnosis, orange) and prescriptions ordered after diagnosis fall into subgroup 2 (post-diagnosis, blue). Prescriptions from the day of diagnosis are not counted in either subgroup.