A set of 92 codelists associated with three studies: (1) Infections and risk of common mental health disorders: a population-based matched cohort study using linked electronic health records; (2) Infections and risk of severe mental illness: a population-based matched cohort study, and (3) Infections and suicide and self-harm: a population-based matched cohort study.