Introduction

High rates of psychiatric disorders [1,2,3] have been reported in patients infected with severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2) as a manifestation of post-acute sequelae of SARS-CoV-2, or long COVID [4,5,6]. Accumulating data further suggests pre-COVID psychological distress may increase the risks of long-term psychiatric illness after COVID-19 exposures [7]. However, most published report on post-COVID psychiatric illness has been based on individual self-reports of pre-COVID psychiatric history instead of clinical diagnoses [8]. Therefore, a full understanding of the long-term trends in post-COVID clinical psychiatric diagnoses is not yet known, especially regarding how trends may differ among people with and without pre-COVID psychiatric diagnoses [9,10,11]. It is unclear to what extent specific clinical diagnostic groups were differentially impacted by different phases of the pandemic [12, 13]. Monitoring trends in psychiatric diagnoses is important not only because post-COVID psychiatric symptoms commonly persist for a long time [14, 15], but they may worsen the quality of life and increase mortality among COVID-19 infected patients [3, 16].

The availability of data from electronic health records (EHRs) on patients with pre-COVID psychiatric diagnoses provides an opportunity to improve our understanding of trends in post-COVID clinical psychiatric diagnoses. EHRs capture pre-COVID and post-COVID psychiatric diagnoses in patients, and their different levels of severity of COVID-19 infection (as defined by hospitalizations after testing positive), allowing comparisons of post-COVID psychiatric diagnoses in patients with and without COVID-19 infection/hospitalizations during the same period.

New York City (NYC) offers an important context for studying trends of post-COVID clinical psychiatric diagnoses. NYC was an epicenter of COVID-19 infections in the United States during the early phase of the pandemic [17]. In April 2020, results from NYC Health Opinion Poll (NYC HOP) [18] suggested that 52% of NYC residents reported COVID-19 related anxiety symptoms, which was 5 to 7 times higher than the pre-COVID anxiety levels among NYC residents (9% based on the 2018 NYC Community Health Survey [19] and 7% based on the 2017 NYC Social Determinants of Health Survey [20]). A year after the pandemic (August 2021), the same survey reported anxiety (25%) and depressive (18%) symptoms remained high [21]. In June 2022, results from the Community Health Needs Assessment (CHNA) still reported difficulty accessing mental health treatment among communities served by NYC Health + Hospitals [22]. Despite the warning signs of increasing psychiatric illness burden since the pandemic [7, 23], few studies have comprehensively assessed the trends of post-COVID clinical psychiatric diagnoses across the NYC metropolitan region [24].

This study aimed to examine temporal trends in post-COVID clinical psychiatric diagnoses (after patients’ first SARS-CoV-2 test) between March 2020 and August 2021 (see Fig. 1). We are one of the first to differentiate trends by (1) pre-COVID psychiatric diagnoses (i.e., up to 3 years before the first SARS-CoV-2 test), (2) COVID-19 infection and hospitalization, and (3) psychiatric diagnosis groups. Before performing the analyses, we hypothesized that there would be greater post-COVID clinical psychiatric diagnoses among (1) patients with pre-COVID recent clinical psychiatric diagnoses, compared with those without; and (2) COVID-19 positive and/or hospitalized patients, compared with COVID-19 negative patients. Based on the earlier studies [25,26,27], we further hypothesized that (3) post-COVID trends in clinical psychiatric diagnoses would vary among people with different types of psychiatric diagnosis groups.

Fig. 1
figure 1

Flow chart of data extraction and study sample.

Methods

Study design and population

This is a time-series study with annual quarters (three months per quarter) as the primary unit of analysis. We used EHRs from Healthix, the largest health information exchange in the US, connecting over 30,000 healthcare providers across the NYC metropolitan region. Our sample came from 8,638 healthcare facilities across 5 boroughs (Bronx, Brooklyn, Manhattan, Queens, and Staten Island) in NYC and 192 unique zip codes (see eFig. 1 for geographic distribution). The healthcare facilities include 1783 (20.64%) ambulatory surgical centers, 1259 (14.58%) acute care units, 1192 (13.80%) non-intensive care units, 974 (11.28%) imaging and radiology centers, 947 (10.96%) medical offices, 758 (8.78%) hospice homes, 683 (7.91%) urgent care, 674 (7.80%) nursing homes, and 368 (4.26%) intensive care units.

We identified eligible patients with a SARS-CoV-2 test result recorded in Healthix between March 1, 2020, and August 31, 2021. We used March 1, 2020, as the start date because it was the first date after the US Food and Drug Administration (FDA) expanded laboratory-developed COVID-19 tests [28, 29], including real-time reverse transcription-polymerase chain reaction (RT-PCR) assays of nasopharyngeal, oropharyngeal, and sputum samples. In our sample, the RT-PCR test accounted for 23% of total COVID-19 tests, followed by Nucleic Acid Amplification Test (22%), antigen test (21%), antibody (serology) test (18%), and pooled sample testing (16%). This study was approved by the institutional review board of Weill Cornell Medicine (IRB protocol# 20-04021992).

Data collection and measures

Figure 1 presents our three-step data extraction process. First, we identified two groups of patients with and without any recent clinical psychiatric diagnoses up to 3 years before their first COVID-19 test and before March 2020. Second, we identified three subgroups by COVID-19 infection and severity: (1) COVID-19 positive hospitalized, (2) COVID-19 positive non-hospitalized, and (3) COVID-19 negative. We used a heuristic search algorithm to classify COVID-19 infections (positive, negative) among patients with multiple COVID-19 lab tests. Healthix provided a contextual patient classification system, where we applied a Knuth-Morris-Pratt (KMP) algorithm [30] to match the patterns of lab test results and to separate COVID-19 positive and negative patients. KMP algorithm can effectively filter data and extract the required features for classification [31]. Third, for all eligible patients with COVID-19 lab test results, we extracted their subsequent clinical psychiatric diagnoses using diagnosis codes after the encounter index date of their COVID-19 tests.

We focused on four groups of clinical psychiatric diagnoses (eTable 1), consistent with the Agency for Healthcare Research and Quality (AHRQ) Clinical Classifications Software (CCS) categories and the International Statistical Classification of Diseases, Tenth Revision, including (1) anxiety disorders, (2) mood disorders, (3) psychosis, and (4) substance use disorder (SUD) [32]. The AHRQ-CCS has been widely used for examining clinical psychiatric diagnoses [33]. We chose these four clinical psychiatric diagnoses as they were associated with COVID-19 infections and hospitalizations in the early pandemic [16, 34] and in previous studies [7, 8].

Our primary outcome was the percentages of patients with a clinical psychiatric diagnosis among the total number of visits. We assessed patient-level demographic characteristics: age, sex, race, and ethnicity. Race and ethnicity were categorized using AHRQ race categories (i.e., American Indian or Alaska Native, Asian, Black or African American, Hispanic, Native Hawaiian or Other Pacific Islander, Other Race, Patient Declined to Answer, Unknown, White). Healthix normalizes race and ethnicity values to maximize the accuracy of race and ethnicity. To maintain the accuracy of the race and ethnicity variables, we assigned missing and uncertain codes for race and ethnicity to an “Unknown” category (eTable 2).

Statistical analysis

To derive percentages of clinical psychiatric diagnoses per month adjusted for the number of visits per subgroup of interest in a specific month, we first obtained the monthly number of patients by COVID-19 infection and hospitalization status, separately by patients with and without recent clinical psychiatric diagnoses. We counted the number of distinct patients with specific clinical psychiatric diagnoses each month, divided by the number of patients enrolled in the same month. Monthly percentages of patients with clinical psychiatric diagnoses were examined following their first COVID-19 test (eTable 3, heat maps showing from lower [blue] to higher [red] rates).

Descriptive statistics were used to report percentages of clinical psychiatric diagnoses by month. We performed generalized linear mixed-effects (GLM) models with the Gaussian family and identified link specifications to estimate trends in clinical psychiatric diagnosis and their associations with recent clinical psychiatric diagnoses and COVID-19 infection and hospitalization status. In the primary analyses, we divided three months into a quarter and treated them as fixed effects. We used a significance threshold of p < 0.05 (2-sided). We provided results using listwise deletion, consistent with the descriptive analyses. For sensitivity analysis, we repeated the GLM by treating time as continuous measures (by month, by quarter) and applied multiple imputations to handle missing data. Results were consistent with the primary analyses reported below. Data extractions were conducted using the Python programming language version 3.7.4 (Python Software Foundation), and statistical analyses were completed using Stata 17/MP [StataCorp].

Results

Patient demographic characteristics

Of the total 2,358,318 eligible patients identified between March 1, 2020 and August 31, 2021, 271,345 (11.51%) were aged 0–17 years, 407,114 (17.26%) were aged 18–44 years, 827,280 (35.08%) patients were aged 46–65 years, 587,803 (24.92%) were aged 65–74 years, and 264,776 (11.23%) were 75 years and over. Most patients were females (n = 1,276,249, 54.12%). Among patients who reported a known race and ethnicity category, 103,295 (4.38%) were Asian Americans, 235,832 (10.00%) were Black, 296,308 (12.56%) were Hispanic, and 80,419 (3.41%) were White. 1,619,693 (68.68%) patients reported an “unknown” race category or “declined to answer” questions regarding race (Table 1).

Table 1 Demographic characteristics (n = 2,358,318).

Patients aged 45–64 years had higher percentages of hospitalization due to COVID-19 if they had a recent clinical psychiatric diagnosis (110,690 [42.03%]) compared to those aged 45–64 years but without a recent clinical psychiatric diagnosis (130,842 [34.01%]). Among patients with recent clinical psychiatric diagnoses, male and Hispanic patients had higher percentages of testing positive for COVID-19 and being hospitalized than females and non-Hispanic patients, respectively (Table 1).

COVID-19 infection and hospitalization status and subsequent clinical psychiatric diagnoses by recent clinical psychiatric diagnoses

Of patients with a recent psychiatric diagnosis (Fig. 1), 511,733 (56.9%) were tested positive for COVID-19, (263,359 [29.32%] were hospitalized, 248,374 [27.65%] were non-hospitalized) and 386,560 (43.1%) patients tested negative. COVID-19 positive patients had more subsequent psychiatric diagnoses than patients with negative test results. Mood disorders were most commonly diagnosed among COVID-19 positive patients, either hospitalized (63,966 [33.6%]) or not hospitalized (61,054 [33.6%]), while SUD was the most common disorder among patients who tested negative (53,718 [31.2%]). eTable 4 shows the pre-COVID percentages (before March 2010). Post-pandemic percentages of clinical psychiatric diagnoses in the first six months were greater than pre-COVID percentages between January and March 2020 and between 2017 and 2019 among patients with recent clinical psychiatric diagnoses.

In contrast, among patients without recent clinical psychiatric diagnoses, more COVID-19 positive patients were non-hospitalized (509,695 [34.91%]) than hospitalized (384,716 [26.3%]). Compared to patients with recent clinical psychiatric diagnoses, those without recent pre-COVID clinical psychiatric diagnoses had lower percentages of subsequent clinical psychiatric diagnoses, and the highest percentages of clinical psychiatric diagnoses were SUD (Fig. 1).

Overall trends of COVID-19 infection and hospitalization status by recent clinical psychiatric diagnoses

Figure 2 compares trends of COVID-19 infection and hospitalizations by recent clinical psychiatric diagnoses up to three years before patients’ first SARS-Cov-2 PCR test. Among patients with pre-COVID clinical psychiatric diagnoses, in the first month of the pandemic (March 2020), more patients who tested positive were hospitalized (30.4%) than non-hospitalized (24.1%). In contrast, among patients without recent clinical psychiatric diagnoses, more COVID-19 positive patients were non-hospitalized (39.6%) than hospitalized (22.1%) in March 2020 (Fig. 2A). The number of patients with COVID-19 infection and hospitalizations increased compared to COVID-19 negative patients (Fig. 2B).

Fig. 2: Trends of COVID-19 infection and hospitalization status by recent clinical psychiatric diagnoses.
figure 2

A Comparing total visit percentage. B Comparing total visit ratio.

Trends of clinical psychiatric diagnoses by recent clinical psychiatric diagnoses, separated by COVID-19 infection and hospitalization status

As shown in Fig. 3, patients with a recent clinical psychiatric diagnosis had greater anxiety disorders, mood disorders, and psychosis diagnoses in the early phase of the pandemic (March–August 2020) than those without recent clinical psychiatric diagnoses. These trends remained elevated for nearly a year till March 2021 among both COVID-19 positive and negative patients, except there were greater percentages of psychosis among patients without recent clinical psychiatric diagnoses in the first month of the pandemic (March–April 2020) among COVID-19 positive hospitalized patients.

Fig. 3
figure 3

Trends of clinical psychiatric diagnoses by recent clinical psychiatric diagnoses, separated by COVID-19 infection and hospitalization status.

In contrast, SUD diagnoses had the highest percentages among patients without recent clinical psychiatric diagnoses during the first six months of the pandemic (March-August 2020) among COVID-19 positive hospitalized patients (April 2020) and COVID-19 positive non-hospitalized patients and COVID-19 negative patients (June 2020).

SUD diagnoses decreased substantially between August-September 2020 among patients without a recent clinical psychiatric diagnosis but increased among those with a recent clinical psychiatric diagnosis. Yet, patients without a recent clinical psychiatric diagnosis had increased percentages of new psychiatric diagnoses starting February 2021 among both COVID-19 positive and negative patients. The largest magnitude of increases in post-COVID psychiatric diagnoses occurred in COVID-19 positive non-hospitalized patients (eTable 4).

Table 2 reports the associations between recent clinical psychiatric diagnoses, COVID-19 infection and hospitalization status, and trends in post-COVID psychiatric diagnosis. Compared to patients without a recent clinical psychiatric diagnosis, those with a recent clinical psychiatric diagnosis had increasing trends in subsequent diagnoses of anxiety disorders (β = 11.8, 95% CI [8.62, 14.9], p < 0.001), mood disorders (β = 16.8, 95% CI [13.4, 20.2], p < 0.001), and psychosis (β = 8.94, 95% CI [7.21, 10.7], p < 0.001). Compared to patients with a negative COVID-19 test, COVID-19 patients had greater subsequent diagnoses of all psychiatric diagnostic groups over time (p < 0.001).

Table 2 Associations between post-COVID clinical psychiatric diagnoses, pre-COVID clinical psychiatric diagnoses, and COVID-19 infection.

Trends of clinical psychiatric diagnoses by COVID-19 infection and hospitalization status, separated by recent clinical psychiatric diagnoses

As shown in Fig. 4, among patients with recent clinical psychiatric diagnoses, during the first month of the pandemic (March 2020 to April 2020), all psychiatric diagnoses decreased among COVID-19 positive hospitalized and non-hospitalized patients (Fig. 4A, B), while anxiety disorders increased among COVID-19 negative patients (Fig. 4C).

Fig. 4: Trends of clinical psychiatric diagnoses by COVID-19 infection and hospitalization status, separated by recent clinical psychiatric diagnoses.
figure 4

A Trends in patients with recent psychiatric diagnoses and COVID-19 positive with hospitalization. B Trends in patients with recent psychiatric diagnoses and COVID-19 positive nonhospitalized. C Trends in patients with recent psychiatric diagnoses and COVID-19 negative. D Trends in patients without recent psychiatric diagnoses and COVID-19 positive with hospitalization. E Trends in patients without recent psychiatric diagnoses and COVID-19 positive nonhospitalized. F Trends in patients without recent psychiatric diagnoses and COVID-19 negative.

Among COVID-19 positive hospitalized patients (Fig. 4A), percentages of anxiety disorder diagnoses were the highest until September 2020. The peak of anxiety disorders (70.8%) and mood disorders (61.5%) occurred in June 2020. Anxiety disorder diagnoses decreased afterward, whereas mood disorders re-emerged in September 2020 and remained the most prevalent until March 2021. Among COVID-19 positive non-hospitalized patients (Fig. 4B), anxiety disorder diagnoses were the highest between March and April 2020, while mood disorder diagnoses were the highest between May 2020 to March 2021.

Among COVID-19 negative patients (Fig. 4C), percentages of clinical psychiatric diagnoses each month were lower than those in COVID-19 positive patients. Clinical psychiatric diagnoses were the highest in the first two months of the pandemic for anxiety disorders (April 2020, 41.6%), mood disorders (March 2020, 23.0%), and SUD (January March, 37.3%), which decreased gradually. Psychosis diagnosis increased since October 2020 and remained the highest between October 2020 and February 2021 (peak in December 2020, 14.6%) before a gradual decrease till August 2021.

Among patients without a recent clinical psychiatric diagnosis (Fig. 4D, E), newly diagnosed SUD was substantially higher than diagnoses of anxiety disorders, mood disorders, and psychosis between March 2020 and August 2020, regardless of COVID-19 infection/hospitalization. Such high-level of SUD diagnoses started to decrease from August 2020 but remained the highest psychiatric diagnostic group till January 2021 (for COVID-19 negative patients), March 2020 (for non-hospitalized COVID-19 patients), and May 2021 (for hospitalized COVID-19 positive patients). By contrast, anxiety disorders, mood disorders, and psychosis began to increase after a year of the pandemic (since March 2021) among COVID-19 negative patients and COVID-19 positive non-hospitalized patients.

Discussion

Patients with recent pre-COVID clinical psychiatric diagnoses, compared to those without, had greater percentages of anxiety disorders, mood disorders, and psychosis diagnoses, early in the pandemic in March 2020 in NYC. Anxiety and mood disorders were the most commonly diagnosed in the first year of the pandemic among COVID-19 positive patients with recent clinical psychiatric diagnoses. Among patients without a recent pre-COVID clinical psychiatric diagnosis, new SUD diagnoses were substantially higher than other psychiatric diagnoses in the first six months of the pandemic (March-August 2020), which remained the most diagnosed disorder till May 2021. Since February 2021, there have been continuous increases in newly diagnosed anxiety disorders, mood disorders, and psychosis across COVID-19 positive and negative patients.

Differential trends by recent pre-COVID clinical psychiatric diagnoses

Our findings are consistent with previous studies suggesting increases in clinical psychiatric diagnoses after the COVID-19 pandemic [35,36,37]. We extend previous findings with systematic documentation of recent clinical psychiatric diagnoses up to 3 years before the pandemic, allowing benchmark comparisons of trends in post-COVID psychiatric diagnoses by preexisting psychiatric conditions [38, 39]. We further observed that among patients without recent clinical psychiatric diagnoses, SUD diagnoses were substantially high in the early pandemic between March and August 2020.

Individuals with pre-COVID clinical psychiatric diagnoses may be at greater risk for COVID-19 infection and hospitalization, partly because they were more likely to experience co-occurring medical conditions (e.g., cancer, cerebrovascular diseases, congestive heart failure, pulmonary disease) [40]. After being infected by SARS-CoV-2, patients with pre-COVID clinical psychiatric diagnoses, compared with those without, may have greater risks for subsequent psychiatric disorder diagnoses because of greater levels of stress, dysregulated immune functions [41], and social and economic consequences [3, 35].

In early March 2020, NYC emerged as an epicenter for COVID-19 [42], which exerted sudden and widespread closures of medical practices, disrupting access to mental health services for patients with pre-existing clinical psychiatric diagnoses [43]. The unprecedented social distancing policies also introduced stress, fear, and uncertainty that may have disproportionately impacted patients with pre-COVID clinical psychiatric diagnoses [35, 37, 44].

Differential trends by COVID-19 infections and severity

Previous studies suggested that COVID-19 positive patients who survived are at increased risk of psychiatric sequelae [1]. We extended this line of research by demonstrating short-term and long-term (18 months) changes in psychiatric diagnoses across different stages of the pandemic [45]. For all patients, regardless of COVID-19 infection, anxiety and mood disorders diagnoses remained high in the first six months of the pandemic, which may have reflected the secondary impacts of the COVID-19 pandemic on mental health (e.g., through lockdown, social distancing, economic disruptions, grief, and loss) [11, 46]. The monthly percentages of psychiatric diagnoses decreased during the first month (March-April 2020) in COVID-19 positive patients, which may be explained by larger representations of 45–64 years old, female, Black, and Hispanic patients who tested positive for COVID-19, but who experienced barriers to accessing healthcare facilities for psychiatric treatment and diagnoses during the peak of COVID-19 infection in NYC [47, 48].

Similar to a cross-sectional study in Italy [49], we observed increases in psychiatric diagnoses were the highest early in the pandemic (when COVID-19 infections were the highest) but started to decrease along with the decline in COVID-19 cases. However, we further observed that among patients without pre-COVID psychiatric diagnoses, new psychiatric diagnoses increased after a year of the pandemic among all patients, which is consistent with a prior longitudinal study [8]. This may reflect the lagged impact of pandemic-related stress and trauma, losses of loved ones, disrupted healthcare utilizations, and social restrictions, which may emerge during the pandemic recovery phase [11, 50, 51]. Future studies are encouraged to investigate the compound impact of COVID-19 infections, pandemic-related stressors, and grief on clinical psychiatric diagnoses in the longer term [11].

Differential trends by specific clinical psychiatric diagnostic groups

The dramatic increases in anxiety disorders and mood disorders diagnoses in the early pandemic are consistent with findings in the general population from national surveys in the US and other countries during the COVID-19 pandemic [52,53,54,55]. For example, the Johns Hopkins COVID-19 Civic Life and Public Health Survey covering 97% of national adults found greater symptoms of psychological distress in April 2020 than in 2018 [56]. It is noted that EHR data underestimate the number of psychiatric disorders because patients may face challenges in accessing timely mental health services or delayed seeking care for psychiatric illnesses during the pandemic to avoid COVID-19 infection risks in medical settings.

The dramatic increase in new SUD diagnoses among patients without recent clinical psychiatric diagnoses is consistent with prior investigations [8]. A nationwide survey conducted between April and May 2020 found an 18.2% increase in SUD among U.S. adults [57]. COVID-19 disruptions may also create barriers to access to therapy and compliance with medication for SUD patients [58]. Patients without recent psychiatric diagnosis may be at risk of substance misuse to cope with stress during the COVID-19 pandemic [57], which may be explained by insufficient access to harm reduction resources targeting people without pre-existing disorders.

The COVID-19 pandemic has posed challenges, as well as new opportunities for increasing access to treatment of opioid use disorder [59,60,61]. Recent studies found prescriptions for buprenorphine for SUD and opioid analgesics decreased among new, but not existing, patients during the COVID-19 pandemic [62]. In another time-series study conducted in Michigan, fatal overdose deaths showed a substantial increase in the spring of 2020 [63]. It is worth noting that medications for opioid use disorder (MOUD) and telehealth utilization were expanded throughout NYC during the pandemic, which may explain the continual decrease of post-COVID SUD diagnoses since August 2020 [64, 65]. As a majority of SUD may not be captured in clinical encounters, future studies are needed to empirically examine the compound mental health impact of the pandemic due to COVID-19 virus infections, treatment access, and government responses.

Social determinants of psychiatric diagnoses

Other factors associated with the impact of the COVID-19 pandemic on clinical psychiatric diagnoses include social distancing, unemployment, school disruptions, economic downturn, and reduced mental health utilization [66]. Social determinants of health, including food insecurity [67], reduced exercises [68], comorbid medical conditions [69], sleep problems [70], and worsened interpersonal relationships [69] may also exacerbate the risks of psychiatric illnesses. Several studies have shown that COVID-19-associated outcomes have disproportionately impacted racial and ethnic minorities [71,72,73,74]. Among those with psychiatric diagnoses in our study, patients aged 45-64 years, females, those from unknown race/ethnicity groups, and Black and Asian patients were more likely to be infected by COVID-19 and hospitalized. Hence, future studies should focus on collecting more information on SDoH (e.g., economic disruptions, food insecurity, healthcare accessibilities) to understand the impacts of pandemic-related socioeconomic disruptions on clinical psychiatric diagnoses among vulnerable populations [71, 75, 76].

Clinical and policy implications

Findings from this study could inform future pandemic-related policymaking. First, patients with recent clinical psychiatric diagnoses had higher anxiety and mood disorders than those without at the beginning of the pandemic. Because patients with recent clinical psychiatric diagnoses were associated with greater risks of COVID-19 infections and adverse outcomes [61], including suicide and mortality [40, 57, 75, 77,78,79], clinicians and public health practitioners need to prioritize screening and treating individuals with clinical psychiatric diagnoses as part of the strategy to control the pandemic while reducing disparities in access to healthcare support.

Second, given the substantial increase in SUD among patients without recent clinical psychiatric diagnoses, public health practitioners and policymakers should investigate rising substance misuse, including alcohol and opioids, and improve access to alternative modes of mental health care (i.e., telehealth or virtual care) [64, 80].

Third, the increase in new psychiatric diagnoses since February 2021 is of concern. Policymakers should continue investigating the adverse long-term mental health impacts of the COVID-19 pandemic and monitoring the effects of mental health treatment disruptions and reconnections during the later recovery from COVID-19. Comprehensive strategies to reduce psychiatric diagnoses should address pre-existing and pandemic-related SDoH.

Strengths and limitations

One of the key strengths of our study is screening for pre-COVID psychiatric diagnoses (3 years before the first COVID-19 tests) and using a heuristic search algorithm to classify COVID-19 positive/negative among patients with multiple COVID tests. Understanding long-term trends in psychiatric sequelae over time across COVID-19 infection and severity provides a detailed understanding of the potential effects of COVID-19 infection on mental health, which could inform future interventions to reduce psychiatric diagnoses among specific at-risk populations.

This study has limitations. First, our sample was only from NYC, which may not be generalized to other areas in the US. Data from the Bronx and Staten Island is not comprehensive as those from the other boroughs. Clinical psychiatric diagnoses based on ICD-10 diagnosis codes may not reflect population rates of psychiatric illnesses and may not include lifetime psychiatric history, compared with clinical interviews in previous studies [7, 8]. Nevertheless, psychiatric diagnoses in EHRs reflect the clinically recognized prevalence of mental health disorders.

Second, there are substantial missing values in race and ethnicity data, which is a common challenge when using EHR data. We also lack individual-level socioeconomic status data, as in most of the other EHR datasets. Since existing socioeconomic and racial disparities in healthcare access in NYC may further exacerbate the adverse mental health impact of COVID-19 infections on clinical psychiatric diagnoses [47], future research should explore the associations between socioeconomic status and trends in clinical psychiatric diagnoses.

Third, although we show possible relationships between COVID-19 infections, hospitalizations, and clinical psychiatric diagnoses by recent clinical psychiatric diagnoses, we did not estimate their causal associations, which would require further adjustment of potential confounding variables.

Fourth, we do not know the mortality status of patients in Healthix or differentiate co-morbid clinical psychiatric diagnoses. We also included the relatively broad category of clinical psychiatric diagnoses instead of specifying subgroups within each diagnostic group. Future research is encouraged to study how subgroups of clinical psychiatric diagnoses may respond differently to COVID-19 infections, as they may have distinct biological underpinnings [81].

Conclusion

Patients with recent clinical psychiatric diagnoses were at higher risk of mood disorders and anxiety at the beginning of the pandemic. Among patients without a recent clinical psychiatric diagnosis, SUD increased from March 2020 to September 2020, and subsequent anxiety, mood, and psychosis diagnoses increased after a year of the pandemic. Future policies should consider improving access to mental health treatment, expanding alternative services such as telehealth coverage, and developing targeted evidence-based mental health and substance use recovery interventions [64]. Policies that address pre-COVID social determinants of health, including food, health care, and socioeconomically disadvantaged communities, are also critical to reducing the social and mental health impact of COVID-19.