Modified adherence cohort code