Distributions of Recorded Pain in Mental Health Records: A Natural Language Processing Based Study ================================================================================================== * Jaya Chaturvedi * Robert Stewart * Mark Ashworth * Angus Roberts ## Abstract **Objective** The objective of this study is to determine demographic and diagnostic distributions of physical pain recorded in the clinical notes of a mental health electronic health records database by utilising natural language processing and to examine the level of overlap in recorded physical pain between primary and secondary care. **Design, Setting and Participants** The data were extracted from an anonymised version of the electronic health records from a large mental community and secondary healthcare provider serving a catchment of 1.3M residents in south London. These included patients under active referral and aged 18+ at the index date of July 1, 2018, and had at least one clinical document (>=30 characters) associated with their record between July 1, 2017 and July 1, 2019. This cohort was compared to linked primary care records from one of the four catchment boroughs. **Outcome** The primary outcome of interest was the presence or absence of recorded physical pain within the clinical notes of the patients. This does not include mental, psychological or metaphorical pain. **Results** A total of 27,211 patients were retrieved based on the extraction criteria. Of these, 52% (14,202) had narrative text containing relevant mentions of physical pain. Patients who were older (OR 1.17, 95% CI 1.15-1.19), female (OR 1.42, 95% CI 1.35-1.49), of Asian (OR 1.30, 95% CI 1.16-1.45) or Black (OR 1.49, 95% CI 1.40-1.59) ethnicities, and living in deprived neighbourhoods (OR 1.64, 95% CI 1.55-1.73) showed higher odds of recorded pain. Patients with an SMI diagnosis were found to be less likely to report pain (OR 0.43, 95% CI 0.41-0.46, p<0.001). When comparing the overlap between primary and secondary care, 17% of the CRIS cohort also had records within LDN, and 31% of these had recorded pain in both records. **Conclusion** The findings of this study show the sociodemographic and diagnostic differences in recorded pain, and have significant implications for the assessment and management of physical pain in patients with mental health disorders. **Strengths and Limitations of this study** * This study utilises natural language processing on clinical notes to access a large sample with information about pain. * This is the first cross-sectional study to summarise and describe the distribution of recorded pain within the clinical notes of mental health records. * The recorded mentions of pain within clinical notes clearly depend on the patient sharing and the clinician recording their experiences. * The findings are not generalisable to the general population since this study only looks at patients receiving mental healthcare within a specific geographic catchment. Keywords * Natural Language Processing * Pain * Mental Health * Electronic Health Records ## Introduction ### Background Rationale Pain and its relationship with mental health are important research topics. Pain has imposed a significant burden on society in terms of medical care costs as well as lost productivity [1]. Pain is multifaceted, with physical, psychological, social, and biological causes and consequences [2]. Mental health disorders also present a considerable and complex public health problem, being a leading cause of disability and accounting for 28% of the national disease burden in the UK [3]. Electronic health records (EHRs) for mental health are a significant source of information for studying the intersection between pain and mental health within those who receive specialist service input. EHRs open the possibility of investigating how pain is recorded and its impact on clinical outcomes. Severe mental illnesses (SMIs) include diagnoses of schizophrenia spectrum disorder, bipolar disorder, or severe major depressive disorder [4], where functional and occupational activities are severely impaired due to associated debilitating psychological problems [5]. While several studies have looked at the relationship between pain and schizophrenia and bipolar disorders [6–9] and at other mental illnesses such as depression [1,10–13], the complex and potentially bidirectional nature of this relationship requires further understanding. Analysis of secondary data sources, such as EHR databases, might help by providing a fuller picture of the recorded clinical presentation of this group of patients; however, a prerequisite is that pain is adequately represented in derived data. Demographic features such as age, gender and ethnicity can influence pain perception and experiences. Pain affects twice as many persons over the age of 60 as it does younger individuals [14]. While pain is not a natural feature of the ageing process, many health conditions causing pain become more common with increasing age. Nonetheless, older patients often believe pain to be a normal aspect of ageing and might be hesitant when reporting it [14]. There have also been variations found in the reported perception of pain by female and male patients, with female patients reporting experiencing more pain than males [15,16]. Research has also shown disparities in pain perception across different ethnicities, with individuals of Black (African) ethnicity reporting greater pain than White counterparts [17]. Socioeconomic status (SES) plays a role in health and overall well-being, with deprivation associated with unfavourable health outcomes and increased mortality rates [18]. Patients with SMI already experience higher mortality rates than the general population, and this discrepancy is exacerbated by socioeconomic deprivation, primarily due to unequal access to good quality physical healthcare services [19–22]. Furthermore, patients with SMI continue to experience a decline in their SES over time, compounding its impact [23]. Most patient information is recorded in unstructured clinical narratives within EHR databases [24], and pain is likely to be no different, with few, if any, structured checklists ascertaining its presence in routine clinical care. Natural language processing (NLP), a computational approach to understanding and analysing human language, is therefore potentially useful for extracting such pain information. NLP has been applied extensively to EHR data, including studies of SMI, such as antipsychotic polypharmacy in mental health care [25], multimorbidity in individuals with schizophrenia and bipolar disorders [26], and extracting symptoms of SMI [27]. In addition to secondary care data, it is also useful to consider the recording of pain in primary care data. Within the UK, primary care is generally the first point of contact for patients [28]. Exploring the overlap of recorded pain between primary and secondary care could, therefore, provide a more comprehensive view of the patient’s pain experiences, and any discrepancies could highlight gaps in care and communication. ### Objectives The objective of this study is to describe the distributions of recorded pain amongst mental health service users according to demographic factors such as age, gender and ethnicity, as well as neighbourhood deprivation levels and mental health diagnoses. This was achieved by examining recorded pain through the means of an NLP application within the clinical text of a mental health EHR database, and further evaluating this by measuring the overlap between pain recorded in secondary and primary health care, enabled through data linkage between the two. ## Methods ### Reporting We use the RECORD [29] guidelines and checklist, an extension of the STROBE [30] guidelines, for reporting the results of this study. ### Setting Data on recorded pain were obtained from the clinical text of a mental health EHR database, the Clinical Record Interactive Search (CRIS) resource. This contains a de-identified version of EHR data from The South London and Maudsley NHS Foundation Trust (SLaM), one of Europe’s largest mental healthcare organisations [31], which serves a geographic catchment of around 1.3 million residents in four south London boroughs (Croydon, Lambeth, Lewisham, Southwark). CRIS contains about 30 million free text documents, averaging 90 documents per patient [24]. Data were also obtained from a primary care database called Lambeth DataNet (LDN) [32], which accesses all GP records from general practices based in the London borough of Lambeth. Data linkages (at the patient level) are already in place between CRIS and LDN [33]. #### Ethical Approval CRIS (as well as its associated linkages) has received ethical approval as a data resource for secondary analysis from the Oxford C Research Ethics Committee (reference 23/SC/0257). A patient-led oversight committee (detailed in [34]) reviews and approves research projects that use the CRIS database. For service users, an opt-out system is in place and is advertised in all promotional materials and campaigns. Only authorised individuals can access this data from within a secure firewall. The CRIS project approval references for this work are 21-021 and 23-003. LDN approval was obtained as part of an existing CRIS project (project number 23-124) which included access to linked data from LDN (Caldicott Guardian approval, 15/9/21). This CRIS-LDN project aimed to examine the profile of patients with mental illnesses and chronic/persistent pain and compare them to controls from LDN who had chronic/persistent pain only. #### Patient and Public Involvement Patient and public involvement (PPI) in research is an active collaboration between researchers and members of the public, where the latter actively participate in contributing to the research [35]. A PPI group with lived experiences of SMI and chronic pain were consulted as part of this research. The nature of the data available was described to the group, and they were asked about their priorities regarding what research questions they would like answered. In response to this, the group was unanimously interested in further study of the differences in pain experiences based on demographics and diagnoses, and this was the main motivation for the objective of the study described here. ### Participants A cohort of patients was extracted from the CRIS database comprising those who were active (i.e., under an accepted referral) and aged 18+ on the index date of July 1, 2018, and whose record contained at least one document (>= 30 characters) within a window of July 1, 2017 to July 1, 2019. LDN extraction followed similar criteria for patients who were active on the index date, aged 18+, and contained pain diagnoses or medications from July 1, 2017 to July 1, 2019. Free-text information is unavailable within LDN, so no document criteria were required. ### Variables #### Demographics Age, gender, and ethnicity variables were extracted from structured tables within the CRIS database. Individuals with missing ethnicity values were retained as a separate category (Not stated/known). #### Diagnosis The primary diagnosis recorded closest to the index date of July 1, 2018, was extracted from the structured tables within the CRIS database. These are coded using ICD-10 [36]. The diagnosis codes were categorised as SMI (severe mental illnesses) and non-SMI, where SMI includes ICD-10 codes of F20-29 and F30-33. #### Deprivation The Index of Multiple Deprivation (IMD) decile measures from 2019 [37] were extracted for information on neighbourhood deprivation for each patient, based on their address at the time of the index date aggregated by Lower Super Output Area (LSOA) - a standard national administrative unit containing an average 1500 residents. National Census data are used to calculate IMD scores for each LSOA. A lower IMD decile indicates higher deprivation levels. Individuals with missing IMD scores were retained in a separate category. #### Recorded Pain Pain-related keywords generated from a lexicon of pain terms [38] were used to identify patients in the cohort who had mentions of physical pain recorded in their clinical notes within the predetermined window. An NLP application was used on the documents of these patients. The application classified sentences within the document as relevant or not, where relevant refers to a mention of physical pain affecting the patient, and not relevant refers to no or negated mentions, hypothetical mentions, and metaphorical mentions of pain. Only relevant mentions were used in the results reported here. The application has been described in detail in [39]. As with all other UK research based on access to anonymised primary care records, LDN does not allow access to any free text clinical notes. For this reason, pain information can only be extracted from the structured fields of the records. Read codes [40] were used to identify patients who had a pain diagnosis or were on any pain medications and treatments: 1. Pain medications code list - developed as part of a project described in [41], which focused on analgesics (obtained from dm+d (a dictionary of medicines and devices [42]) used in the treatment of 35 long-term conditions. These 35 conditions were obtained from [43], a cross-sectional study on multimorbidities in patients registered with 314 medical practices in Scotland as of March 2007. 2. Pain diagnosis and treatments code list - developed as part of a collaboration project with Outcomes Based Healthcare (OBH), an organisation that provides a platform for the study of population health outcomes [44], with the research described in [45]. While these codes were developed for chronic pain, they are generic enough to be used for this research. These code lists are available on GitHub1. ##### Anatomy Related to Recorded Pain Another NLP application was developed for identifying anatomy mentioned in relation to pain. This was a classifier that generated a binary output - “mentioned” or “not mentioned”. This application was run on sentences labelled as relevant by the pain application. Once the sentences that contained mentions of body parts were identified, they were run through MedCATTrainer [46], which used named entity recognition (NER), a type of NLP task to label entities within the text to identify the specific body parts mentioned within the text. The purpose of using MedCATTrainer was that it linked the identified body parts to unique identification numbers (SCTID) from SNOMED CT, a terminology of clinical terms. These SCTIDs were used to aggregate the mentioned body parts, for ease of analysis. For example, foot, calf, and knee mentions would be aggregated under “lower limb”. ##### Overlap between CRIS and LDN To examine the overlap across primary (LDN) and secondary (CRIS) care, the patient IDs from the CRIS cohort (N=27,211) were searched for matching records within the LDN database over the same window of July 1, 2017 to July 1, 2019. Variables were generated indicating the presence of the patients within LDN, along with variables indicating the presence of any codes for pain medication, diagnosis or treatment based on the predefined lists described above. This allowed the identification of patients with documented pain experiences in both their mental health and primary care records for the aligned time period. The cross-referencing process enabled the comparison of recorded pain between the two systems at the patient level. ### Descriptive Statistics All analysis was conducted using STATA v15.1 and the Python programming language (version 3.10.0). Descriptive statistics were obtained for demographic, deprivation and diagnosis features and compared between the two groups - patients who had recorded pain (class 1) and those who did not (class 0) - within their clinical notes. Chi-squared tests and logistic regression were conducted between the two classes to obtain adjusted odds ratios. Frequencies of body parts affected by pain and the overlap of recorded pain experiences between CRIS and LDN were also reported. ## Results ### Data Extraction Based on the extraction criteria, 27,211 patients were represented. Amongst these patients, 18,188 had pain keywords mentioned within their documents. These documents were run through the NLP application to label them as relevant to pain (class 1) or not (class 0), resulting in 14,202 patients who had relevant mentions of pain within their clinical notes (Figure 1). ![Figure 1.](http://medrxiv.org/http://medrxiv.stage.highwire.org/content/medrxiv/early/2023/09/15/2023.09.15.23295064/F1.medium.gif) [Figure 1.](http://medrxiv.org/content/early/2023/09/15/2023.09.15.23295064/F1) Figure 1. Data Extraction ### Cohort Characteristics Amongst the cohort of 27,211 patients, the mean age of the cohort was 44 (Inter-quartile range 29-55, SD 17.5), with 50.3% female and 48.2% of White ethnicity. The majority of the cohort (72.2%) lived in more deprived areas (IMD score <=5), and 67.0% received a non-SMI diagnosis. 66.8% of the patients (18,188 patients and 174,167 mentions within documents) contained pain keywords within their documents, and 52.1% of the cohort (14,202 patients) contained relevant mentions of pain in their documents. ### Pain Mentions Records of 52.1% of the patients within the cohort contained relevant mentions of pain. Differences between the patients who showed recorded pain (class 1) in their clinical notes and those who didn’t (class 0) are shown in Table 1. Class 0 includes patients who did not have any pain mentions in their documents, as well as patients whose pain mentions were classified as not relevant. Patients within class 1 had an average of 10 pain mentions within their documents. View this table: [Table 1.](http://medrxiv.org/content/early/2023/09/15/2023.09.15.23295064/T1) Table 1. Distributions between the two classes - class 0 (no recorded pain) and class 1 (recorded pain) Demographic variations emerged between those with/without recorded pain in the cohort, as shown in Table 1. The mean age was higher in patients with recorded pain at 46 (SD=17) compared to 41 (SD=17) for the remainder. Patients with recorded pain were more likely to be female and had a higher representation across all ethnic minorities. Additionally, patients with documented pain experiences were more likely to live in higher deprivation neighbourhoods. Table 2 presents demographic, deprivation and diagnostic associations with recorded pain obtained through logistic regressions (unadjusted and adjusted for different factors as detailed below). View this table: [Table 2.](http://medrxiv.org/content/early/2023/09/15/2023.09.15.23295064/T2) Table 2. Logistic Regression findings for variables reflecting differences in class 0 (no recorded pain) and class 1 (recorded pain) (N = 27,211) Values are given as odds ratio (95% CI), and * indicates significance at *p* < 0.001 Model 1 contained the demographic variables only [age, gender and ethnicity]. Model 2 contained the variables from Model 1, plus the variable for deprivation (IMD Decile]. Model 3 contained the variables from Model 2 plus the diagnosis variable. Model 4 contains the ethnicity and deprivation variables alone. Unadjusted odds ratios revealed patients with documented pain experiences were more likely to be older (OR 1.17, 95% CI 1.15-1.19, p<0.001), female (OR 1.42, 95% CI 1.35-1.49, p<0.001), of Asian (OR 1.30 in relation to a White reference group, 95% CI 1.16-1.45, p<0.001) or Black (OR 1.49, 95% CI 1.40-1.59, p<0.001) ethnicities, and living in deprived neighbourhoods (OR 1.64, 95% CI 1.55-1.73, p<0.001) when compared to the remainder of the sample. In a model containing all demographic variables (Model 1), the odds ratios were strengthened for all ethnic minority groups. Additional adjustment for neighbourhood deprivation (Model 2) resulted in a further strengthening of the odds ratio for females. In the model also adjusted for diagnoses (Model 3), odds ratios became stronger for females. Patients with SMI had lower odds of documented pain (OR 0.43, 95% CI 0.41-0.46, p<0.001) than non-SMI patients, with the odds ratio slightly weakening when adjusted for demographics, deprivation and diagnosis (Model 3). A supplementary model (Model 4) including both ethnicity and deprivation as covariates showed independent increased odds for Asian and Black patients and those in more deprived neighbourhoods. ### Anatomy Distributions Additional descriptive data were generated on the nature of the pain reported. Amongst the 14,202 patients with any recorded pain, there were 174,167 mentions of pain within the documents. Of these, 7,555 (53%) patients included 40,418 mentions of the anatomy associated with the pain. Of these 53%, each patient had an average of 5 body parts mentioned in the context of pain. The most common body part affected by pain, as per the recorded mentions, was lower limbs, which accounted for 20% of all mentions where anatomy could be ascertained (Table 3). View this table: [Table 3.](http://medrxiv.org/content/early/2023/09/15/2023.09.15.23295064/T3) Table 3. Body parts affected (at mention level) ### Overlap with Primary Care When comparing secondary care CRIS records with those of primary care from LDN, among the 27,211 patients of the CRIS cohort, 4,822 patients (17%) also had records in LDN. Amongst these patients who had records in both CRIS and LDN, 1,507 (31%) patients were identified as having some recorded instance of pain in both their records, while 687 (14%) patients showed recorded pain only in LDN (primary care). Among the 27,211 patients within CRIS, 12,695 (46%) had recorded pain only within CRIS (mental health care), as seen in Figure 2. ![Figure 2.](http://medrxiv.org/http://medrxiv.stage.highwire.org/content/medrxiv/early/2023/09/15/2023.09.15.23295064/F2.medium.gif) [Figure 2.](http://medrxiv.org/content/early/2023/09/15/2023.09.15.23295064/F2) Figure 2. Overlap of recorded pain in CRIS and LDN ## Discussion This study investigated the differences observed in recorded pain mentions within the clinical notes of mental health records. The results reflect current literature findings that pain is a common issue among patients with mental health disorders. In a cohort of 27,211 patients, 18,188 (67%) patients contained pain-related keywords in their text, and 14,202 (52%) patients had relevant pain mentions, i.e., the mention indicated physical pain affecting the patient in question. Disparities in recorded pain mentions were found across genders, with females being over-represented. This is consistent with other research that indicates gender disparities in pain experiences [16,48,49]. Furthermore, while patients with known ethnicities were mostly over-represented in the cohort of relevant pain mentions (in relation to those with unknown ethnicity), most noticeable were the Black, Asian and other ethnic groups. This aligns with research around the undertreatment of patients within certain ethnic minority groups [50] and highlights the need for a comprehensive exploration of pain experiences across diverse populations. Moreover, the study’s findings are also consistent with studies that indicate the impact of deprivation on health outcomes [18], as people living in more deprived areas (IMD decile <= 5) were more frequently recorded with pain. When comparing the overlap of patients between primary and secondary care, it was found that 17% of the patients within the CRIS cohort also had records within LDN. Amongst these patients, 31% had recorded pain instances in both records. While this overlap between primary and secondary care seems low, it is important to bear in mind that Lambeth only represents 22% of the catchment covered by CRIS [47]. Patients present in CRIS but not in LDN could include patients who have recorded instances of pain within the free-text clinical notes in LDN and might have been missed in this study since we do not have access to this text. Furthermore, this study did not differentiate between acute and chronic pain mentions and focused on extracting mentions of physical pain of any duration. As a result, the higher occurrence of pain mentioned within CRIS can be partially attributed to the documentation of such acute or short-lived pain episodes. Conversely, the GP records within LDN likely focus on recording persistent and chronic pain experiences. This disparity in recording pain should be considered when interpreting the findings of this study. Looking specifically at chronic pain instances within the CRIS notes may improve the comparability. However, the temporal information required to determine pain chronicity from clinical notes is a particular challenge and can be difficult to extract reliably. Future work can attempt to differentiate acute and chronic pain through temporal or contextual information, which could provide richer insight. However, the current broad inclusion of pain provides wider coverage for this initial exploration of pain mentioned within clinical notes. A strength of this study is the size of the data set available and the access to information about pain from the clinical text. To the best of our knowledge, this is potentially the first cross-sectional study to summarise and describe the distribution of recorded pain derived from routine mental health records. While the cohort data extraction did not apply any filters on demographics, aiming for broad representativeness, other systemic biases related to access to healthcare resources may still exist. Factors like deprivation level and ethnicity can influence the utilisation of services and, therefore, documentation within health records, often stemming from perceived barriers to access. However, by not restricting cohort selection on demographic factors, this study intended to capture a diverse patient population receiving care across the South London boroughs. A limitation of this study is that the recorded mentions of pain within clinical notes depend on the clinician recording them. The actual occurrences of pain experiences could remain unaccounted for if they weren’t recorded by the clinicians or were not shared with the clinicians, especially for patients with severe mental illnesses who might be completely or partially nonverbal. While the NLP application achieved good performance metrics during its development and evaluation, it is not impervious to imperfections. Instances of pain experiences might have been overlooked if they were not included as examples during the training of the application. The scope of this study is limited to the examination of mental health records from an EHR database in South London. Given the absence of a comparative cohort of patients experiencing pain without any mental health disorders, the findings of this study are not generalisable to the overall population. However, they might be relevant and generalisable to some extent to other populations of patients with mental health disorders. It is essential to acknowledge the potential influence of gender and ethnicity on the reporting of pain experiences, particularly if females and minority ethnicities (due to language barriers or other reasons) are less likely to self-report their pain experiences [50,52,53]. Since the focus of this study has been on a mental health EHR database, the clinical care within this setting is focused on mental health issues reported by the patients. Consequently, as much importance might not be given to the investigation and reporting of physical health conditions such as pain. This study cannot determine a cause-and-effect relationship or directionality between pain and mental illnesses. Despite this, the study has highlighted existing disparities in recorded pain experiences and brings to attention the need for further research to better understand and address them at the point of care. ## Conclusion The outcomes of this study have significant implications for the assessment and management of pain amongst patients with mental health disorders and highlight the importance of utilising NLP methods on EHR databases for research purposes. Notably, these findings reiterate the recommendations set forth by Mental Health America [54], advocating the need for proactive initiation of conversations around mental health and pain with patients. Relying solely on patients to self-report symptoms could potentially lead to worse outcomes, especially since the stigma surrounding pain and mental health conditions may prevent patients from seeking the necessary treatment. Thus, early and proactive interventions could go a long way towards improved long-term outcomes. Unfortunately, there still exists a perceived lack of credibility and empathy towards patients living with pain [55], particularly when compounded by co-existent mental illnesses. This was one of the main points shared by the PPI group consulted as part of this study. More research in this area can help towards these issues and provide safer and equitable access to good-quality pain management. While these findings represent a step forward, they are only one side of the story. Combining these findings with patient-reported insights could offer a more comprehensive understanding of pain experiences within this cohort. However, achieving this is a challenging task due to the lack of such data and the inability to link patient-reported experiences to their health records. Further research is needed to better understand the relationship between pain and mental health and to develop more effective interventions to manage pain in this population. ## Supporting information RECORD checklist [[supplements/295064_file05.pdf]](pending:yes) ## Data Availability Statement Data are owned by a third party, Maudsley Biomedical Research Centre (BRC) Clinical Records Interactive Search (CRIS) tool, which provides access to anonymised data derived from SLaM electronic medical records. These data can be accessed by permitted individuals from within a secure firewall (i.e. the data cannot be sent elsewhere) in the same manner as the authors. For more information, please contact cris.administrator{at}slam.nhs.uk. Any STATA and Python code used in this project will be available on GitHub2. ## Author Contributions The idea was conceived by JC, AR, and RS. JC conducted the analyses and drafted the manuscript. MA provided insights on LDN data. AR and RS provided guidance in the design and interpretation of results. All authors commented on drafts of the manuscript and approved the final version. ## Funding and Acknowledgements AR is funded by Health Data Research UK, an initiative funded by UK Research and Innovation, Department of Health and Social Care (England) and the devolved administrations, and leading medical research charities. RS is part-funded by i) the National Institute for Health Research (NIHR) Biomedical Research Centre at South London and Maudsley NHS Foundation Trust and King’s College London; ii) the National Institute for Health Research (NIHR) Applied Research Collaboration South London (NIHR ARC South London) at King’s College Hospital NHS Foundation Trust; iii) the DATAMIND HDR UK Mental Health Data Hub (MRC grant MR/W014386); iv) the UK Prevention Research Partnership (Violence, Health and Society; MR-VO49879/1), an initiative funded by UK Research and Innovation Councils, the Department of Health and Social Care (England) and the UK devolved administrations, and leading health research charities. JC is supported by the KCL-funded Centre for Doctoral Training (CDT) in Data-Driven Health. The funders were not involved in the study design, collection, analysis, interpretation of data, the writing of this article or the decision to submit it for publication. RS declared research support received in the last 36 months from Janssen, GSK and Takeda. All other authors declare no other competing interests. This paper represents independent research part-funded by the National Institute for Health Research (NIHR) Biomedical Research Centre at South London and Maudsley NHS Foundation Trust and King’s College London. The views expressed are those of the authors and not necessarily those of the NHS, the NIHR or the Department of Health and Social Care. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript. This work uses data provided by patients and collected by the NHS as part of their care and support. An application for access to the Clinical Record Interactive Search (CRIS) database for this project was submitted and approved by the CRIS Oversight Committee. The authors would like to acknowledge Dr Ruimin Ma for her help in obtaining the LDN codes. ## Footnotes * 1 [https://github.com/jayachaturvedi/pain\_in\_mental\_health](https://github.com/jayachaturvedi/pain_in_mental_health) * 2 [https://github.com/jayachaturvedi/pain\_in\_mental\_health](https://github.com/jayachaturvedi/pain_in_mental_health) * Received September 15, 2023. * Revision received September 15, 2023. * Accepted September 15, 2023. * © 2023, Posted by Cold Spring Harbor Laboratory This pre-print is available under a Creative Commons License (Attribution-NonCommercial-NoDerivs 4.0 International), CC BY-NC-ND 4.0, as described at [http://creativecommons.org/licenses/by-nc-nd/4.0/](http://creativecommons.org/licenses/by-nc-nd/4.0/) ## Bibliography 1. Rayner L, Hotopf M, Petkova H, et al. Depression in patients with chronic pain attending a specialised pain treatment centre: prevalence and impact on health care costs. Pain 2016; 157:1472–9. doi:10.1097/j.pain.0000000000000542 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1097/j.pain.0000000000000542&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=http://www.n&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F09%2F15%2F2023.09.15.23295064.atom) 2. Merlin JS, Zinski A, Norton WE, et al. A conceptual framework for understanding chronic pain in patients with HIV. Pain Pract 2014; 14:207–16. doi:10.1111/papr.12052 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1111/papr.12052&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=23551857&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F09%2F15%2F2023.09.15.23295064.atom) 3. Bridges S. Chapter 2: Mental health problem. In: Health Survey. 2014. 4. Abplanalp SJ, Mueser KT, Fulford D. The role of physical pain in global functioning of people with serious mental illness. Schizophr Res 2020; 222:423–8. doi:10.1016/j.schres.2020.03.062 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1016/j.schres.2020.03.062&link_type=DOI) 5. Public Health England. Severe mental illness (SMI) and physical health inequalities: briefing. Research and analysis. 2018.[https://www.gov.uk/government/publications/severe-mental-illness-smi-physical-health-inequalities/severe-mental-illness-and-physical-health-inequalities-briefing#:~:text=The%20phrase%20severe%20mental%20illness,an%20SMI%20%5Bfootnote%201%5D](https://www.gov.uk/government/publications/severe-mental-illness-smi-physical-health-inequalities/severe-mental-illness-and-physical-health-inequalities-briefing#:~:text=The%20phrase%20severe%20mental%20illness,an%20SMI%20%5Bfootnote%201%5D). (accessed 23 Jun2023). 6. Stubbs B, Mitchell AJ, De Hert M, et al. The prevalence and moderators of clinical pain in people with schizophrenia: a systematic review and large scale meta-analysis. Schizophr Res 2014; 160:1–8. doi:10.1016/j.schres.2014.10.017 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1016/j.schres.2014.10.017&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=25458569&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F09%2F15%2F2023.09.15.23295064.atom) 7. Bonnot O, Anderson GM, Cohen D, et al. Are patients with schizophrenia insensitive to pain? A reconsideration of the question. Clin J Pain 2009; 25:244–52. doi:10.1097/AJP.0b013e318192be97 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1097/AJP.0b013e318192be97&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=19333176&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F09%2F15%2F2023.09.15.23295064.atom) [Web of Science](http://medrxiv.org/lookup/external-ref?access_num=000263626500011&link_type=ISI) 8. Birgenheir DG, Ilgen MA, Bohnert ASB, et al. Pain conditions among veterans with schizophrenia or bipolar disorder. Gen Hosp Psychiatry 2013; 35:480–4. doi:10.1016/j.genhosppsych.2013.03.019 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1016/j.genhosppsych.2013.03.019&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=http://www.n&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F09%2F15%2F2023.09.15.23295064.atom) 9. Potvin S, Marchand S. Hypoalgesia in schizophrenia is independent of antipsychotic drugs: a systematic quantitative review of experimental studies. Pain 2008; 138:70–8. doi:10.1016/j.pain.2007.11.007 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1016/j.pain.2007.11.007&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=18160219&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F09%2F15%2F2023.09.15.23295064.atom) [Web of Science](http://medrxiv.org/lookup/external-ref?access_num=000258746100011&link_type=ISI) 10. IsHak WW, Wen RY, Naghdechi L, et al. Pain and depression: A systematic review. Harv Rev Psychiatry 2018; 26:352–63. doi:10.1097/HRP.0000000000000198 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1097/hrp.0000000000000198&link_type=DOI) 11. Bair MJ, Robinson RL, Katon W, et al. Depression and pain comorbidity: a literature review. Arch Intern Med 2003; 163:2433–45. doi:10.1001/archinte.163.20.2433 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1001/archinte.163.20.2433&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=14609780&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F09%2F15%2F2023.09.15.23295064.atom) [Web of Science](http://medrxiv.org/lookup/external-ref?access_num=000186431000008&link_type=ISI) 12. Blumer D, Heilbronn M. Chronic pain as a variant of depressive disease: the pain-prone disorder. J Nerv Ment Dis 1982; 170:381–406. doi:10.1097/00005053-198207000-00001 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1097/00005053-198207000-00001&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=7086394&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F09%2F15%2F2023.09.15.23295064.atom) [Web of Science](http://medrxiv.org/lookup/external-ref?access_num=A1982NY90200001&link_type=ISI) 13. Thompson T, Correll CU, Gallop K, et al. Is Pain Perception Altered in People With Depression? A Systematic Review and Meta-Analysis of Experimental Pain Research. J Pain 2016; 17:1257–72. doi:10.1016/j.jpain.2016.08.007 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1016/j.jpain.2016.08.007&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=27589910&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F09%2F15%2F2023.09.15.23295064.atom) 14. Noroozian M, Raeesi S, Hashemi R, et al. Pain: the neglect issue in old people’s life. Open Access Maced J Med Sci 2018; 6:1773–8. doi:10.3889/oamjms.2018.335 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.3889/oamjms.2018.335&link_type=DOI) 15. Fillingim RB. Sex, gender, and pain. In: Principles of Gender-Specific Medicine. Elsevier 2017. 481–96. doi:10.1016/B978-0-12-803506-1.00038-3 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1016/B978-0-12-803506-1.00038-3&link_type=DOI) 16. Vallerand AH, Polomano RC. The relationship of gender to pain. Pain Manag Nurs 2000; 1:8–15. doi:10.1053/jpmn.2000.9759 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1053/jpmn.2000.9759&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=11710147&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F09%2F15%2F2023.09.15.23295064.atom) 17. Campbell CM, Edwards RR. Ethnic differences in pain and pain management. Pain Manag 2012; 2:219–30. doi:10.2217/pmt.12.7 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.2217/pmt.12.7&link_type=DOI) 18. Martin JL, McLean G, Park J, et al. Impact of socioeconomic deprivation on rate and cause of death in severe mental illness. BMC Psychiatry 2014; 14:261. doi:10.1186/s12888-014-0261-4 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1186/s12888-014-0261-4&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=25227899&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F09%2F15%2F2023.09.15.23295064.atom) 19. Lambert TJR, Newcomer JW. Are the cardiometabolic complications of schizophrenia still neglected? Barriers to care. Med J Aust 2009; 190:S39–42. doi:10.5694/j.1326-5377.2009.tb02374.x [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.5694/j.1326-5377.2009.tb02374.x&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=19220173&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F09%2F15%2F2023.09.15.23295064.atom) [Web of Science](http://medrxiv.org/lookup/external-ref?access_num=000264942700010&link_type=ISI) 20. DE Hert M, Correll CU, Bobes J, et al. Physical illness in patients with severe mental disorders. I. Prevalence, impact of medications and disparities in health care. World Psychiatry 2011; 10:52–77. doi:10.1002/j.2051-5545.2011.tb00014.x [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1002/j.2051-5545.2011.tb00014.x&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=21379357&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F09%2F15%2F2023.09.15.23295064.atom) [Web of Science](http://medrxiv.org/lookup/external-ref?access_num=000287723400014&link_type=ISI) 21. Frayne SM, Halanych JH, Miller DR, et al. Disparities in diabetes care: impact of mental illness. Arch Intern Med 2005; 165:2631–8. doi:10.1001/archinte.165.22.2631 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1001/archinte.165.22.2631&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=16344421&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F09%2F15%2F2023.09.15.23295064.atom) [Web of Science](http://medrxiv.org/lookup/external-ref?access_num=000233883800015&link_type=ISI) 22. Laursen TM, Munk-Olsen T, Agerbo E, et al. Somatic hospital contacts, invasive cardiac procedures, and mortality from heart disease in patients with severe mental disorder. Arch Gen Psychiatry 2009; 66:713–20. doi:10.1001/archgenpsychiatry.2009.61 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1001/archgenpsychiatry.2009.61&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=19581562&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F09%2F15%2F2023.09.15.23295064.atom) [Web of Science](http://medrxiv.org/lookup/external-ref?access_num=000267720200005&link_type=ISI) 23. Aro S, Aro H, Keskimäki I. Socio-economic mobility among patients with schizophrenia or major affective disorder. A 17-year retrospective follow-up. Br J Psychiatry 1995; 166:759–67. doi:10.1192/bjp.166.6.759 [Abstract/FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6MTA6ImJqcHJjcHN5Y2giO3M6NToicmVzaWQiO3M6OToiMTY2LzYvNzU5IjtzOjQ6ImF0b20iO3M6NTA6Ii9tZWRyeGl2L2Vhcmx5LzIwMjMvMDkvMTUvMjAyMy4wOS4xNS4yMzI5NTA2NC5hdG9tIjt9czo4OiJmcmFnbWVudCI7czowOiIiO30=) 24. Velupillai S, Suominen H, Liakata M, et al. Using clinical Natural Language Processing for health outcomes research: Overview and actionable suggestions for future advances. J Biomed Inform 2018; 88:11–9. doi:10.1016/j.jbi.2018.10.005 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1016/j.jbi.2018.10.005&link_type=DOI) 25. Kadra G, Stewart R, Shetty H, et al. Long-term antipsychotic polypharmacy prescribing in secondary mental health care and the risk of mortality. Acta Psychiatr Scand 2018; 138:123–32. doi:10.1111/acps.12906 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1111/acps.12906&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=http://www.n&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F09%2F15%2F2023.09.15.23295064.atom) 26. Bendayan R, Kraljevic Z, Shaari S, et al. Mapping multimorbidity in individuals with schizophrenia and bipolar disorders: evidence from the South London and Maudsley NHS Foundation Trust Biomedical Research Centre (SLAM BRC) case register. BMJ Open 2022; 12:e054414. doi:10.1136/bmjopen-2021-054414 [Abstract/FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6NzoiYm1qb3BlbiI7czo1OiJyZXNpZCI7czoxMjoiMTIvMS9lMDU0NDE0IjtzOjQ6ImF0b20iO3M6NTA6Ii9tZWRyeGl2L2Vhcmx5LzIwMjMvMDkvMTUvMjAyMy4wOS4xNS4yMzI5NTA2NC5hdG9tIjt9czo4OiJmcmFnbWVudCI7czowOiIiO30=) 27. Jackson RG, Patel R, Jayatilleke N, et al. Natural language processing to extract symptoms of severe mental illness from clinical text: the Clinical Record Interactive Search Comprehensive Data Extraction (CRIS-CODE) project. BMJ Open 2017; 7:e012012. doi:10.1136/bmjopen-2016-012012 [Abstract/FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6NzoiYm1qb3BlbiI7czo1OiJyZXNpZCI7czoxMToiNy8xL2UwMTIwMTIiO3M6NDoiYXRvbSI7czo1MDoiL21lZHJ4aXYvZWFybHkvMjAyMy8wOS8xNS8yMDIzLjA5LjE1LjIzMjk1MDY0LmF0b20iO31zOjg6ImZyYWdtZW50IjtzOjA6IiI7fQ==) 28. Sampson R, Cooper J, Barbour R, et al. Patients’ perspectives on the medical primarysecondary care interface: systematic review and synthesis of qualitative research. BMJ Open 2015; 5:e008708. doi:10.1136/bmjopen-2015-008708 [Abstract/FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6NzoiYm1qb3BlbiI7czo1OiJyZXNpZCI7czoxMjoiNS8xMC9lMDA4NzA4IjtzOjQ6ImF0b20iO3M6NTA6Ii9tZWRyeGl2L2Vhcmx5LzIwMjMvMDkvMTUvMjAyMy4wOS4xNS4yMzI5NTA2NC5hdG9tIjt9czo4OiJmcmFnbWVudCI7czowOiIiO30=) 29. Benchimol EI, Smeeth L, Guttmann A, et al. [The REporting of studies Conducted using Observational Routinely-collected health Data (RECORD) statement]. Z Evid Fortbild Qual Gesundhwes 2016; 115–116:33–48. doi:10.1016/j.zefq.2016.07.010 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1016/j.zefq.2016.07.010&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=http://www.n&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F09%2F15%2F2023.09.15.23295064.atom) 30. von Elm E, Altman DG, Egger M, et al. Strengthening the Reporting of Observational Studies in Epidemiology (STROBE) statement: guidelines for reporting observational studies. BMJ 2007; 335:806–8. doi:10.1136/bmj.39335.541782.AD [FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiRlVMTCI7czoxMToiam91cm5hbENvZGUiO3M6MzoiYm1qIjtzOjU6InJlc2lkIjtzOjEyOiIzMzUvNzYyNC84MDYiO3M6NDoiYXRvbSI7czo1MDoiL21lZHJ4aXYvZWFybHkvMjAyMy8wOS8xNS8yMDIzLjA5LjE1LjIzMjk1MDY0LmF0b20iO31zOjg6ImZyYWdtZW50IjtzOjA6IiI7fQ==) 31. Stewart R, Soremekun M, Perera G, et al. The South London and Maudsley NHS Foundation Trust Biomedical Research Centre (SLAM BRC) case register: development and descriptive data. BMC Psychiatry 2009; 9:51. doi:10.1186/1471-244X-9-51 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1186/1471-244X-9-51&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=19674459&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F09%2F15%2F2023.09.15.23295064.atom) 32. N H S. Lambeth DataNet. Lambeth DataNet. 2021.[https://selondonccg.nhs.uk/wp-content/uploads/2021/04/Lambeth-DataNet.pdf](https://selondonccg.nhs.uk/wp-content/uploads/2021/04/Lambeth-DataNet.pdf) (accessed 26 May2023). 33. NIHR Maudsley Biomedical Research Center. CRIS Data Linkages. CRIS Data Linkages. [https://www.maudsleybrc.nihr.ac.uk/facilities/clinical-record-interactive-search-cris/cris-data-linkages/](https://www.maudsleybrc.nihr.ac.uk/facilities/clinical-record-interactive-search-cris/cris-data-linkages/) (accessed 7 Aug2023). 34. Fernandes AC, Cloete D, Broadbent MTM, et al. Development and evaluation of a deidentification procedure for a case register sourced from mental health electronic records. BMC Med Inform Decis Mak 2013; 13:71. doi:10.1186/1472-6947-13-71 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1186/1472-6947-13-71&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=23842533&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F09%2F15%2F2023.09.15.23295064.atom) 35. Research Design Service South Central. Patient and Public Involvement (PPI). What is Patient and Public Involvement in health and social care research? 2023.[https://www.rds-sc.nihr.ac.uk/ppi-information-resources/](https://www.rds-sc.nihr.ac.uk/ppi-information-resources/) 36. World Health Organization. International Classification of Diseases (ICD). 2008.[https://www.who.int/standards/classifications/classification-of-diseases](https://www.who.int/standards/classifications/classification-of-diseases) (accessed 7 Aug2023). 37. GOV.UK. English indices of deprivation 2019. 2019.[https://www.gov.uk/government/statistics/english-indices-of-deprivation-2019](https://www.gov.uk/government/statistics/english-indices-of-deprivation-2019) (accessed 7 Aug2023). 38. Chaturvedi J, Mascio A, Velupillai SU, et al. Development of a lexicon for pain. Front Digit Health 2021; 3:778305. doi:10.3389/fdgth.2021.778305 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.3389/fdgth.2021.778305&link_type=DOI) 39. Chaturvedi J, Velupillai S, Stewart R, et al. Identifying Mentions of Pain in Mental Health Records Text: A Natural Language Processing Approach. arXiv Published Online First: 2023. doi:10.48550/arxiv.2304.01240 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.48550/arxiv.2304.01240&link_type=DOI) 40. NHS Digital. Read Codes. 2022.[https://digital.nhs.uk/services/terminology-and-classifications/read-codes](https://digital.nhs.uk/services/terminology-and-classifications/read-codes) (accessed 7 Aug2023). 41. Ma R, Romano E, Ashworth M, et al. Multimorbidity clusters among people with serious mental illness: a representative primary and secondary data linkage cohort study. Psychol Med 2022;:1–12. doi:10.1017/S003329172200109X [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1017/S003329172200109X&link_type=DOI) 42. NHSBSA. Dictionary of medicines and devices (dm+d). 2023.[https://www.nhsbsa.nhs.uk/pharmacies-gp-practices-and-appliance-contractors/dictionary-medicines-and-devices-dmd](https://www.nhsbsa.nhs.uk/pharmacies-gp-practices-and-appliance-contractors/dictionary-medicines-and-devices-dmd) (accessed 2 Aug2023). 43. Barnett K, Mercer SW, Norbury M, et al. Epidemiology of multimorbidity and implications for health care, research, and medical education: a cross-sectional study. Lance t 2012; 380:37–43. doi:10.1016/S0140-6736(12)60240-2 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1016/S0140-6736(12)60240-2&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=22579043&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F09%2F15%2F2023.09.15.23295064.atom) [Web of Science](http://medrxiv.org/lookup/external-ref?access_num=000306115900031&link_type=ISI) 44. Outcomes Based Healthcare. Outcomes Platform. 2018.[https://outcomesbasedhealthcare.com/outcomes-platform/](https://outcomesbasedhealthcare.com/outcomes-platform/) (accessed 3 Aug2023). 45. Hafezparast N, Bragan Turner E, Dunbar-Rees R, et al. Identifying populations with chronic pain in primary care: developing an algorithm and logic rules applied to coded primary care diagnostic and medication data. BMC Primary Care 2023. 46. Searle T, Kraljevic Z, Bendayan R, et al. MedCATTrainer: A Biomedical Free Text Annotation Interface with Active Learning and Research Use Case Specific Customisation. In: Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP): System Demonstrations. Stroudsburg, PA, USA: : Association for Computational Linguistics 2019. 139–44. doi:10.18653/v1/D19-3024 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.18653/v1/D19-3024&link_type=DOI) 47. Perera G, Broadbent M, Callard F, et al. Cohort profile of the South London and Maudsley NHS Foundation Trust Biomedical Research Centre (SLaM BRC) Case Register: current status and recent enhancement of an Electronic Mental Health Record-derived data resource. BMJ Open 2016; 6:e008721. doi:10.1136/bmjopen-2015-008721 [Abstract/FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6NzoiYm1qb3BlbiI7czo1OiJyZXNpZCI7czoxMToiNi8zL2UwMDg3MjEiO3M6NDoiYXRvbSI7czo1MDoiL21lZHJ4aXYvZWFybHkvMjAyMy8wOS8xNS8yMDIzLjA5LjE1LjIzMjk1MDY0LmF0b20iO31zOjg6ImZyYWdtZW50IjtzOjA6IiI7fQ==) 48. Wandner LD, Scipio CD, Hirsh AT, et al. The perception of pain in others: how gender, race, and age influence pain expectations. J Pain 2012; 13:220–7. doi:10.1016/j.jpain.2011.10.014 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1016/j.jpain.2011.10.014&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=22225969&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F09%2F15%2F2023.09.15.23295064.atom) 49. Fillingim RB. Sex, gender, and pain: women and men really are different. Curr Rev Pain 2000; 4:24–30. doi:10.1007/s11916-000-0006-6 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1007/s11916-000-0006-6&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=10998712&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F09%2F15%2F2023.09.15.23295064.atom) 50. Green CR, Anderson KO, Baker TA, et al. The unequal burden of pain: confronting racial and ethnic disparities in pain. Pain Med 2003; 4:277–94. doi:10.1046/j.1526-4637.2003.03034.x [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1046/j.1526-4637.2003.03034.x&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=12974827&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F09%2F15%2F2023.09.15.23295064.atom) 51. Stubbs B, Thompson T, Acaster S, et al. Decreased pain sensitivity among people with schizophrenia: a meta-analysis of experimental pain induction studies. Pain 2015; 156:2121–31. doi:10.1097/j.pain.0000000000000304 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1097/j.pain.0000000000000304&link_type=DOI) 52. Samulowitz A, Gremyr I, Eriksson E, et al. “Brave Men” and “Emotional Women”: A Theory-Guided Literature Review on Gender Bias in Health Care and Gendered Norms towards Patients with Chronic Pain. Pain Res Manag 2018; 2018:6358624. doi:10.1155/2018/6358624 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1155/2018/6358624&link_type=DOI) 53. Hoffmann DE, Tarzian AJ. The girl who cried pain: a bias against women in the treatment of pain. J Law Med Ethics 2001; 29:13–27. doi:10.1111/j.1748-720X.2001.tb00037.x [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1111/j.1748-720X.2001.tb00037.x&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=http://www.n&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F09%2F15%2F2023.09.15.23295064.atom) 54. American Psychiatric Association. Chronic Pain and Mental Health Often Interconnected. 2020.[https://www.psychiatry.org/news-room/apa-blogs/chronic-pain-and-mental-health-interconnected](https://www.psychiatry.org/news-room/apa-blogs/chronic-pain-and-mental-health-interconnected) (accessed 3 Aug2023). 55. Bennett C. What you need to know about pain and mental health in Australia. Pain Australia. 2020.[https://www.painaustralia.org.au/media-document/blog-1/blog-2020/blog-2019/what-you-need-to-know-about-pain-and-mental-health-in-australia](https://www.painaustralia.org.au/media-document/blog-1/blog-2020/blog-2019/what-you-need-to-know-about-pain-and-mental-health-in-australia) (accessed 3 Aug2023).