Introduction

On 31 December 2019, the Wuhan Municipal Health Commission (China) reported a cluster of pneumonia cases of unknown origin that were subsequently found to be caused by SARS-CoV-2, the virus responsible for the clinical picture referred to as COVID-191. By the beginning of 2020, the emergency epidemiological crisis resulting from SARS-CoV-2 had overwhelmed Spanish medical resources2 and so healthcare workers (HCWs) had to face the situation with a lack of personal protective equipment3. Consequently, up to 26% of all people infected with COVID-19 in Spain during the first wave were HCWs, as compared to around 9% in Italy4.

Background

Multiple studies have analysed how the COVID-19 pandemic, as well as work-related factors such as professional category, exposure to an unknown virus, high infection rates, and staff shortages resulting in increased working hours and workload, impacted the mental health of HCWs5,6,7. Indeed, high levels of anxiety, depression, post-traumatic stress disorder (PTSD), and burnout, a dysfunctional response to prolonged work stress characterised by the appearance of emotional exhaustion, depersonalisation, and low personal fulfilment8, were reported in Spain8,9 and worldwide10,11. In this regard, psychopathology has also been linked to the development of burnout5 and vice versa12. However, fewer studies have explored whether the workplace environment itself (i.e., hospital versus extra-hospital contexts) can affect the appearance of psychopathology and burnout in HCWs.

A relevant example of the extra-hospital context is nursing homes, where HCWs not only had to deal with long work shifts, high workloads, and an elevated risk of contagion13, but also suffered from the high number of resident deaths, which amounted to more than 34,000 at the beginning of 202314. This implies that a quarter of all people who died from COVID-19 in Spain were nursing home residents. As a result, nursing home HCWs were at greatest risk of suffering from psychopathology during this time15.

In addition to the previous extrinsic factors, various studies have also analysed whether intrinsic factors, such as existential or moral dimensions, are related to the development of psychopathology and burnout in HCWs.

One of these intrinsic dimensions is purpose in life (PIL), understood as the perception each individual has that their life has a purpose and value16. PIL is a long-standing concept that was first defined by Viktor Frankl after World War II, and is a key dimension of meaning in life, with both these concepts, in turn, being related to resilience17. Although the influence of PIL on psychopathology has been studied previously, high PIL scores were associated with lower levels of anxiety, depression, acute stress, and burnout among HCWs during the COVID-19 pandemic8,18.

In this context, another relevant dimension is moral courage (MC), understood as the ability to face danger or social disapproval when one is doing what they consider to be their duty19. The role of MC in mental health is complex because it is closely linked to other dimensions such as moral resilience or moral distress and can both protect against and also generate psychopathology. In this sense, the pandemic may have been a key source of moral distress, defined as the dissonance caused by the gap between the moral values of an individual and the behaviour they are ultimately able to perform because of the context20. Indeed, high MC was associated with a higher probability of suffering psychopathology during the COVID-19 pandemic18.

All these findings seem to indicate that to obtain a more complete view of the psychopathology caused by the pandemic, other influencing variables such as PIL, MC, burnout, and the workplace environment must be considered. However, very few studies have compared the presence of psychopathology and burnout in hospital and nursing home HCWs during the COVID-19 pandemic and none of them considered the roles that PIL and MC may have played in their occurrence.

Purpose

The objective of this current study was to compare the presence of psychopathology and burnout in hospital and nursing home HCWs during the COVID-19 pandemic and to analyse the possible effects of PIL and MC in this context. We hypothesised that: (1) psychopathology and burnout would be higher in nursing home healthcare workers than in hospital healthcare workers; (2) purpose in life would be a protective factor and moral courage a risk factor for psychopathology and burnout both in nursing home and hospital healthcare workers.

Thus, this study aimed to improve our understanding of the mental health of HCWs in nursing homes during the COVID-19 pandemic, which has been under-researched in most studies. Furthermore, we hoped that analysing PIL and MC in special contexts such as a pandemic would deepen our understanding of the nature and effect of these factors.

Material and methods

Study design

Given the research objective and exploratory nature of this work, we conducted a cross-sectional study following the STROBE guidelines for observational studies. Therefore, we limited the inclusion and exclusion criteria so that all participating HCWs had worked during the COVID-19 pandemic and spoke Spanish. G*Power software (v3.1.9.4) was used to estimate the required sample size, considering an expected effect size of d = 0.55, an alpha of 5%, and beta of 20% for 2 groups, with an allocation ratio of 1. Hence, we estimated that an overall sample size of 84 or 88 would be required to perform sufficiently powered Student t or Mann–Whitney U tests, respectively.

Recruitment and participants

A convenience and snowball sampling strategy were used to recruit a total of 108 participants, thus ensuring the sample size was sufficient to analyse the variables of interest. The sample comprised 54 HCWs from the Consorcio Hospitalario Provincial de Castellón, the second largest hospital in the city, and another 54 HCWs from several Spanish nursing homes. The cohort included clinical staff (n = 75) such as nurses, nursing assistants, and doctors as well as non-clinical staff (n = 33), who were mainly administrative workers (n = 15), although social workers and cleaning staff, among others, were also included. We considered that both clinical and non-clinical staff had been frontline workers during the COVID-19 pandemic because there had been general uncertainty about which patients were infected, a lack of personal protective equipment, and a high risk of infection among all staff in both Spanish hospitals and nursing homes. The HCW sample from the Consorcio Hospitalario Provincial de Castellón was obtained from a previous study conducted between September and November 20218, while the nursing home HCW data were collected between October 2021 and January 2022, with both periods falling between the 5 and 6th waves of the COVID-19 pandemic in Spain.

Instruments and data collection

The questionnaires were provided to the HCWs from the Consorcio Hospitalario Provincial de Castellón both in paper and electronic formats between September and November 2021, and because of their multicentric nature, to nursing home HCWs only in an electronic format between October 2021 and January 2022. No differences were expected because the same surveys were sent in both cases. To avoid duplication or fraud with the online surveys, the first and last names of the participants and their work e-mails were collected and the surveyees were assigned an anonymous identification code. This information was encrypted in a separate database which only the principal investigator had access to.

Participants were required to sign their informed consent to participation before commencing the study. All the surveys were self-administered and had been previously validated for Spanish speakers. The questionnaires and methodology were similar to those used in previous studies8,18,21.

First, the participants completed a sociodemographic questionnaire that asked about their age, sex, religiosity, marital status, professional category, level of responsibility/role, contract type, time working in their current role, history of physical conditions or mental health disorders, COVID-19 vaccination status, and whether they smoked and the number of cigarettes they smoked.

Second, personal and family/friend exposure to SARS-CoV-2 was assessed using a questionnaire that had been previously employed during the COVID-19 pandemic18. PIL was evaluated using the Purpose in Life Test, a 20-item Likert scale test that scores, from 20 to 140, the extent to which each individual considers that their life has a purpose (reliability = 0.89; adequate factorial validity)16. This test comprises four dimensions (perception of meaning, experience of meaning, goals and tasks, destiny-freedom dialectic) and has a cut-off point (CP) score of 113, with those exceeding this considered to have a PIL. MC was analysed using the Moral Courage Scale for Physicians (MCSP), a 9-item dichotomous scale that scores, from 0 to 9, the ability of medical personnel or healthcare professionals to face disapproval when doing what they believe is their duty (reliability = 0.74; adequate factorial validity)22. The MCSP does not have a CP and higher scores indicate greater MC. The Professional Moral Courage Scale (PMCS), which comprises 12 dichotomous items with a maximum score of 12 (reliability = 0.81; adequate factorial validity)23, was also used to analyse MC.

Third, psychopathology and burnout were assessed using various measures described below. Total scores and dichotomous variables were calculated for these scales, and the participants were divided into those who scored above the CP of each scale, thus screening positive for the psychopathology, and those who did not. Anxiety was measured using the Beck Anxiety Inventory (BAI), a 21-item Likert scale with scores ranging from 0 to 63 and a CP of 8 (reliability = 0.90; adequate factorial, discriminant and criterion validity)24. Depression was assessed using the Beck Depression Inventory (BDI-II), also a 21-item Likert scale with a CP of 14 (reliability = 0.89; adequate factorial, convergent, discriminant, and criterion validity)25. Acute stress disorder was assessed using the Acute/Post-Traumatic Stress Disorder Scale (ETEA-PT), a 15-item Likert scale based on the DSM-5 criteria for these disorders with a CP of 9. An additional ETEA-PT item that asked whether symptoms had lasted more than one month was used to assess PTSD (reliability = 0.81)18. Drug abuse was tested employing the Drug Abuse Screening Test-10 (DAST-10), a 10-item dicotomic scale ranging from 0 to 10 with a CP of 1 (reliability = 0.89; proven predictive validity)26. Finally, alcohol abuse and problems related to alcohol use were assessed with the Alcohol Use Disorders Identification Test (AUDIT), a 10-item Likert scale ranging from 0 to 40 with a CP of 6 for women and 8 for men (reliability = 0.75; adequate criterion and predictive validity)27. The Maslach Burnout Inventory-Human Services Survey (MBI-HSS) was used to evaluate the presence of burnout and its subdimensions. This Likert scale consists of 22 items and comprises three dimensions: personal accomplishment, emotional exhaustion, and depersonalisation (reliability = 0.71, 0.85, and 0.58, respectively)28. The score of each subscale is calculated by summing its items and, because of the dimensional complexity of burnout, both the overall score and the scores of one or several subdimensions have been used in the academic literature. Thus, in this current work, the presence of burnout was defined as a high level of either emotional exhaustion (CP ≥ 27) or depersonalisation (CP ≥ 10)29.

In addition, a three-item Likert scale was administered to ask participants about their subjective opinion of the change in their mental health since the beginning of the COVID-19 pandemic. Finally, an overall psychopathology score was calculated by summing the absolute scores of each of the psychopathology scales (BAI + BDI + ETEA/TP + DAST-10 + AUDIT).

Data analysis

First, an exploratory (normality, independence, homoscedasticity, linearity, and non-collinearity) and descriptive study was undertaken. Second, to test hypothesis 1, sociodemographic characteristics, SARS-CoV-2 exposure, PIL, MC, psychopathology, and burnout were compared between the two study groups. Quantitative variables were evaluated using Student t and Mann–Whitney U tests (when the assumptions for the application of parametric tests were or were not met, respectively). Categorical variables were compared using Pearson chi-squared test. Third, to test hypothesis 2, generalized linear models and logistic regressions were created for the dependent variables, introducing personal or family/friend exposure to SARS-CoV-2, PIL, and PMCS as predictors. MCSP was excluded from the regression analyses because of collinearity problems with PMCS. Finally, the data were modeled using the PROCESS plugin (v3.4) for SPSS30 to study the relationships between the most prominent variables in the regression models. Missing data were eliminated pairwise in each test or analysis.

Ethical considerations

The ethical principles set out in the Declaration of Helsinki and by the Council of Europe Convention were followed and the informed consent of all participants was obtained. Moreover, data confidentiality was guaranteed according to the General Data Protection Regulation (GDPR; 2018). This study was authorised by the Institutional Review Board (ref. A-15/04/20) and the Clinical Research Ethics Committee (ref. CEI20/068).

Results

Participant sociodemographic characteristics

Regarding the sociodemographic characteristics of the participants, the median (Me) sample age was 41 years and 85.2% (n = 92) of the participants were women. Significantly more nursing home HCWs (81.5%; n = 44) than hospital HCWs (52.8%; n = 28) self-identified as religious (χ2 = 9.97, p = 0.002). In terms of professional category, there were significantly more nurses (38.9%; n = 21) in the hospital sample than in the nursing home cohort (13%; n = 7), while there were more nursing assistants (48.1%; n = 26) in the nursing home group compared to the hospital group (13%; n = 7) (χ2 = 34.39, p < 0.001). Doctors were only present in the sample from the hospital (25.9%; n = 14). Significantly more nursing home HCWs included in the cohort (22.2%; n = 12) occupied a position of responsibility compared to the hospital HCWs (7.4%; n = 4) (χ2 = 4.69, p = 0.03). Nursing homes stood out because significantly more HCWs (55.6%; n = 30) had worked in their current job for 1 to 10 years when compared to the hospital HCWs (23.1%; n = 6) (χ2 = 9.51, p = 0.02). Finally, there were significantly more smokers in the nursing home sample (40.7%; n = 22) than in the hospital group (16.7%; n = 9) (χ2 = 7.64, p = 0.006) (Table 1).

Table 1 Sociodemographic characteristics of the study participants.

Personal and family/friend exposure to SARS-CoV-2, purpose in life, and moral courage

Table 2 shows that there was significantly greater personal and family/friend exposure to SARS-CoV-2 in the nursing home group (Me = 4; interquartile range [IQR] = 3) than in the hospital group (Me = 2; IQR = 3.25) (Mann–Whitney U = 1,831.5, p = 0.02). Likewise, the MCSP scale score was significantly higher in the nursing home group (Me = 9; IQR = 1) than in the hospital group (Me = 8; IQR = 2) (Mann–Whitney U = 1,667.5, p = 0.009). Surprisingly, there were no differences in PIL between the two groups.

Table 2 Personal and family/friend exposure to SARS-CoV-2, purpose in life, and moral courage among nursing home and hospital healthcare workers.

Psychopathological and burnout variables

Regarding the psychopathology results (Table 3), compared to hospital HCWs, more nursing home HCWs presented anxiety (74.1%; n = 40 vs. 42%; n = 21) (χ2 = 11.01, p =  < 0.001), depression (40.7%; n = 22 vs. 14.8%; n = 8) (χ2 = 9.04, p = 0.003), acute stress (70.4%; n = 38 vs. 25.9%; n = 14) (χ2 = 21.36, p < 0.001), PTSD (55.6%; n = 25 vs. 25.9%; n = 14) (χ2 = 9.02, p = 0.003), and at least one mental health disorder (85.2%; n = 46 vs. 56.3%; n = 27) (χ2 = 10.45, p = 0.001).

Table 3 Psychopathology and burnout among nursing home and hospital healthcare workers.

Likewise, compared to hospital HCWs, nursing home HCWs also had higher scores on the BAI (Me = 14.5; IQR = 15.5 vs. Me = 6; IQR = 10.2) (Mann–Whitney U = 1,911.5, p < 0.001), BDI-II (Me = 11.5; IQR = 11.2 vs. Me = 4; IQR = 10) (Mann–Whitney U = 2,073.5, p < 0.001), and ETEA-PT scales (Me = 14; IQR = 10.2 vs. Me = 4; IQR = 7) (Mann–Whitney U = 2,443.0, p < 0.001), as well as for overall psychopathology score (Me = 20; IQR = 26 vs. Me = 43; IQR = 33.5) (Mann–Whitney U = 1,892.5, p < 0.001).

Finally, from the start of the COVID-19 pandemic, compared to hospital HCWs, more nursing home HCWs had perceived a worsening in their mental health (64.8%; n = 35 vs. 35.8%, n = 19), while more hospital HCWs than nursing home HCWs had perceived an improvement in their mental health status (20.1%; n = 11 vs. 3.7%; n = 2) (χ2 = 11.863, p = 0.003) (Table 3).

Generalized linear models, logistic regressions, and psychopathology data model

There were no differences in the predictors of psychopathology when nursing home and hospital HCWs were analysed separately, except in the case of personal and family/friend exposure to SARS-CoV-2, which could predict ETEA-TP in nursing home HCWs (β = 1.94; 95% CI [1.01, 3.73]; p = 0.04) but not in hospital HCWs. Table 4 shows the generalized linear models and logistic regressions used to predict the appearance of a psychopathology or burnout in the overall study sample.

Table 4 Generalized linear models and logistic regressions predicting psychopathology and burnout in nursing home and hospital healthcare workers.

PIL could predict the scores for the BAI (OR = 0.80; 95% CI [0.72, 0.89]; p < 0.001), BDI (OR = 0.77; 95% CI [0.70, 0.83]; p < 0.001), and ETEA-PT scales (OR = 0.90; 95% CI [0.85, 0.96]; p = 0.001), as well as PTSD (OR = 0.96; 95% CI [0.93, 0.98]; p = 0.006) and the overall psychopathology score (OR = 0.54; 95% CI [0.44, 0.68]; p < 0.001). In addition, PIL could also predict the overall MBI-HSS score (OR = 0.48; 95% CI [0.37, 0.61]; p < 0.001), MBI-HSS emotional exhaustion (OR = 0.66; 95% CI [0.57, 0.77]; p < 0.001), MBI-HSS depersonalisation (OR = 0.88; 95% CI [0.82, 0.93]; p < 0.001), and MBI-HSS personal accomplishment (OR = 1.22; 95% CI [1.13, 1.32]; p < 0.001) burnout subscale scores.

In turn, the MCSP could predict the scores on the BDI-II (OR = 0.47; 95% CI [0.23, 0.96]; p = 0.04) and ETEA-TP (OR = 0.45; 95% CI [0.23, 0.87]; p = 0.001) scales. Finally, personal and family/friend exposure to SARS-CoV-2 could predict PTSD (OR = 1.33; 95% CI [1.01, 1.75]; p = 0.03), ETEA-TP (OR = 2.24; 95% CI [1.19, 4.21]; p = 0.01), and MBI-HSS depersonalisation burnout subscale scores (OR = 1.84; 95% CI [1.06, 3.18]; p = 0.02).

Given that PIL predicted both psychopathology and burnout in the linear regressions, we modelled these data to learn about the mutual interactions between these variables (Fig. 1). Thus, a reciprocal influence was found between PIL and psychopathology (B =  − 0.31; 95% CI [− 0.56, − 0.06]; p = 0.01; B =  − 0.35; 95% CI [− 0.48, − 0.21]; p < 0.001), PIL and burnout (B =  − 0.45; 95% CI [− 0.70, − 0.19]; p < 0.001; B =  − 0.35; 95% CI [− 0.47, − 0.23]; p < 0.001), and psychopathology and burnout (B = 0.44; 95% CI [0.25, 0.64]; p < 0.001; B = 0.39; 95% CI [0.22, 0.56]; p < 0.001).

Figure 1
figure 1

Explanatory model of psychopathology, burnout, and purpose in life.

Discussion

To the best of our knowledge, this is the first study to compare the appearance of psychopathology and burnout during the COVID-19 pandemic in nursing home and hospital HCWs, in addition to the predictive role of PIL and MC. Consistent with our first hypothesis, the prevalence of psychopathology was higher in nursing home HCWs than in hospital HCWs, as also previously reported in another Spanish study15. Furthermore, nursing home staff were more likely to have reported a deterioration in their mental health since the start of the pandemic. In this sense, professional category may have been one of the main reasons for these differences in psychopathology, because the nursing home cohort had included a higher percentage of nursing assistants. In fact, some studies have suggested that nursing assistants were one of the groups most affected by the COVID-19 pandemic7,15. Another reason may have been the high mortality rate (up to 50% of the deaths in the first wave) registered in Spanish nursing homes as a result of COVID-1915.

Although our hypothesis of a higher prevalence of burnout among nursing home HCWs was not supported, we demonstrated that burnout and psychopathology were closely related (Fig. 1). In fact, previous studies have shown that burnout can increase the prevalence of psychopathology31 and vice versa12. However, some extrinsic factors such as personal and family/friend exposure to SARS-CoV-2 may have also played an important role in the appearance of psychopathology and burnout during the COVID-19 pandemic. In fact, this latter risk factor could predict acute stress and PTSD, as well as higher scores on the burnout depersonalisation subscale. Regarding this finding, a previous qualitative study indicated that nursing home HCWs said that one of their main concerns was the transmission of SARS-CoV-2 to their family and friends and that this worry was more stressful to them than contracting the virus themselves32. This fear may have led HCWs to feel trepidation when managing residents with COVID-19, which in turn, has been linked to a higher prevalence of PTSD and increased burnout depersonalisation subscale scores33, perhaps in response to a dissociative defense mechanism.

In addition to the extrinsic factors mentioned above, intrinsic dimensions such as PIL predicted both the occurrence of psychopathology and burnout, although MC only predicted psychopathology, thereby partially satisfying our second hypothesis. In line with both our second hypothesis and the results of previous studies8,18, we observed that high levels of PIL were associated with lower scores for anxiety, depression, acute stress, PTSD, and burnout. These findings could be explained by the fact that PIL is framed within logotherapy and the salutogenic approach to wellbeing34. Thus, a high PIL would endow people with greater resilience and coherence in stressful situations, while the opposite situation would be related to a greater likelihood of developing mental health disorders18,35. Indeed, a study in nursing home staff during the COVID-19 pandemic showed that low resilience was associated with higher levels of depression36.

In contrast to our hypothesis, MC predicted lower depression and acute stress scores in our cohort. Although MC has often been identified as a risk factor for psychopathology because of its association with the concept of ‘moral distress’, it may also be a protective factor against suffering moral distress and, in turn, psychopathology. This ‘double-edged sword’ effect depends on the ability of individuals to act in accordance with their moral expectations37, with a failure in being able to do so leading to psychopathology. This phenomenon is also related to the concept of ‘moral resilience’, which refers to the ability to maintain or restore one’s integrity in response to moral adversity. Indeed, moral resilience has been shown to moderate the relationship between exposure to potentially morally distressing events and moral distress and was correlated with lower anxiety and depression in HCWs during the COVID-19 pandemic38.

Considering all the above, different authors have proposed several measures to improve crisis management in nursing homes, including the development of personalised action protocols for each site or coordination teams in conjunction with local healthcare services39. These measures could reduce the number of deaths among older adults and therefore, reduce the overwhelming work-related situations faced by HCWs that could affect their mental health40. The simultaneous development of resources focused on the mental health of HCWs, such as psychological support teams, peer-to-peer programmes, or coping groups, is also recommended. These measures would be useful in the prevention and management of the psychopathology developed during health emergencies20,41. In this regard, future management policies should include the systematic and regular assessment of signs of mental disorders in HCWs9,40.

Finally, several limitations to this work should be highlighted. First, this was a cross-sectional study, meaning that no inferences regarding causality can be made. Second, since a convenience and snowball sampling strategy were used, the number of people requested to participate in this study and their response rate could not be quantified. Therefore, potential non-response bias or early versus late bias could not be analysed. Furthermore, because of the urgency of the situation caused by the COVID-19 pandemic, measures to mitigate potential common methodological biases could not be implemented. Third, although the hospital sample was drawn exclusively from Castellón, the nursing home sample was recruited from different regions of Spain, leading to a small time lag between the collection of data from the two sample cohorts. Nevertheless, the incidence of COVID-19 in Spain remained broadly the same during both periods and was unlikely to have affected the outcomes. Fourth, although we wanted to address the impact of the pandemic in a naturalistic way by including non-clinical staff, since they may have had less contact with COVID-19, they could be considered non-frontline workers and thus influence the results. Nonetheless, a post hoc analysis to assess the relationship between SARS-CoV-2 exposure and professional categories found no differences between them. Finally, the main study limitation was the differences in sociodemographic characteristics between the two groups, which calls into question the comparability of the groups and role these differences may have played as a significant factor contributing to the results. However, this was an exploratory study with a small sample size compared to the large number of variables studied, thereby leading us to conduct parsimonious analyses. Notwithstanding, it would be interesting to control for these sociodemographic variables in future work in order to discriminate their possible role as confounding variables in the development of psychopathology. Nevertheless, it is still worth highlighting that the variables predicting psychopathology and burnout were almost the same in both groups.

Taken together, these limitations compromise the ability of this work to elucidate the full extent of the influence of PIL and MC on psychopathology or to recommend psychological approaches including these dimensions. Thus, future studies should consider this exploratory work and its limitations when trying to determine the usefulness of PIL and MC as targets of psychological treatments designed to prevent psychopathology.

Conclusions

The greater presence of psychopathology (anxiety, depression, and post-traumatic stress disorder) in nursing home healthcare workers during the 5 to 6th waves of the COVID-19 pandemic in Spain raises the question of its multifactorial nature and biopsychosocial factors involved in its development.

Regarding extrinsic factors, workplace environment played a central role in the lives of healthcare workers during the pandemic and factors such as professional category may have been of great relevance in the development of mental disorders. Regarding the personal sphere, personal and family/friend exposure to SARS-CoV-2 also played an important role in the appearance of psychopathology. In turn, intrinsic factors including purpose in life or moral courage buffered the effects of nosological elements mentioned above.

Thus, the interaction between the different biological, psychological and social factors specific to each individual (some of which were related to the pandemic) helped configure a latent diathesis that could be activated by a stressor such as a pandemic, ultimately leading to psychopathology. In conclusion, the present research may be useful to start to understand how a future epidemic or pandemic might affect the mental health of healthcare workers in different work contexts and the role of purpose in life and moral courage in the development of psychopathology.