The impact of the COVID-19 pandemic on Antipsychotic Prescribing in individuals with autism, dementia, learning disability, serious mental illness or living in a care home: A federated analysis of 59 million patients’ primary care records in situ using OpenSAFELY ========================================================================================================================================================================================================================================================================= * The OpenSAFELY Collaborative: * Orla Macdonald * Amelia Green * Alex Walker * Richard Croker * Helen Curtis * Andrew Brown * Ben Butler-Cole * Colm Andrews * Caroline Morton * Dave Evans * Peter Inglesby * Iain Dillingham * Jon Massey * Louis Fisher * Seb Bacon * Simon Davy * Tom Ward * Will Hulme * Jess Morley * Amir Mehrkar * Chris Bates * Jonathan Cockburn * John Parry * Frank Hester * Sam Harper * Shaun O’Hanlon * Alex Eavis * Richard Jarvis * Dima Avramov * Ian Wood * Nasreen Parkes * Ben Goldacre * Brian MacKenna ## Abstract **Background** The COVID-19 pandemic significantly affected health and social care services. We aimed to explore whether this impacted the prescribing rates of antipsychotics within at-risk populations. **Methods** With the approval of NHS England, we completed a retrospective cohort study, using the OpenSAFELY platform to explore primary care data of 59 million patients. We identified patients in five at-risk groups: autism, dementia, learning disability, serious mental illness and care home residents. We then calculated the monthly prevalence of antipsychotic prescribing in the population, as well as the incidence of new prescriptions in each month over the study period (Jan 2019-Dec 2021). **Results** The average monthly rate of antipsychotic prescribing increased in dementia from 82.75 patients prescribed an antipsychotic per 1000 patients (95% CI 82.30-83.19) in Q1 2019 to 90.1 (95% CI 89.68-90.60) in Q4 2021 and from 154.61 (95% CI 153.79-155.43) in Q1 2019 to 166.95 (95% CI 166.23-167.67) in Q4 2021 in care homes. There were notable spikes in the rate of new prescriptions issued to patients with dementia and in care homes. In learning disability and autism groups, the average monthly rate of prescribing per 1000 decreased from 122.97 (95% CI 122.29-123.66) in Q1 2019 to 119.29 (95% CI 118.68-119.91) in Q4 2021, and from 54.91 (95% CI 54.52-55.29) in Q1 2019 to 51.04 (95% CI 50.74-51.35) in Q4 2021 respectively. **Conclusions** During each of the lockdowns in 2020, we observed a significant spike in antipsychotic prescribing in the dementia and care home groups. We have shown that these peaks are likely due to prescribing of antipsychotics for palliative care purposes and may have been linked to pre-emptive prescribing, when on-site medical visits would have been restricted. Over the study period, we observed gradual increases in antipsychotic use in patients with dementia and in care homes and a decrease in their use in patients with learning disability or autism. ## BACKGROUND In March 2020, the UK went into its first national lockdown following the outbreak of the SARS-CoV-2 pandemic. Subsequent literature has described the negative psychological impact of these lockdowns on “at risk” groups of patients, such as those with dementia [1,2], learning disability [3] and autism [4,5], including increases in agitation, anxiety, depressive symptoms and negative behaviours such as aggressive and self harming behaviours, which are sometimes treated with antipsychotics. Prior to the pandemic the NHS in England had recognised that prescribing of antipsychotics was excessive in certain at-risk populations including in patients with dementia, learning disability, autism and those in care homes. In response, national campaigns, such as the National Dementia Strategy (2009) and STOMP (2016) (Stopping OverMedication of People with a learning disability, autism or both), were funded to reduce the overprescribing of antipsychotics in these groups [6,7]. NICE states that in patients with learning disability or dementia, antipsychotics should only be used to manage behaviour where patients are severely distressed or at risk of harming themselves or others [8,9] and advocates the use of non-pharmacological strategies, including structured activities and positive social support as a preferred approach to managing challenging behaviours. However, many of the social and charitable structures that supported people with disabilities were substantially affected during the pandemic [6]. We were interested to know if the combination of negative impacts of the pandemic led to an increase in antipsychotic use within these at-risk populations. OpenSAFELY is a new secure analytics platform for electronic patient records built by our group on behalf of NHS England to deliver urgent academic [10,11,12] and operational research during the pandemic [13,14,15]. One of the aims of this research platform is to assess the effect of the pandemic on indirect health related outcomes; such as the impact of the dramatic change in services on at-risk populations. OpenSAFELY analyses can currently run across all patients’ full raw pseudonymised primary care records at 99% of English general practices, with patient-level linkage to various sources of secondary care data. All code and analysis is shared openly for inspection and re-use. We therefore set out to use the OpenSAFELY platform to assess the impact of the COVID-19 pandemic on antipsychotic prescribing trends in at-risk populations and to establish if there was a change in prescribing practice. ## METHODS ### Study Design We conducted a retrospective population-based cohort study using general practice primary care electronic health record (EHR) data accessed through OpenSAFELY, currently covering 99% of England’s general practices. Data was included from January 2019 to December 2021 and therefore included 14 months of prescribing prior to the first lockdown in March 2020 and 22 months after this point. ### Data Source Primary care records for all practices in England managed by the GP software providers TPP and EMIS are available in OpenSAFELY, a data analytics platform created by our team on behalf of NHS England to address urgent COVID-19 research questions ([https://opensafely.org](https://opensafely.org)). OpenSAFELY provides a secure software interface allowing the analysis of pseudonymized primary care patient records from England in near real-time within the EHR vendor’s highly secure data centre, avoiding the need for large volumes of potentially disclosive pseudonymized patient data to be transferred off-site. This, in addition to other technical and organisational controls, minimises any risk of re-identification. The TPP dataset analysed within OpenSAFELY (OpenSAFELY-TPP) is based on 24.8 million people currently registered with GP surgeries using TPP SystmOne software; the EMIS dataset analysed within OpenSAFELY (OpenSAFELY-EMIS) is based on 35.2 million people currently registered with GP surgeries using EMIS. It includes pseudonymized data such as coded diagnoses, medications and physiological parameters. No free text data are included. Further details on our information governance can be found in the information governance and ethics section below. ### Study population We included all individuals who were alive and registered at an OpenSAFELY-TPP or OpenSAFELY-EMIS practice each month, across the study period. ### At-Risk groups Five at-risk groups were identified consisting of individuals who had a recorded history of a diagnosis of learning disability, autism, dementia, serious mental illness or a history of being a resident in a nursing or residential care home according to their GP record. These groups were non-exclusive (e.g., patients in a care home and with dementia were counted in both groups). For the care home group, we included all those coded by GPs as living in residential accommodation, however this is not a comprehensive list of all patients who live in supported accommodation [16]. For our dementia cohort we excluded any patient under the age of 35, where a diagnosis of dementia is extremely rare. Further details can be found under the codelists and implementation section below. ### Antipsychotic medications Prescriptions for antipsychotic medications were defined using NHS Dictionary of Medicines and Devices codes (codelist details can be found in the appendices). We categorised antipsychotic medication in terms of whether they were first or second generation, or long-acting injectable and depot antipsychotics, and those that are routinely used for other indications, such as prochlorperazine which is used extensively for nausea and vomiting (Table S3). We excluded antipsychotics which are exclusively used in palliative care, such as the injectable forms of levomepromazine. Over the study period, only the most recently available specified code for a prescription of an antipsychotic medication within each month was included. ### Population characteristics To summarise the population we counted patients registered at the end of the period (1st October and 31st December 2021) and the number of whom received one or more prescriptions for an antipsychotic during this period, and we described the demographics of this subgroup compared to the total population. This was repeated for each at-risk group. We extracted patient demographic information on age (categorised into eight classes), sex, 2019 Index of Multiple Deprivation (IMD) as quintiles, ethnicity (17 categories) and region (7 NHS England regions). Patient demographics were extracted monthly, except ethnicity which (for reduced computational time) was determined once at the end of the study period. ### Trends in antipsychotic prescribing We counted the number of patients who were issued an antipsychotic prescription each month between January 2019 and December 2021. We calculated this for the population as a whole and for each of the five at-risk groups. From this we calculated both a monthly and quarterly rate (per 1000 eligible population) of antipsychotic prescribing for each group and for the population as a whole. The quarterly rate is preferred because there is more variation at a monthly level and there are expected anomalies with prescribing data in certain months (e.g. February and December) due to reduced GP working hours within those months, however the monthly data was included so that we could show significant changes in prescribing that were relatively short lived. ### Trends in patients newly prescribed antipsychotics We counted the number of patients who were newly prescribed an antipsychotic (those with no recorded antipsychotic prescription in the 24 months prior) each month between January 2019 and December 2021. We calculated the rate (per 1000 eligible population) of newly initiated patients for the population as a whole and in each at-risk group. ### Sensitivity analysis We completed a further sensitivity analysis in patients with dementia and in care homes to identify if newly prescribed antipsychotics were being initiated for palliative care purposes. For this analysis, we excluded any patient who had died within 2 weeks of the antipsychotic being initiated (one indicator of palliative care) and any patient who had been prescribed midazolam, a drug commonly used in palliative care, at the same time (+/- 1 day) as the antipsychotic. ### Missing data Individuals with missing ethnicity, IMD and region were included as “Unknown”. Individuals were excluded if they had an unknown date of birth or unknown sex. ### Statistical methods Simple descriptive statistics were used to summarise the number of patients issued antipsychotic prescriptions, the number of first antipsychotic prescriptions and the monthly rate of antipsychotic prescribing. Rates, with associated 95% confidence intervals (CIs), were estimated by dividing antipsychotic counts by the total at-risk population and multiplying by 1000. Counts and rates of antipsychotic prescriptions were stratified by each demographic variable, within each of the five at-risk populations. Charts and results not presented in this manuscript are available online for inspection in the associated GitHub repository [17]. Patient counts of 0-7 are shown as “<8” with remaining counts rounded to the nearest 10 to protect against small number differences. ### Codelists and implementation Information on all covariates were obtained from primary care records by searching TPP/EMIS records for specific coded data. Detailed information on compilation and sources for every individual codelist is available at [https://www.opencodelists.org/](https://www.opencodelists.org/) and the lists are available for inspection and re-use by the broader research community. Links to specific codelists used within this study can be found in the appendices. All codelists were verified and reviewed by contributors from within the Datalab team. ### Software and Reproducibility Data management was performed using the OpenSAFELY software libraries, implemented using Python 3.8, with analysis carried out using both Python and R version 4.0.2. This was an analysis delivered using federated analysis through the OpenSAFELY platform. A federated analysis involves carrying out patient level analysis in multiple secure datasets, then later combining them: codelists and code for data management and data analysis were specified once using the OpenSAFELY tools; then transmitted securely from the OpenSAFELY jobs server to the OpenSAFELY-TPP platform within TPP’s secure environment, and separately to the OpenSAFELY-EMIS platform within EMIS’s secure environment, where they were each executed separately against local patient data; summary results were then reviewed for disclosiveness, released, and combined for the final outputs. All code for the OpenSAFELY platform for data management, analysis and secure code execution is shared for review and re-use under open licences on GitHub: [https://github.com/opensafely/antipsychotics-prescribing-during-COVID-19](https://github.com/opensafely/antipsychotics-prescribing-during-COVID-19). ### Patient and Public Involvement This analysis relies on the use of large volumes of patient data. Ensuring patient, professional and public trust is therefore of critical importance. Maintaining trust requires being transparent about the way OpenSAFELY works, and ensuring patient voices are represented in the design of research, analysis of the findings, and considering the implications. For transparency purposes we have developed a public website ([https://opensafely.org/](https://opensafely.org/)) which provides a detailed description of the platform in language suitable for a lay audience; we have participated in two citizen juries exploring public trust in OpenSAFELY [18]; we are currently co-developing an explainer video; we have ‘expert by experience’ patient representation on our OpenSAFELY Oversight Board; we have partnered with Understanding Patient Data to produce lay explainers on the importance of large datasets for research; we have presented at a number of online public engagement events to key communities; and more. To ensure the patient voice is represented, we are working closely with appropriate medical research charities. ## RESULTS ### Population characteristics Between 1st October and 31st December 2021, 59,968,090 individuals were alive and registered at a TPP or EMIS GP practice. Demographics of this cohort are described in Table 1. Within this total population, 543,220 (<1%) patients were prescribed an antipsychotic. Rates of antipsychotic prescribing increased with increasing age and with increasing levels of deprivation; 29% of individuals prescribed an antipsychotic were in the most deprived quintile compared to 12% in the least deprived. A higher proportion of those issued an antipsychotic were female (57%); the baseline population had a 50:50 ratio of women to men. View this table: [Table 1](http://medrxiv.org/content/early/2023/01/07/2023.01.05.23284214/T1) Table 1 Demographics of cohort, split by antipsychotic use. ### Trends in antipsychotic prescribing There was a slight increase in the rate of antipsychotic prescribing (per 1000 patients) over the study period from 8.67 (95%CI 8.66-8.68) in Jan-Mar 2019 to 9.09 (95%CI 9.07-9.10) in Oct-Dec 2021 (Figure 1). There was decrease in the overall rate of new initiation of antipsychotics around the time of the first lockdown; in Q2 of 2020 this figure was 0.794 (95%CI 0.791-0.799) whereas in Q2 2019 it was 0.895 (95%CI 0.891-0.899)(Figure 2) ![Figure 1](http://medrxiv.org/https://www.medrxiv.org/content/medrxiv/early/2023/01/07/2023.01.05.23284214/F1.medium.gif) [Figure 1](http://medrxiv.org/content/early/2023/01/07/2023.01.05.23284214/F1) Figure 1 Monthly rate of patients issued an antipsychotic between January 2019 and December 2021, stratified by at-risk group. Solid coloured lines represent the monthly rates for each group with shaded colours areas representing 95% CIs. Vertical grey lines represent the start of the first two national lockdowns. Note each plot has a seperate y-axis scale thus plots should be considered separately. ![Figure 2](http://medrxiv.org/https://www.medrxiv.org/content/medrxiv/early/2023/01/07/2023.01.05.23284214/F2.medium.gif) [Figure 2](http://medrxiv.org/content/early/2023/01/07/2023.01.05.23284214/F2) Figure 2 Monthly rate of patients newly issued an antipsychotic between January 2019 and December 2021 stratified by at-risk group. Solid coloured lines represent the monthly rates for each group with shaded colours areas represeting 95% CIs. Vertical grey lines represent the start of the first two national lockdowns. Note variation in each plot has a seperate y-axis scale thus means each plots should be considered accordingly. ### Demographic and Temporal variations in prescribing according to at-risk population The populations of each group is shown in Figure 3. Further details on demographic and ethnic variabilities within the groups are shown in the Appendix in Tables S5-S9. ![Figure 3](http://medrxiv.org/https://www.medrxiv.org/content/medrxiv/early/2023/01/07/2023.01.05.23284214/F3.medium.gif) [Figure 3](http://medrxiv.org/content/early/2023/01/07/2023.01.05.23284214/F3) Figure 3 Clinical Characteristics ### Dementia Between 1st October and 31st December 2021, 449,310 individuals had a record of dementia (Figure 3). Within this population, 40,010 (9%) patients were prescribed an antipsychotic. The monthly rate (per 1000 patients) of antipsychotic prescribing increased over the study period from 82.75 (95% CI 82.30-83.19) in Q1 (Jan-Mar) 2019 to 90.1 (95% CI 89.68-90.60) in Q4 (Oct-Dec) 2021 (Figure 1). ### Care home Between 1st October and 31st December 2021, 346,075 individuals were classed as residing in a care home (Figure 3). Within this population, 55,645 (16%) were prescribed an antipsychotic. The monthly rate (per 1000 patients) of antipsychotic prescribing increased over the study period from 154.61 (95% CI 153.79-155.43) in Q1 2019 to 166.95 (95% CI 166.23-167.67) in Q4 2021 (Figure 1). ### Learning disability Between 1st October and 31st December 2021, 319,930 individuals were classed as having a learning disability (Figure 3). Within this population, 37,875 (12%) were prescribed an antipsychotic. The monthly rate (per 1000 patients) of antipsychotic prescribing decreased over the study period from 122.97 (95% CI 122.29-123.66) in Q1 2019 to 119.29 (95% CI 118.68-119.91) in Q4 2021 (Figure 1). ### Autism Between 1st October and 31st December 2021, 553,550 individuals had a record of autism (Figure 3). From within this population, 27,995 (5%) were prescribed an antipsychotic. The monthly rate (per 1000 patients) of antipsychotic prescribing decreased slightly over the study period from 54.91 (95% CI 54.52-55.29) in Q1 2019 to 51.04 (95% CI 50.74-51.35) in Q4 2021 (Figure 1). ### Serious mental illness Between 1st October and 31st December 2021, 555,020 individuals had a record of a serious mental illness (Figure 3). From within this population, 205,265 (37%) were currently prescribed an antipsychotic (Supplementary Table S5). The monthly rate (per 1000 patients) of antipsychotic prescribing within these patients decreased slightly from 376.49 (95%CI 375.60-377.38) in Q1 2019 to 373.75 (95%CI 372.92-374.57) in Q4 2021 (Figure 1). ### Prescribing trends of new prescriptions over time within at-risk populations #### Dementia and Care Homes Over the study period, there were two notable increases in the rate of new antipsychotic prescriptions issued to patients with dementia, which coincided with the start of the coronavirus pandemic/lockdowns; the rate of new prescriptions issued to patients with dementia rose from 5.26 (95% CI 5.14-5.37) in January 2020 to 10.09 (95% CI 9.94-10.24) in April 2020 and from 5.98 (95% CI 5.86-6.10) in November 2020 to 7.14 (95% CI 7.01-7.27) in December 2020 (Figure 2). A similar trend was seen in care homes where the rate of new prescriptions rose from 5.62 (95% CI 5.46-5.76) in January 2020 to 12.40 (95% CI 12.17-12.62) in April 2020 and from 6.56 (95% CI 6.41-6.71) in December 2020 to 8.68 (95% CI 8.51-8.50) in January 2021 (Figure 2). Our sensitivity analysis showed that when patients who were most likely to be on an palliative or end-of-life pathway were excluded, these two peaks were notably reduced (Figure 4)). ![Figure 4:](http://medrxiv.org/https://www.medrxiv.org/content/medrxiv/early/2023/01/07/2023.01.05.23284214/F4.medium.gif) [Figure 4:](http://medrxiv.org/content/early/2023/01/07/2023.01.05.23284214/F4) Figure 4: Monthly rates of care home and dementia patients **newly issued** an antipsychotic (red line), excluding patients who had died within two weeks of being prescribed an antipsychotic (one indicator of palliative care) (green line) and who had also recently been prescribed midazolam (a drug frequently prescribed in palliative care) (blue line). #### Learning disability and Autism The rate of initiating new antipsychotic prescriptions in patients with learning disability and in autistic patients appears to have decreased slightly over the study period, from 1.42 in Q1 2019 (95%CI 1.35-1.50) to 1.24 (95%CI 1.18-1.31) in Q4 2021 in learning disability and 1.15 (95%CI 1.10-1.21) in Q1 2019 to 0.97 (95%CI 0.96-1.04) in Q4 2021, which reflects the decrease in overall use. #### Serious mental illness The rate of new antipsychotic prescriptions issued to patients with serious mental illnesses remained relatively unchanged; 5.03 (95%CI 4.93-.513) in Q1 2019 and 4.86 (95%CI 4.77-4.96) in Q4 2021. Except for a slight increase in the rate of new first-generation antipsychotic prescribing in patients with serious mental illness between March and May 2020, there were no other notable trends during the course of the pandemic (Supplementary Figure S10). ## DISCUSSION ### Summary Over the study period, we observed increases in the rate of antipsychotic prescribing in patients with dementia and in care homes. Furthermore, there were notable peaks in the rate of newly prescribed antipsychotics in these two groups which coincided with the beginning of the first and second lockdowns. Many of these new prescriptions are likely to be associated with palliative care indications. Haloperidol is recommended for the management of restlessness, confusion and vomiting during end of life care [19] and preemptive prescribing of palliative care medicines, including antipsychotics, was recommended by some organisations for elderly and frail patients in residential care, to allow staff to be ready to use it should the patient become infected with Covid [20]. Results from our sensitivity analysis are consistent with the suggestion that these spikes are due to palliative care prescribing. Conversely we observed a decreasing trend during the same period in the prescribing of antipsychotics in patients with learning disability or autism, although we found some notable variations in frequency of use associated with ethnicity which requires further investigation. We did not observe an increase in new prescriptions for antipsychotics in the learning disability and autistic population and found no consistent changes in the prescribing trends of antipsychotics in patients with a severe mental illness. #### Strengths and weaknesses The key strength of this study is its scale; the OpenSAFELY platform runs analyses across the full dataset of all raw, pseudonymised, single-event-level clinical events for 59.9 million patients registered at all NHS GP practices in England using EMIS and TPP software. This federated analytics allows us to explore in detail medication usage, diagnostic events, and other salient clinical, regional and demographic information including ethnicity, age and scores of deprivation. Using tailor-made codelists, we were able to design further flexibility into our data extraction which allowed for a more accurate understanding of the prescribing trends. We also note some limitations. Whilst we have included some pre-pandemic data in our analysis, this is limited and therefore we urge caution in interpreting prescribing trends as being associated with the pandemic [21]. Some of the conditions that we were exploring are reported to not be well coded in primary care records [22]. For example in April 2021, NHS digital estimated that only 61.7% of patients with dementia had a recorded code for dementia within their GP notes [23]. It is likely that we have not included all patients in the country that have dementia and there is therefore some uncertainty about whether the identified population is fully representative of the dementia population as a whole. Furthermore, our previous work has shown that there is currently no canonical data source to identify individuals resident in a care home; and that all methods used for identifying care home residents will likely represent an under-estimate; these limitations will apply to all UK healthcare database studies [16]. All clinical groups were assessed independently, we recognise that there is significant overlap between groups such as our care home population and those with dementia or learning disability. Further analyses to explore the detail of this overlap was outside the scope of this study. We did not observe an increase in new prescriptions within the learning disability or autism cohorts, yet this must be understood within the context of our study definition: a new prescription was defined as ‘an antipsychotic prescription in those without any antipsychotic prescription in the previous 24 months’. This means that if a patient had previously taken an antipsychotic within the 2 year time period, and this antipsychotic was restarted or the dose was increased during lockdown we would not have included this in our count of new prescriptions. As a federated analysis has been carried out across two EHR vendor’s systems, it is possible that a very small number of patient records are duplicated; however, this has now been established to represent <0.03% of the total patient count. It is also possible that we counted some patients twice, if they moved GP practice and changed EHR vendor during the study period. Finally, this data only includes antipsychotics which are prescribed in primary care. In our experience some antipsychotics are prescribed directly from secondary care in some regions [24]; this includes clozapine and, in some areas, the more expensive antipsychotic injections such as Xeplion, Zypadhera, Trevicta and Abilify Maintena. Furthermore, some antipsychotics may be prescribed by secondary care services for acute behavioural disturbance, for example via psychiatric outreach teams or emergency care services, and this prescribing will not be reflected in our data. #### Findings in Context To our knowledge, this is the first study of its scale that used NHS GP data to describe antipsychotic prescribing trends in different at-risk patient groups, during and after the Covid pandemic. NHS Digital publishes rates of antipsychotic prescribing in dementia over the previous 12 month period, via an interactive dashboard [23] which is updated monthly. In Nov 2020, researchers using this data observed an increase in the rate of antipsychotic prescribing in dementia in the early months of the pandemic and raised concerns that this could be in response to worsened agitation and psychosis secondary to COVID-19 restrictions [25]. In Dec 2021, NHS digital reported that 9.3% of patients with dementia had been prescribed an antipsychotic over the previous 6 weeks. This is a slightly higher figure than we observed (8.99 95%CI 8.94-9.03), although we counted prescriptions issued within a defined month, rather than over six weeks, which may account for the difference. There have also been external factors affecting their data; in Oct 2021 they removed antipsychotics commonly used in palliative care from their dataset [26] without applying this change to previous time windows, and therefore perceived reductions in their prescribing rates around this time must be viewed with caution. Throughout our data extraction we excluded antipsychotics which are used exclusively in palliative care, such as the injectable formulations of levomepromazine, however we have included those which are used for both palliative care and the management of behavioural and psychiatric symptoms of dementia, such as haloperidol. NHS digital also publishes data about antipsychotic prescribing in learning disability. This data is calculated from a cohort of patients (56% patient coverage in 2020/21) and is reported annually [27]. In their 2020/21 report they calculated that 14.8% of patients with a learning disability were prescribed an antipsychotic; 15.2% in 2019/20. These figures are greater than ours, however they count all patients who had a prescription for an antipsychotic within a 6 month period. We have been able to provide significantly more detail in our analysis; by using a bigger dataset and a monthly extraction of data we can provide a more accurate and comprehensive description of the prescribing trends in learning disability over this period. Finally, in Canada, researchers found statistically significant increases in the use of antipsychotics, benzodiazepines, antidepressants, anticonvulsants, and opioids in nursing home residents following the onset of the COVID-19 pandemic although they noted that these increases were not as pronounced in residents who had dementia. We found no UK based research studies that described antipsychotic prescribing in care homes over the pandemic. #### Implications for policy and research This initial descriptive piece of work has shown how we can use the OpenSAFELY platform to facilitate near real-time research of prescribing trends in the context of an evolution of healthcare services following the pandemic. The increase in antipsychotic prescribing in dementia and care home patients despite active government initiatives to prevent their overuse is concerning and warrants further investigation and action. A key government report recently highlighted concerns about overprescribing within the NHS, noting that it may disproportionately affect those who are more vulnerable such as the elderly and those with disabilities [28]. This report called for research on overprescribing, including a specific recommendation to prioritise research into the links between overprescribing, deprivation, ethnicity and inequalities and the impact this has on the health of the population. #### Future research In 2021 NHS England published their Core20Plus5 document which described their commitment to reduce health inequalities across services [29]. We have reported some information in the table and supplementary sections which indicates variations being evident in different ethnic groups in the prescribing of antipsychotics, however detailed analysis and discussion is outside the scope of this manuscript. We intend to embark on dedicated work to further explore these findings and understand the extent of variability in prescribing within these vulnerable groups. This will enable better understanding of the impact of the pandemic on these vulnerable populations and add to the evidence that supports work on reducing overprescribing and health inequalities. Using the OpenSAFELY framework we can conduct rapid near real-time research into prescribing trends of medicines for almost the entire population of England. We can then focus in detail over a range of key variables, including medication type, diagnosis, demographics and ethnicity. With appropriate permissions and where appropriate support can be obtained from relevant professional bodies, the OpenSAFELY platform is also technically capable of providing audit and feedback information about clinical practice, and changes in clinical practice, at single sites. #### Summary There is still much to learn about how the pandemic and subsequent lockdowns have affected the mental health of at-risk populations. We have shown that over the course of the pandemic, there have been increases in antipsychotic use in certain at-risk populations, specifically patients with dementia and those who reside in care homes. We have also shown that there were significant brief increases in antipsychotic prescribing in patients with dementia or in those who were resident in care homes during each of the lockdown periods which are likely to be due to palliative care prescribing. Meanwhile there has been a decrease in antipsychotic prescribing in patients with learning disability or autism. We need to continue to promote and support research and policy development that reduce inappropriate prescribing of antipsychotics within these vulnerable groups of patients. ## Supporting information Supplementary Material [[supplements/284214_file02.pdf]](pending:yes) ## Data Availability All data produced in the study are contained in the manuscript and supplementary sections. All code for the OpenSAFELY platform for data management, analysis and secure code execution is shared for review and re-use under open licences on GitHub: [https://github.com/opensafely/antipsychotics-prescribing-during-COVID-19](https://github.com/opensafely/antipsychotics-prescribing-during-COVID-19). [https://github.com/opensafely/antipsychotics-prescribing-during-COVID-19](https://github.com/opensafely/antipsychotics-prescribing-during-COVID-19) ## ADMINISTRATIVE ## Conflicts of Interest All authors have completed the ICMJE uniform disclosure form at [www.icmje.org/coi\_disclosure.pdf](http://www.icmje.org/coi_disclosure.pdf) and declare the following: BG has received research funding from the Laura and John Arnold Foundation, the NHS National Institute for Health Research (NIHR), the NIHR School of Primary Care Research, the NIHR Oxford Biomedical Research Centre, the Mohn-Westlake Foundation, NIHR Applied Research Collaboration Oxford and Thames Valley, the Wellcome Trust, the Good Thinking Foundation, Health Data Research UK (HDRUK), the Health Foundation, and the World Health Organisation; he also receives personal income from speaking and writing for lay audiences on the misuse of science. OM is a member of the College of Mental Health Pharmacy Council and has received personal funding from CMHP and Aston university for teaching and supporting training in psychiatric pharmacy. ## Funding This research used data assets made available as part of the Data and Connectivity National Core Study, led by Health Data Research UK in partnership with the Office for National Statistics and funded by UK Research and Innovation (grant ref MC_PC_20058). In addition, the OpenSAFELY Platform is supported by grants from the Wellcome Trust (222097/Z/20/Z); MRC (MR/V015757/1, MC_PC-20059, MR/W016729/1); NIHR (NIHR135559, COV-LT2-0073), and Health Data Research UK (HDRUK2021.000, 2021.0157). BG has also received funding from: the Bennett Foundation, the Wellcome Trust, NIHR Oxford Biomedical Research Centre, NIHR Applied Research Collaboration Oxford and Thames Valley, the Mohn-Westlake Foundation; all Bennett Institute staff are supported by BG’s grants on this work. BMK is also employed by NHS England working on medicines policy and clinical lead for primary care medicines data. ID holds grants from NIHR and GSK. OM is employed by Oxford Health as Lead Learning Disabilities pharmacist and was funded by Buckinghamshire, Oxfordshire and Berkshire West Integrated Care System for this project. The views expressed are those of the authors and not necessarily those of the NIHR, NHS England, UK Health Security Agency (UKHSA) or the Department of Health and Social Care. Funders had no role in the study design, collection, analysis, and interpretation of data; in the writing of the report; and in the decision to submit the article for publication. ## Information governance and ethical approval NHS England is the data controller; EMIS and TPP are the data processors; and the key researchers on OpenSAFELY are acting on behalf of NHS England. This implementation of OpenSAFELY is hosted within the EMIS and TPP environments which are accredited to the ISO 27001 information security standard and are NHS IG Toolkit compliant;[30,31] patient data has been pseudonymised for analysis and linkage using industry standard cryptographic hashing techniques; all pseudonymised datasets transmitted for linkage onto OpenSAFELY are encrypted; access to the platform is via a virtual private network (VPN) connection, restricted to a small group of researchers; the researchers hold contracts with NHS England and only access the platform to initiate database queries and statistical models; all database activity is logged; only aggregate statistical outputs leave the platform environment following best practice for anonymisation of results such as statistical disclosure control for low cell counts.[32] The OpenSAFELY research platform adheres to the obligations of the UK General Data Protection Regulation (GDPR) and the Data Protection Act 2018. In March 2020, the Secretary of State for Health and Social Care used powers under the UK Health Service (Control of Patient Information) Regulations 2002 (COPI) to require organisations to process confidential patient information for the purposes of protecting public health, providing healthcare services to the public and monitoring and managing the COVID-19 outbreak and incidents of exposure; this sets aside the requirement for patient consent.[33] Taken together, these provide the legal bases to link patient datasets on the OpenSAFELY platform. GP practices, from which the primary care data are obtained, are required to share relevant health information to support the public health response to the pandemic, and have been informed of the OpenSAFELY analytics platform. This study was approved by the Health Research Authority (REC reference 20/LO/0651) and by the LSHTM Ethics Board (reference 21863). ## Guarantor Ben Goldacre is guarantor of the Opensafely project. ## Contributorship Orla Macdonald, Amelia Green and Brian MacKenna are joint first authors. ## Authors’ contributions View this table: [Table2](http://medrxiv.org/content/early/2023/01/07/2023.01.05.23284214/T2) ## Acknowledgements We are very grateful for all the support received from the EMIS and TPP Technical Operations team throughout this work, and for generous assistance from the information governance and database teams at NHS England and the NHS England Transformation Directorate. ## Footnotes * * Joint first * Received January 5, 2023. * Revision received January 5, 2023. * Accepted January 7, 2023. * © 2023, Posted by Cold Spring Harbor Laboratory This pre-print is available under a Creative Commons License (Attribution 4.0 International), CC BY 4.0, as described at [http://creativecommons.org/licenses/by/4.0/](http://creativecommons.org/licenses/by/4.0/) ## References 1. Velayudhan L, Aarsland D, Ballard C. Mental health of people living with dementia in care homes during COVID-19 pandemic. Int Psychogeriatr 2020;32:1253–4. [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1017/S1041610220001088&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=32487278&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F01%2F07%2F2023.01.05.23284214.atom) 2. Simonetti A, Pais C, Jones M, et al. Neuropsychiatric Symptoms in Elderly With Dementia During COVID-19 Pandemic: Definition, Treatment, and Future Directions. Front Psychiatry 2020;11:579842. [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.3389/fpsyt.2020.579842&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=33132939&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F01%2F07%2F2023.01.05.23284214.atom) 3. Theis N, Campbell N, De Leeuw J, et al. The effects of COVID-19 restrictions on physical activity and mental health of children and young adults with physical and/or intellectual disabilities. Disabil Health J 2021;14:101064. 4. Oomen D, Nijhof AD, Wiersema JR. The psychological impact of the COVID-19 pandemic on adults with autism: a survey study across three countries. Mol Autism 2021;12:21. 5. Vasa RA, Singh V, Holingue C, et al. Psychiatric problems during the COVID-19 pandemic in children with autism spectrum disorder. Autism Res 2021;14:2113–9. 6. England NHS. STOMP Stopping Overmedication of people with a learning disability, autism or both. [https://www.england.nhs.uk/learning-disabilities/improving-health/stomp/](https://www.england.nhs.uk/learning-disabilities/improving-health/stomp/) (accessed 4 Nov 2021). 7. Goodchild C. Living Well with Dementia: The National Dementia Strategy : Joint Commissioning Framework for Dementia. Department of Health 2009. 8. National Institute for Health and Care Excellence. Challenging behaviour and learning disabilities; prevention and interventions for people with learning disabilities whose behaviour challenges. 2015.[https://www.nice.org.uk/guidance/ng11](https://www.nice.org.uk/guidance/ng11) 9. National Institute for Health and Care Excellence. Antipsychotics in people living with dementia. 2019.[https://www.nice.org.uk/advice/ktt7](https://www.nice.org.uk/advice/ktt7) 10. Rentsch CT, DeVito NJ, MacKenna B, et al. Effect of pre-exposure use of hydroxychloroquine on COVID-19 mortality: a population-based cohort study in patients with rheumatoid arthritis or systemic lupus erythematosus using the OpenSAFELY platform. Lancet Rheumatol 2021;3:e19–27. 11. Schultze A, Walker AJ, MacKenna B, et al. Risk of COVID-19-related death among patients with chronic obstructive pulmonary disease or asthma prescribed inhaled corticosteroids: an observational cohort study using the OpenSAFELY platform. Lancet Respir Med 2020;8:1106–20. [PubMed](http://medrxiv.org/lookup/external-ref?access_num=http://www.n&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F01%2F07%2F2023.01.05.23284214.atom) 12. Williamson EJ, Walker AJ, Bhaskaran K, et al. Factors associated with COVID-19-related death using OpenSAFELY. Nature 2020;584:430–6. [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1038/s41586-020-2521-4&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=http://www.n&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F01%2F07%2F2023.01.05.23284214.atom) 13. Curtis HJ, Inglesby P, Morton CE, et al. Trends and clinical characteristics of COVID-19 vaccine recipients: a federated analysis of 57.9 million patients’ primary care records in situ using OpenSAFELY. Br J Gen Pract 2022;72:e51–62. [Abstract/FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6NDoiYmpncCI7czo1OiJyZXNpZCI7czoxMDoiNzIvNzE0L2U1MSI7czo0OiJhdG9tIjtzOjUwOiIvbWVkcnhpdi9lYXJseS8yMDIzLzAxLzA3LzIwMjMuMDEuMDUuMjMyODQyMTQuYXRvbSI7fXM6ODoiZnJhZ21lbnQiO3M6MDoiIjt9) 14. Curtis HJ, MacKenna B, Croker R, et al. OpenSAFELY NHS Service Restoration Observatory 1: primary care clinical activity in England during the first wave of COVID-19. Br J Gen Pract 2022;72:e63–74. [Abstract/FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6NDoiYmpncCI7czo1OiJyZXNpZCI7czoxMDoiNzIvNzE0L2U2MyI7czo0OiJhdG9tIjtzOjUwOiIvbWVkcnhpdi9lYXJseS8yMDIzLzAxLzA3LzIwMjMuMDEuMDUuMjMyODQyMTQuYXRvbSI7fXM6ODoiZnJhZ21lbnQiO3M6MDoiIjt9) 15. OpenSAFELY Collaborative, Fisher L, Speed V, et al. Potentially inappropriate prescribing of DOACs to people with mechanical heart valves: A federated analysis of 57.9 million patients’ primary care records in situ using OpenSAFELY. Thromb Res 2022;211:150–3. 16. Schultze A, Bates C, Cockburn J, et al. Identifying Care Home Residents in Electronic Health Records - An OpenSAFELY Short Data Report. Wellcome Open Res 2021;6:90. 17. Green M, Fisher L, Davy S. Github Opensafely Antipsychotic Prescribing During Covid-19. [https://github.com/opensafely/antipsychotics-prescribing-during-COVID-19](https://github.com/opensafely/antipsychotics-prescribing-during-COVID-19) (accessed 19 May 2022). 18. Dr Malcolm Oswald DLL. Data Sharing in a Pandemic: Three Citizens’ Juries. Juries Report. 2021.[https://www.arc-gm.nihr.ac.uk/media/Resources/ARC/Digital%20Health/Citizen%20Juries/12621\_NIHR\_Juries\_Report\_ELECTRONIC.pdf](https://www.arc-gm.nihr.ac.uk/media/Resources/ARC/Digital%20Health/Citizen%20Juries/12621\_NIHR_Juries_Report_ELECTRONIC.pdf) 19. Joint Formulary Committee. BMJ Group and Pharmaceutical Press. Prescribing in Palliative Care. Medicines guidance. British National Formulary (online). [https://bnf.nice.org.uk/medicines-guidance/prescribing-in-palliative-care/](https://bnf.nice.org.uk/medicines-guidance/prescribing-in-palliative-care/) (accessed 17 Oct 2022). 20. Kunz R, Minder M. COVID-19 pandemic: palliative care for elderly and frail patients at home and in residential and nursing homes. Swiss Med Wkly 2020;150:w20235. [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.4414/smw.2020.20235&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=http://www.n&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F01%2F07%2F2023.01.05.23284214.atom) 21. Walker AJ, Croker R, Curtis HJ, et al. Trends in antidepressant prescribing in England. Lancet Psychiatry. 2021;8:278–9. 22. Russell AM, Bryant L, House A. Identifying people with a learning disability: an advanced search for general practice. Br J Gen Pract 2017;67:e842–50. [Abstract/FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6NDoiYmpncCI7czo1OiJyZXNpZCI7czoxMToiNjcvNjY1L2U4NDIiO3M6NDoiYXRvbSI7czo1MDoiL21lZHJ4aXYvZWFybHkvMjAyMy8wMS8wNy8yMDIzLjAxLjA1LjIzMjg0MjE0LmF0b20iO31zOjg6ImZyYWdtZW50IjtzOjA6IiI7fQ==) 23. NHS Digital. NHS Digital Dementia Dashboard. [https://digital.nhs.uk/data-and-information/data-tools-and-services/data-services/general-practice-data-hub/dementia-diagnosis-rate-and-prescription-of-antipsychotic-medication-to-people-with-dementia](https://digital.nhs.uk/data-and-information/data-tools-and-services/data-services/general-practice-data-hub/dementia-diagnosis-rate-and-prescription-of-antipsychotic-medication-to-people-with-dementia) (accessed 4 Nov 2021). 24. Oxford Health NHS FT Formulary. [https://www.oxfordhealthformulary.nhs.uk](https://www.oxfordhealthformulary.nhs.uk) (accessed 28 Apr 2022). 25. Howard R, Burns A, Schneider L. Antipsychotic prescribing to people with dementia during COVID-19. Lancet Neurol 2020;19:892. [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1016/S1474-4422(20)30370-7&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=33098796&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F01%2F07%2F2023.01.05.23284214.atom) 26. NHS Digital. Recorded Dementia Diagnosis, October 2021. 2021.[https://digital.nhs.uk/data-and-information/publications/statistical/recorded-dementia-diagnoses/october-2021](https://digital.nhs.uk/data-and-information/publications/statistical/recorded-dementia-diagnoses/october-2021) 27. NHS Digital. Health and Care of people with learning disabilities Experimental Statistics. [https://digital.nhs.uk/data-and-information/publications/statistical/health-and-care-of-people-with-learning-disabilities](https://digital.nhs.uk/data-and-information/publications/statistical/health-and-care-of-people-with-learning-disabilities) (accessed 4 Nov 2021). 28. Department of Health and Social Care. Good for you, good for us, good for everybody: A plan to reduce overprescribing to make patient care better and safer, support the NHS and reduce carbon emissions. 2021. 29. England NHS. Core20PlUS5 An approach to reducing Health inequalities. 2021. [https://www.england.nhs.uk/wp-content/uploads/2021/11/core20plus5-online-engage-survey-supporting-document-v1.pdf](https://www.england.nhs.uk/wp-content/uploads/2021/11/core20plus5-online-engage-survey-supporting-document-v1.pdf) 30. BETA – Data Security Standards - NHS Digital. NHS Digital. [https://digital.nhs.uk/about-nhs-digital/our-work/nhs-digital-data-and-technology-standards/framework/beta\---|data-security-standards](https://digital.nhs.uk/about-nhs-digital/our-work/nhs-digital-data-and-technology-standards/framework/beta\---|data-security-standards) (accessed 30 Apr 2020). 31. Data Security and Protection Toolkit - NHS Digital. NHS Digital. [https://digital.nhs.uk/data-and-information/looking-after-information/data-security-and-information-governance/data-security-and-protection-toolkit](https://digital.nhs.uk/data-and-information/looking-after-information/data-security-and-information-governance/data-security-and-protection-toolkit) (accessed 30 Apr 2020). 32. ISB1523: Anonymisation Standard for Publishing Health and Social Care Data - NHS Digital. NHS Digital. [https://digital.nhs.uk/data-and-information/information-standards/information-standards-and-data-collections-including-extractions/publications-and-notifications/standards-and-collections/isb1523-anonymisation-standard-for-publishing-health-and-social-care-data](https://digital.nhs.uk/data-and-information/information-standards/information-standards-and-data-collections-including-extractions/publications-and-notifications/standards-and-collections/isb1523-anonymisation-standard-for-publishing-health-and-social-care-data) (accessed 30 Apr 2020). 33. Secretary of State for Health and Social Care - UK Government. Coronavirus (COVID-19): notification to organisations to share information. 2020.[https://web.archive.org/web/20200421171727/](https://web.archive.org/web/20200421171727/)[https://www.gov.uk/government/publications/coronavirus-covid-19-notification-of-data-controllers-to-share-information](https://www.gov.uk/government/publications/coronavirus-covid-19-notification-of-data-controllers-to-share-information)