Symptoms: anxiety

PH3748 / 8876

OpenSAFELY

Jan 26, 2026

REGISTERING DOI...

OpenCodelists Phenotype
  1. Overview

    Codelist ID
    opensafely/symptoms-anxiety
    Version ID
    7519dbfe
    Coding System
    SNOMED CT codes
    Collections
    OpenCodelistPhenotype Library
    Tags
    No data
  2. Definition

    This codelist was taken from OpenCodelists, created by OpenSAFELY. We recommend viewing this Phenotype on the OpenCodelist website to view the most recent version.

    Code list aiming to identify individuals consulting complaining of anxiety symptoms and with anxiety diagnoses.

    © University of Oxford for the Bennett Institute for Applied Data Science 2025. This work may be copied freely for non-commercial research and study.

  3. Methodology

    Identified from intial search terms outside of OpenCodelists: "anxiety" "anxio" "nueroses" "neurosis" "neurotic" "worry" "worried" "hypervigilan" "angst" "panic" "phobia" "fear" "adjustment" "stress" "nervous" "unease" "terror" terrify" "terrified" "hysteri" "afraid" "apprenhen"

    Clearly irrelevant codes excluded (not reviewed by a second clinician)

    Candidate codelist uploaded to OpenCodelists for review of candidate codes.

    Retained named phobias.

    Retained terms relating to anxiety about specific circumstances (e.g., Anxiety about vomiting in public), as still indicate anxiety.

    Retained terms relating to anxious depression, as still indicate presence of anxiety. Retained terms with anxious and depressive symptoms. However excluded neurotic depression, as implies primary depressive state.

    Excluded terms about counselling for anxiety or anxiolytic drugs, as symptoms may have been resolved by therapy. Excluded terms relating to resolved anxiety, or anxiety screening.

    Excluded terms related postpartum and drug-induced anxiety (e.g., cocaine), as clear cause of symptoms, not likely to be related to covid.

    Retained all "fear of x" codes, as unclear if these represent reasonable fears (e.g., fear of infection with a particular virus following exposure) or unfounded fears related to anxiety (e.g., fear of open spaces).

    Excluded terms related to stress monitoring or anxiety disorder clinic, as not necessarily anxious (symptoms may have resolved).

    Excluded organic anxiety disorders, as related to clear underlying diagnosis.

    Excluded terms specifying 'neurosis or psychosis' as could be due to psychosis.

  4. References

  5. Clinical Codelist

  6. API

    To Export Phenotype Details:

    FormatAPI
    JSON site_root/api/v1/phenotypes/PH3748/version/8876/detail/?format=json
    R Package

    # Download here

    library(ConceptLibraryClient)


    # Connect to API

    client = ConceptLibraryClient::Connection$new(public=TRUE)


    # Get details of Phenotype

    phenotype_details = client$phenotypes$get_detail(
     'PH3748',
     version_id=8876
    )

    Py Package

    # Download here

    from pyconceptlibraryclient import Client


    # Connect to API

    client = Client(public=True)


    # Get details of Phenotype

    phenotype_detail = client.phenotypes.get_detail(
     'PH3748',
     version_id=8876
    )

    To Export Phenotype Code List:

    FormatAPI
    JSON site_root/api/v1/phenotypes/PH3748/version/8876/export/codes/?format=json
    R Package

    # Download here

    library(ConceptLibraryClient)


    # Connect to API

    client = ConceptLibraryClient::Connection$new(public=TRUE)


    # Get codelist of Phenotype

    phenotype_codelist = client$phenotypes$get_codelist(
     'PH3748',
     version_id=8876
    )

    Py Package

    # Download here

    from pyconceptlibraryclient import Client


    # Connect to API

    client = Client(public=True)


    # Get codelist of Phenotype

    phenotype_codelist = client.phenotypes.get_codelist(
     'PH3748',
     version_id=8876
    )

  7. Version History

    Version IDNameOwnerPublish date
    Symptoms: anxiety ieuan.scanlon2026-01-26 23:32
    8875 Symptoms: anxiety ieuan.scanlon2026-01-26 23:32
    8874 Symptoms: anxiety ieuan.scanlon2026-01-26 23:32