{
  "abstract": "Objectives: About 30% of individuals with depression treated with gold standard interventions do not respond adequately, often termed ‘difficult-to-treat depression’ (DTD). Despite this, DTD is not systematically tracked in specialist mental healthcare. This project sought to develop an algorithm to ascertain antidepressant treatment episodes from electronic health records (EHRs).\n\nDesign: An algorithm development and retrospective cohort study.\n\nSetting: Using EHR data from a large south London mental healthcare provider, randomly selected and annotated clinical notes were extracted to develop an algorithm capturing temporality of antidepressant treatment courses.\n\nParticipants: In a sample of individuals with diagnosed depressive disorders, at least two different and consecutively recorded antidepressants were identified (n=4557).\n\nPrimary and secondary outcome measures: Using multivariable linear (for continuous variables) and logistic (for categorical variables) regression models, clinical (eg, numbers of recorded psychiatric symptoms and physical comorbidities) and demographic (eg, gender and ethnicity) characteristics were compared according to the number of antidepressants received.\n\nResults: A total of 13 341 episode-level clinical entries were used to define antidepressant treatment episodes. Performance evaluations against manual annotation demonstrated high precision in identifying antidepressant prescription start dates (82%–94%) and good accuracy in detecting episode switching patterns (direct switch: >90%; cross-tapering/co-prescribing: 74%–82%). In the sample of 4557 patients with at least two consecutively prescribed antidepressants, those with higher numbers of recorded antidepressants had a higher number of recorded negative (β range=0.20–0.66, all p<0.05), depressive (β range=0.50–1.55, all p<0.05) and manic symptoms (β range=0.18–0.55, all p<0.05), as well as a greater number of prescribed non-antidepressant psychotropics (OR range=1.24–1.37, all p<0.05).\n\nConclusions: This project developed a novel algorithm identifying antidepressant episodes, predominantly from text records, among patients with depressive disorders. Antidepressant treatment episodes were successfully determined using this algorithm and enabled meaningful differentiation of characteristics associated with different levels of DTD. Wider applicability and generalisability need to be established.",
  "abstract_shown": true,
  "affiliations": [
    "Psychological Medicine, King’s College London, London, UK",
    "South London and Maudsley NHS Foundation Trust, London, UK"
  ],
  "article_type": "research article",
  "arxiv": null,
  "author_total": 3,
  "authors": [
    {
      "affs": [
        0
      ],
      "name": "Ruimin Ma",
      "orcid": "0000-0002-6051-8093"
    },
    {
      "affs": [
        1
      ],
      "name": "Matthew Broadbent"
    },
    {
      "affs": [
        0,
        1
      ],
      "name": "Robert Stewart"
    }
  ],
  "bibtex": "https://research.draconitic.com/paper/7j3wn8pn6qdjv.bib",
  "cited_by": 0,
  "doi": "10.1136/bmjopen-2026-119485",
  "fulltext_url": "https://europepmc.org/articles/PMC13782782",
  "id": "7j3wn8pn6qdjv",
  "issns": [
    "2044-6055",
    "2044-6055"
  ],
  "landing_url": "https://bmjopen.bmj.com/lookup/doi/10.1136/bmjopen-2026-119485",
  "language": "eng",
  "licence": "CC-BY",
  "licence_label": "CC BY",
  "licence_source": "article",
  "licence_url": "https://creativecommons.org/licenses/by/4.0/",
  "metadata_licence": null,
  "native_subjects": [
    [
      "heading",
      "1506"
    ],
    [
      "heading",
      "1712"
    ],
    [
      "heading",
      "Mental Health"
    ],
    [
      "heading",
      "Original Research"
    ]
  ],
  "openalex": null,
  "pdf_url": "https://europepmc.org/articles/PMC13782782?pdf=render",
  "pmcid": "PMC13782782",
  "pmid": "43051634",
  "published": "2026-11-18",
  "publisher": "BMJ",
  "ris": "https://research.draconitic.com/paper/7j3wn8pn6qdjv.ris",
  "sources": [
    {
      "first_seen": "2026-11-18T12:20:51Z",
      "native_id": "10.1136/bmjopen-2026-119485",
      "source": "crossref",
      "url": "https://bmjopen.bmj.com/lookup/doi/10.1136/bmjopen-2026-119485"
    },
    {
      "first_seen": "2026-11-21T15:20:25Z",
      "native_id": "MED:43051634",
      "source": "europepmc",
      "url": "https://europepmc.org/article/MED/43051634"
    },
    {
      "first_seen": "2026-11-23T12:21:38Z",
      "native_id": "PMC13782782",
      "source": "pmc",
      "url": "https://doi.org/10.1136/bmjopen-2026-119485"
    }
  ],
  "subjects": [
    {
      "field": "medicine",
      "origin": "journal-openalex:F27",
      "subfield": "general"
    }
  ],
  "title": "Ascertaining antidepressant treatment episodes from specialist mental healthcare record text fields and applying these data to characterise difficult-to-treat depression: an algorithm development and retrospective cohort study in UK secondary mental healthcare",
  "title_text": "Ascertaining antidepressant treatment episodes from specialist mental healthcare record text fields and applying these data to characterise difficult-to-treat depression: an algorithm development and retrospective cohort study in UK secondary mental healthcare",
  "type": "peer-reviewed",
  "updated_at": "2026-11-23T12:21:38Z",
  "url": "https://research.draconitic.com/paper/7j3wn8pn6qdjv",
  "venue": "BMJ Open",
  "versions": []
}