Other Antidepressants DM&D

PH3615 / 8710

OpenSAFELY

Jan 26, 2026

REGISTERING DOI...

OpenCodelists Phenotype
  1. Overview

    Codelist ID
    opensafely/other-antidepressants-dmd
    Version ID
    795977ab
    Coding System
    dm+d 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.

    This code list contains codes from the NHS dictionary of medicines and devices (dm+d) for a collection of antidepressants from the BNF Chapter 040304 known as Other Antidepressants. These medicines are all licensed for the treatment of depression. The following antidepressants from this chapter have been excluded: Flupenthixol, Levomilnacripan, Oxitriptan. See github discussion for further details. Trazodone and Mianserin (both from BNF Chapter 040301) have also been included in this codelist. This codelist does not contain Bupropion, because this is not licensed in the UK for depression.

    © 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

    All BNF codes that begin with 040304 were included (defined as Other antidepressants) except for Flupenthixol, Levomilnacripan and Oxitriptan. Mianserin and Trazodone were also included.

    See github discussion for more details. These BNF codes were then mapped to dm+d using OpenPrescribing methodology.

    For some studies it may be necessary to include other antidepressant codelists.

  4. References

  5. Clinical Codelist

  6. API

    To Export Phenotype Details:

    FormatAPI
    JSON site_root/api/v1/phenotypes/PH3615/version/8710/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(
     'PH3615',
     version_id=8710
    )

    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(
     'PH3615',
     version_id=8710
    )

    To Export Phenotype Code List:

    FormatAPI
    JSON site_root/api/v1/phenotypes/PH3615/version/8710/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(
     'PH3615',
     version_id=8710
    )

    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(
     'PH3615',
     version_id=8710
    )

  7. Version History

    Version IDNameOwnerPublish date
    Other Antidepressants DM&D ieuan.scanlon2026-01-26 23:26