Code lists for
The Networked Data Lab is a Health Foundation research programme bringing together five different partners across the UK - including Public Health Wales, NHS Grampian and CCGs in North West London, Leeds, Liverpool and Wirral. In 2021, we started working on children and young people's mental health using linked health and social care datasets. During this time, we identified the need for common code lists to enable the comparability of results.
Our analysts used code lists to identify users of mental health services in their data, in some cases stratified by condition or type of contact. We performed an initial search of publicly-available code lists, to help our partners identify those that were relevant to their research questions.
The code list library shown here is the result of our initial search. We considered the following mental health conditions or disorders:
- Depression
- Anxiety
- Self harm
- Eating disorders
- Alcohol/substance misuse
- Severe mental illness, which includes schizophrenia spectrum, bipolar affective disorders and psychosis
We are providing this library as a resource to other researchers, but cannot guarantee the validity of all code lists - users will need to make a judgement on whether these are appropriate to their research questions. This library is aimed at an audience already familiar with the use of code lists in health care data. The code lists themselves are hosted on the provider's page, which are linked here.
We considered the following types of codes:
- READ/SNOMED-CT codes for primary care data
- ICD-10 codes for secondary care data
- BNF codes for medicines (British National Formulary)
Our main resources were:
- CALIBER's chronological map of human health (Health Data Research UK - see associated Lancet publication)
- CALIBER's Phenotype Library (Health Data Research UK)
- OpenCodelists
- ClinicalCodes
- ATHENA
- CPRD @ Cambridge group
- Anna Head's mapping of READ codes from CALIBER to SNOMED-CT (University of Liverpool)
- LHSTM DataCompass
- Centre for Disease Control and Prevention
We also referred to code lists directly uploaded with scientific publications.
| Condition or medicine | Setting | Type | Source | Link |
|---|---|---|---|---|
| Depression | Secondary | ICD-10 codes | CALIBER (HDR UK) | π link |
| Depression | Primary | READ codes | CALIBER (HDR UK) | π link |
| Depression | Primary | READ codes | CPRD @ Cambridge | π link |
| Depression | Primary | READ codes | CALIBER (HDR UK), adapted to SNOMED by Anna Head (PhD, University of Liverpool) | π link |
| Talking therapies | Primary | READ codes | LSHTM Data Compass | π link |
| Depression | Primary | SNOMED codes | CALIBER (HDR UK), adapted to SNOMED by Anna Head (PhD, University of Liverpool) | π link |
| Antidepressants (all types) | Medicines | BNF codes | OpenPrescribing | π link |
| Antidepressants (SSRIs) | Medicines | BNF codes | OpenSAFELY via OpenCodelists | π link |
| Antidepressants (all types) | Medicines | READ codes | ClinicalCodes (University of Manchester Institute of Population Health) | π link |
| Antidepressants (all types) | Medicines | READ codes | LSHTM Data Compass | π link |
| Antidepressants (all types) | Medicines | READ codes | CPRD @ Cambridge | π link |
| Antidepressants (all types) | Medicines | SNOMED codes | Centers for Disease Control and Prevention (CDC) | π link |
| Antidepressants (SSRIs) | Medicines | SNOMED codes | Centers for Disease Control and Prevention (CDC) | π link |
| Antidepressants (SSRIs) | Medicines | SNOMED codes | OpenCodelists | π link |
| Condition or medicine | Setting | Type | Source | Link |
|---|---|---|---|---|
| Anxiety | Secondary | ICD-10 codes | CALIBER (HDR UK) | π link |
| Anxiety | Primary | READ codes | University of Bristol | π link |
| Anxiety | Primary | READ codes | CALIBER (HDR UK) | π link |
| Anxiety | Primary | READ codes | CALIBER (HDR UK), adapted to SNOMED by Anna Head (PhD, University of Liverpool) | π link |
| Anxiety (and other neurotic, stress related & somatoform disorders) | Primary | READ codes | CPRD @ Cambridge | π link |
| Anxiety | Primary | SNOMED codes | CALIBER (HDR UK), adapted to SNOMED by Anna Head (PhD, University of Liverpool) | π link |
| Hypnotics and anxiolytics | Medicines | BNF codes | OpenPrescribing | π link |
| Drugs with anxiety as possible indication | Medicines | READ codes | CPRD @ Cambridge | π link |
| Drugs with anxiety as possible indication | Medicines | READ codes | LSHTM Data Compass | π link |
| Drugs with anxiety or depression as possible indication | Medicines | READ codes | LSHTM Data Compass | π link |
| Hypnotics and anxiolytics | Medicines | READ codes | University of Bristol | π link |
| Anxiolytic, sedative, hypnotic or tranquilizer | Medicines | SNOMED codes | Centers for Disease Control and Prevention (CDC) | π link |
| Condition or medicine | Setting | Type | Source | Link |
|---|---|---|---|---|
| Self harm | Secondary | ICD-10 | CDC | π link |
| Self harm, suicidal ideation and suicidal attempt | Secondary | ICD-10 | US Agency for Healthcare Research and Quality (Healthcare Cost and Utilization Project) | π link |
| Self harm | Primary | READ codes | CALIBER | π link |
| Self harm | Primary | READ codes | LSHTM Data Compass | π link |
| Self harm | Primary | SNOMED codes | National Center for Biomedical Ontology | π link |
| Self harm and suicidal behaviour | Primary | SNOMED codes | NHS County Durham and Darlington | π link |
| Suicidal behaviour | Primary | SNOMED codes | National Center for Biomedical Ontology | π link |
| Suicidal ideation | Primary | SNOMED codes | MedGEN (NCBI) | π link |
| Condition or medicine | Setting | Type | Source | Link |
|---|---|---|---|---|
| Eating disorders (anorexia and bulimia) | Secondary | ICD-10 codes | CALIBER (HDR UK) | π link |
| Anorexia | Primary | READ codes | LSHTM Data Compass | π link |
| Eating disorders (anorexia and bulimia) | Primary | READ codes | CPRD @ Cambridge | π link |
| Eating disorders (anorexia and bulimia) | Primary | READ codes | CALIBER (HDR UK) | π link |
| Eating disorders (anorexia, bulimia and referral to specialist service) | Primary | READ codes | ClinicalCodes (University of Manchester Institue of Population Health) | π link |
| Eating disorders (anorexia, bulimia and referral to specialist service) | Primary | READ codes | ClinicalCodes (University of Manchester Institue of Population Health) | π link |
| Eating disorders (anorexia, bulimia and referral to specialist service) | Primary | READ codes | CALIBER (HDR UK), adapted to SNOMED by Anna Head (PhD, University of Liverpool) | π link |
| Eating disorders (anorexia, bulimia and referral to specialist service) | Primary | SNOMED codes | CALIBER (HDR UK), adapted to SNOMED by Anna Head (PhD, University of Liverpool) | π link |
| Condition or medicine | Setting | Type | Source | Link |
|---|---|---|---|---|
| Alcohol Status | Secondary | ICD-10 codes | CDC | π link |
| Alcohol Problems | Secondary | ICD-10 codes | CALIBER | π link |
| Alcohol misuse | Primary | READ codes | CALIBER (HDR UK), adapted to SNOMED by Anna Head (PhD, University of Liverpool) | π link |
| Alcohol Problems | Primary | READ codes | CALIBER | π link |
| Alcohol Status | Primary | READ codes | CALIBER | π link |
| Alcohol Status | Primary | READ codes | ClinicalCodes | π link |
| Alcohol Status | Primary | READ codes | CALIBER | π link |
| Harmful alcohol use | Primary | READ codes | LSHTM Data Compass | π link |
| Alcohol misuse | Primary | SNOMED codes | CALIBER (HDR UK), adapted to SNOMED by Anna Head (PhD, University of Liverpool) | π link |
| Drugs to treat alcoholism | Medicines | BNF codes | LSHTM Data Compass | π link |
| Drugs used for alcohol dependence | Medicines | BNF codes | OpenPrescribing | π link |
| Condition or medicine | Setting | Type | Source | Link |
|---|---|---|---|---|
| Substance misuse | Secondary | ICD-10 codes | Swansea University | π link |
| Other psychoactive substance misuse | Secondary | ICD-10 codes | CALIBER | π link |
| Illicit substance/nonprescribed drug use, Under the care of substance misuse services | Primary | READ codes | NHS England | π link |
| Other psychoactive substance misuse | Primary | READ codes | CALIBER | π link |
| Psychoactive substance misuse | Primary | READ codes | CPRD @ Cambridge | π link |
| Substance misuse | Primary | READ codes | ClinicalCodes (University of Manchester Institue of Population Health) | π link |
| Substance misuse | Primary | READ codes | LSHTM Data Compass | π link |
| Substance misuse | Primary | READ codes | CALIBER (HDR UK), adapted to SNOMED by Anna Head (PhD, University of Liverpool) | π link |
| Substance misuse | Primary | READ codes | Swansea University | π link |
| Illicit substance/nonprescribed drug use, Under the care of substance misuse services | Primary | SNOMED codes | NHS England | π link |
| Substance misuse | Primary | SNOMED codes | CALIBER (HDR UK), adapted to SNOMED by Anna Head (PhD, University of Liverpool) | π link |
| Drugs used for opioid dependence | Medicines | BNF codes | OpenPrescribing | π link |
| Condition or medicine | Setting | Type | Source | Link |
|---|---|---|---|---|
| Bipolar affective disorder and mania | Secondary | ICD-10 codes | CALIBER | π link |
| Obsessive-compulsive disorder | Secondary | ICD-10 codes | CALIBER | π link |
| Personality disorders | Secondary | ICD-10 codes | CALIBER | π link |
| Schizophrenia, schizotypal and delusional disorders | Secondary | ICD-10 codes | CALIBER | π link |
| Severe Mental Illness | Secondary | ICD-10 codes | QCOVID COVID-19 Population Risk Assessment | π link |
| Severe Mental Illness (Schizophrenia, Persistent delusional disorder, Schizoaffective disorder, Bipolar disorder) | Secondary | ICD-10 codes | Norwegian Institute of Public Health | π link |
| Bipolar affective disorder and mania | Primary | READ codes | CALIBER | π link |
| Bipolar affective disorder and mania | Primary | READ codes | CALIBER (HDR UK), adapted to SNOMED by Anna Head (PhD, University of Liverpool) | π link |
| Bipolar disorder | Primary | READ codes | ClinicalCodes (University of Manchester Institue of Population Health) | π link |
| Obsessive-compulsive disorder | Primary | READ codes | CALIBER | π link |
| Personality disorders | Primary | READ codes | CALIBER | π link |
| Personality disorders | Primary | READ codes | CALIBER (HDR UK), adapted to SNOMED by Anna Head (PhD, University of Liverpool) | π link |
| Schizophrenia | Primary | READ codes | CALIBER (HDR UK), adapted to SNOMED by Anna Head (PhD, University of Liverpool) | π link |
| Schizophrenia (and related non-organic psychosis) or bipolar disorder | Primary | READ codes | CPRD @ Cambridge | π link |
| Schizophrenia, schizotypal and delusional disorders | Primary | READ codes | CALIBER | π link |
| Severe Mental Illness | Primary | READ codes | LSHTM Data Compass | π link |
| Severe Mental Illness | Primary | READ codes | University of Manchester, University of York, University of Lancaster | π link |
| Bipolar affective disorder and mania | Primary | SNOMED codes | CALIBER (HDR UK), adapted to SNOMED by Anna Head (PhD, University of Liverpool) | π link |
| Personality disorders | Primary | SNOMED codes | CALIBER (HDR UK), adapted to SNOMED by Anna Head (PhD, University of Liverpool) | π link |
| Schizophrenia | Primary | SNOMED codes | CALIBER (HDR UK), adapted to SNOMED by Anna Head (PhD, University of Liverpool) | π link |
| Severe Mental Illness | Primary | SNOMED codes | OpenCodelists (PRIMIS Covid Vaccination Uptake Reporting) | π link |
| Severe Mental Illness | Primary | SNOMED codes | QCOVID COVID-19 Population Risk Assessment | π link |
| Antipsychotic depot injections | Medicines | BNF codes | OpenPrescribing | π link |
| Antipsychotic drugs | Medicines | BNF codes | OpenPrescribing | π link |
| Drugs used for mania and hypomania | Medicines | BNF codes | OpenPrescribing | π link |
| Mania and hypomania | Medicines | BNF codes | OpenPrescribing | π link |
| Antipsychotic drugs | Medicines | READ codes | ClinicalCodes (University of Manchester Institue of Population Health) | π link |
| Bipolar disorder | Medicines | READ codes | ClinicalCodes (University of Manchester Institue of Population Health) | π link |
| Schizophrenia (and related non-organic psychosis) or bipolar disorder | Medicines | READ codes | CPRD @ Cambridge | π link |
