Identifying primary-care features associated with complex mental health difficulties
- PMID: 40338879
- PMCID: PMC12061163
- DOI: 10.1371/journal.pone.0322771
Identifying primary-care features associated with complex mental health difficulties
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.
Copyright: © 2025 McInerney et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Conflict of interest statement
The authors have declared that no competing interests exist.
Figures





References
-
- 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...
-
- 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...
-
- 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
-
- Newbigging K, Durcan G, Ince R, Bell A. Filling the chasm. Cent Ment Heal. 2018.
-
- 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...
MeSH terms
LinkOut - more resources
Full Text Sources
Medical