Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 May 8;20(5):e0322771.
doi: 10.1371/journal.pone.0322771. eCollection 2025.

Identifying primary-care features associated with complex mental health difficulties

Affiliations

Identifying primary-care features associated with complex mental health difficulties

Ciarán D McInerney et al. PLoS One. .

Abstract

Aim: The coded prevalence of complex mental health difficulties in electronic health records, such as personality disorder and dysthymia,is much lower than expected from population surveys. We aimed to identify features in primary care records that might be useful in promoting greater recognition of complex mental health difficulties.

Methods and findings: We analysed Connected Bradford, an anonymised primary care database of approximately 1.15M citizens. We used multiple approaches to generate a large set of features representing multi-level collections of patient attributes across time and dimensions of healthcare. Feature sets included antecedent and concurrent problems (psychiatric, social and medical), patterns of prescription and service use and temporal stability of attendance. These were tested individually and in combination. We analysed the relationship between features and diagnostic codes using scaled mutual information. We identified 3,040 records satisfying our definition of complex mental health difficulties. This was 0.3% of the population compared to an expected prevalence of 3-5%. We generated >500,000 features. The most informative feature was count of unique psychiatric diagnoses. Other features were identified, including binary features (e.g., presence or absence of prescription for antipsychotic medication), continuous features (e.g., entropy of non-attendance) and counts of features (e.g., concerning behaviours such as self-harm & substance misuse). Several of these showed odds ratios >=5 or <=0.2 but low positive predictive value. We suggest this is due to the large number of "cases" being uncoded and, thus appearing as "controls".

Conclusion: Complex mental health difficulties are poorly coded. We demonstrated the feasibility of using information theoretic approaches to develop a large set of novel features in electronic health records. While these are currently insufficient for diagnosis, several can act as prompts to consider further diagnostic assessment.

PubMed Disclaimer

Conflict of interest statement

The authors have declared that no competing interests exist.

Figures

Fig 1
Fig 1. Visualisation of groups defined by information within electronic healthcare records.
Fig 2
Fig 2. Examples of the distributions of values for some component features.
Fig 3
Fig 3. Examples of the distributions of values for some feature families.
Fig 4
Fig 4. Scaled mutual information for all informative feature sets in rank order.
Rank is presented in log10 to illustrate how tightly packed the scaled mutual information scores were across orders of magnitude of rank (illustrated by the straight-line fit). A single, outstanding feature showed a scaled mutual information value greater than 8.2%: the count of psychological disorders.
Fig 5
Fig 5. Scaled mutual information for all informative feature sets in rank order.
Rank is presented in log10. A) Rank of component feature sets. B) Rank of family feature sets. C) Rank of feature-family combinations.

References

    1. Parsonage M, Hard E, Rock B. Managing patients with complex needs: Evaluation of the City and Hackney Primary Care Psychotherapy Consultation Service. 2014. Available: http://repository.tavistockandportman.ac.uk/880/1/Managing_patients_comp...
    1. NHS National Collaborating Centre for Mental Health. The Community Mental Health Framework for Adults and Older Adults. Natl Collab Cent Ment Heal. 2019. Available: https://www.england.nhs.uk/wp-content/uploads/2019/09/community-mental-h...
    1. Centre for Mental Health, Royal College of Nursing, The British Association of Social Workers, Royal College of General Practitioners, The British Psychological Society, Anna Freud National Centre for Children and Families, et al.. “Shining lights in dark corners of people’s lives”: The consensus statement for people with complex mental health difficulties who are diagnosed with a personality disorder. 2018. Available: https://www.beh-mht.nhs.uk/downloads/Consensus-Statement.pdf
    1. Newbigging K, Durcan G, Ince R, Bell A. Filling the chasm. Cent Ment Heal. 2018.
    1. Naylor C, Bell A, Baird B, Heller A, Gilburt H. Mental health and primary care networks: understanding the opportunities. The King’s Fund; 2020. Available: https://www.kingsfund.org.uk/publications/mental-health-primary-care-net...