Introduction

Since the end of 2019, the COVID-19 pandemic has become a major public health issue across the world. According to statistics released by the World Health Organization (WHO), worldwide deaths from COVID-19 surpassed 6 million by 20221. In fact, severe pandemics such as COVID-19 affect all segments of the global population. Suffering from such a human, economic, and social crisis, both people’s physical and mental health have been unavoidably affected and cannot be neglected. In academia, since the initial outbreak of COVID-19, there have been a growing number of publications focusing on the impacts of the COVID-19 pandemic on mental health2,3,4,5. A large portion of these studies have examined symptoms and coping strategies for mental health issues such as anxiety and depression etc6,7,8. Others have analyzed the factors affecting people’s mental health during the COVID-19 pandemic9,10,11. The factors proposed in these empirical studies were diverse and cover different research objects such as students, patients, and medical caregivers, etc12,13,14. In 2020, Taiwan has been credited as one of the most successful areas in battling COVID-19, and at that time, the mental health impact of COVID-19 has been less prominent in Taiwan15,16,17. However, an outbreak in late April 2021 led to a sharp surge in cases18. What was the mental health status of of individuals during the widespread outbreak? Since 1995, a national health insurance (NHI) program has been in operation in Taiwan, which provides uniform comprehensive coverage. Taiwan’s healthcare system has been considered excellent in the world19,20,21. What healthcare-related factors influenced the mental health status of Taiwanese citizens? The objective of this study was to investigate the impact of healthcare-related factors on mental health and to assess potential variations in these factors among different age groups.

Literature review and hypothesis

The inequitable allocation of healthcare resources is a global problem, as the equitable allocation of healthcare resources is one of the basic conditions for achieving healthcare fairness in the population22. During pandemics such as COVID-19, issues around healthcare resources fairness draw substantial public attention and discussion23,24,25. Although it is generally believed that limited medical resources should be allocated to do the greatest good for the greatest number of people, many questions about what is “fair” still remains unanswered26. One panel of experts argued that pregnant mothers, mothers of children under 5 years, age groups younger than 80, and front-line healthcare workers should have high priority in allocating mechanical ventilators27. Some researchers proposed to give vulnerable populations higher priority in the distribution of medical resources28. Past studies have showed that fairness in treatment is a predictor of satisfaction with care, and public satisfaction with healthcare and perceived fairness in healthcare are positively correlated29,30. Therefore, perceptions of the fair distribution of healthcare resources could be a factor in contributing to good mental health during the COVID-19 pandemic. In this regard, we propose the following research hypothesis:

Hypothesis 1: The more individuals feel that healthcare resources are fairly distributed, the better their mental health is.

People’s trust in the healthcare system plays a role in explaining their access to and utilization of medical care, adherence to medications, continuity of care, and even their self-reported health status31. An absence of trust might have harmful effects on the health of patients, as patients may refuse to seek doctors’ professional assistance or withhold information about their illness conditions32. Hence, trust in the healthcare system has been considered to be a factor affecting mental health status; in particular, during the COVID-19 pandemic, healthcare system mistrust has been associated with an increased likelihood of psychological distress33. In this regard, we propose the following research hypothesis:

Hypothesis 2: The stronger trust individuals have in the healthcare system, the better their mental health is.

People tend to use the internet to find healthcare information, and online information is available on diverse topics such as specific diseases, illnesses, advice on diet and nutrition, etc34. A prior study has indicated that there is a statistically significant relationship between a diagnosis of depression and anxiety disorder (DAD) and the use of online social media35. On the one hand, online healthcare information search behavior can help people effectively understand their health status and thereby reduce their anxiety and other negative emotions36. On the other hand, during public health crises such as the COVID-19 pandemic, excessive or repeated searches for online healthcare information may increase perceptions of threat and uncertainty37. As a result, the influence of online healthcare information search behavior on the mental health needs further testing. In this regard, we propose the following research hypothesis:

Hypothesis 3: The more frequently individuals search for online healthcare information, the worse their mental health is.

In addition to analyzing people’s mental health conditions and related influencing factors of people, it is important to compare these factors among different age groups. Age (or generation) has been one of the demographic variables that has received substantial interest in mental health research38,39. Some studies focused on a specific age group for analysis, while others compared different age groups40,41,42,43. Many studies have paid attention to different age groups influenced by the COVID-19 pandemic44,45,46. It is likely that the effects caused by pandemics are experienced differently among age groups47. To confirm whether mental health and healthcare-related influencing factors have differed among age groups during the COVID-19 pandemic, the present study used to a dataset from a representative sample collected via an academic project executed by a credible academic institution. The importance of mental health cannot be neglected because individuals with mental illness usually experience poorer physical health in comparison to the general population48. Therefore, the present study aimed to compare mental health status, perceptions of the fair distribution of healthcare resources, trust in the healthcare system, and searching for online healthcare information among different age groups of Taiwanese citizens. In addition, through statistical analysis, this study tested the correlations between the aforementioned variables in each of the different age groups separately. The findings thereby obtained make it possible to arouse the attention of the public, and help the healthcare and public health sector to understand the views and behaviors of different age groups, and then propose appropriate policies towards then respectively.

Methods

Participants

The dataset used in the present study was collected via a research project in Taiwan (i.e. the Taiwan Social Change Survey [TSCS]). The target population in the TSCS was residents of Taiwan (i.e. those recorded in the Department of Household Registration), and the TSCS adopted a stratified random sampling method. Data collection for the TSCS was arranged and completely supervised by the Institute of Sociology, Academia Sinica (Taiwan)49. For the 2021 TSCS, in-person interviews were conducted between September 2021 and February 2022. The institutional review board (IRB) for Humanities & Social Science Research Academia Sinica (AS-IRB-HS 02-19034[R5]) approved the TSCS data collection. In addition, participants involved in data collection for the TSCS were 18 years old and above and provided informed consent for participation. The survey was conducted by in-person interviews. The 2021 TSCS data collection period overlapped with the worldwide COVID-19 pandemic, and the pandemic made it difficult to conduct face-to-face data collection. The 2021 TSCS had less respondents than the TSCS executed before 2020, with a final sample size of 1604 participants.

Measures

Mental health conditions

Five items, rated using a five-point Likert scale from 1 = “always” to 5 = “never”, were used to measure mental health status. The five items were “How often do you feel unhappy or depressed?”, “How often do you lose confidence in yourself?”, “How often do you feel unable to overcome the difficulties you face?”, “How often do you feel moody and blue?”, and “How often do feel calm and at peace?”. All item scores were coded such that a higher score indicated better mental health status. The KMO (Kaiser–Meyer–Olkin) coefficient of the five items was 0.87, and this result showed that the instrument met the validity criteria. In addition, Cronbach’s alpha indicated good internal consistency for this scale in the current study (α = 0.88). The item scores were then averaged to calculate an overall mental health status score.

Perceptions of fair distribution of healthcare resources

Four items were rated using a five-point Likert scale from 1 = “much easier” to 5 = “much more difficult” to assess attitudes about the fair distribution of healthcare resources for four kinds of population (i.e. rich vs. poor, elderly vs. young, female vs. male, and citizens vs. non-citizens). In the descriptive statistics and multiple regression analysis, 1 meant “much easier” or “much more difficult”, 2 meant “easier” or “difficult”, and 3 meant “no difference”. A higher score indicated a higher level of fair distribution of healthcare resources. The KMO coefficient of the four items was 0.62, and this result showed that the instrument met the validity criteria. In addition, Cronbach’s alpha indicated acceptable internal consistency for this scale in the current study (α = 0.54). The items scores then averaged to calculate an overall score in perceptions of fair distribution of healthcare resources.

Trust in the healthcare system

Five items were used to assess individuals’ trust in the healthcare system. They were rated using a five-point Likert scale from 1 = “totally distrust/disagree” to 5 = “totally trust/agree”. The five items were “In the next few years, Taiwan’s healthcare system will become better.”, “On the whole, Taiwan’s healthcare system is efficient.”, “Do you think you can get the best treatment when you are seriously ill?, “On the whole, doctors can be trusted.”, and “Generally speaking, do you trust Taiwan’s healthcare system?”. All item scores were coded such that a higher score indicated a higher level of trust in the healthcare system. The KMO coefficient of the five items was 0.72, and this result showed that the instrument met the validity criteria. In addition, Cronbach’s alpha indicated acceptable internal consistency for this scale in the current study (α = 0.62). The item scores were then averaged to calculate an overall score in trust in the healthcare system.

Searching for online healthcare information

Three items were rated using a five-point Likert scale from 1 = “never” to 5 = “always” to assess the different kinds of healthcare information that the respondents searched for on line (i.e. healthy lifestyle, questions about anxiety and stress, and vaccinations). A higher score indicated a higher frequency of searching for online healthcare information for that topic. The KMO coefficient of the three items was 0.64, and this result showed that the instrument met the validity criteria. In addition, Cronbach’s alpha indicated acceptable internal consistency for this scale in the current study (α = 0.70). The item scores were then averaged to calculate an overall a score in frequency of searching for online healthcare information.

Age groups

In the survey, the respondents were asked their birth year; the present study divided them into three age groups. With reference to the classification methods used by many researchers in the past, this study categorized participants by age into younger adults (ages 18–35 years), middle-aged adults (ages 36–55 years), and older adults (aged older than 55 years)50.

Demographic variables

In addition to information about their age, the participants were also asked various questions concerning other demographic information: gender (male or female); height (in centimeters); weight (in kilograms); schooling years (since elementary school); relationship status (single or non-single) ( To simplify the response choices and then facilitate the statistical analysis, single comprised “unmarried”, “separated”, “divorced”, and “widowed”, while non-single comprised “first marriage”, “remarried”, and “cohabitation”.); religious belief (yes or no); residency (big urban areas and others); employment status (full-time employment and others); household monthly income. Height and weight were used to calculate body mass index (BMI). In terms of the household monthly income, the initial questionnaire included 26 choices, spanning from zero income to over NT$ 1 million.

Statistical analyses

All data were summarized using descriptive statistics (including means, standard deviations, frequencies, and percentages) to portray the features of the studied variables in the TSCS 2021. ANOVA tests (for continuous data) and χ2 tests (for categorical data) were used to examine the differences among the three age groups. Three multiple regression models were then constructed for the three age groups using parallel variables: the dependent variable was mental health condition; the independent variables were perceptions of the fair distribution of healthcare resources, trust in the healthcare system, searching for online healthcare information, other demographic variables excluding age. All the statistical analyses were executed through SPSS (Statistical Product Service Solutions) 27.0.

Institutional review board statement

The institutional review board (IRB) for Humanities & Social Science Research Academia Sinica (AS-IRB-HS 02-19034 [R5]) approved the TSCS data collection. All methods were performed in accordance with the Declaration of Helsinki and participants could withdraw consent at any time. Also, the participants’ right to data confidentiality is considered and protected in the TSCS data collection, which adheres to the compliance with the Declaration of Helsinki.

Compliance statement

All methods were carried out in accordance with relevant guidelines and regulations.

Results

Demographic comparisons among different age groups

The respondents’ demographic information for each of the three age groups is presented on Table 1. No significant differences were found in the gender (p = 0.165) and residency (p = 0.347) distributions. Among the three age groups, significant differences were found in the average of BMI (24.07 vs 24.61 vs 23.87, p = 0.007), schooling years (9.94 vs 13.05 vs 14.83, p < 0.001), household monthly income (5.90 vs 9.49 vs 10.65, p < 0.001), relationship status (37.9% vs 33.2% vs 58.6% for single, 62.1% vs 66.8% vs 41.4% for non-single; p < 0.001), religious belief (85.8% vs 76.8% vs 57.0% for yes, 14.2% vs 23.2% vs 43.0% for no; p < 0.001), and employment status (20.2% vs 67.4% vs 75.6% for full-time, 79.8% vs 32.6% vs 24.4%; p < 0.001).

Table 1 Demographic comparisons among different age groups.

Mental health conditions and healthcare-related factors among different age groups

Table 2 shows the differences in mental health conditions, perceptions of the fair distribution of healthcare resources, trust in the healthcare system, and searching for online healthcare information among the three age groups. The older group had significantly better mental health conditions (4.32 vs 4.08 vs 3.92; p < 0.001) , perceptions of the fair distribution of healthcare resources (2.23 vs 2.14 vs 2.14; p = 0.012) and trust in the healthcare system (3.89 vs 3.74 vs 3.81; p < 0.001) than the other age groups. With regard to searching for online healthcare information, the frequency reported by the older group was the lowest, and that reported by the younger group was the highest (1.95 vs 2.35 vs 2.61; p < 0.001).

Table 2 Mental health conditions and healthcare-related factors among different age groups.

Multiple linear regression model explaining mental health among age groups

Table 3 presents the results of the multiple regression models. In the older group, the regression equations were not significant in model 1 and model 2. In the middle-aged group, in both Model 3 and model 4, the regression equations showed statistical significance. In Model 3, individuals who did not have no religious belief had worse mental health than those who had (β = − 0.148; p < 0.001). When the healthcare-related factors were added in the equation, in Model 4, in addition to the significant influence of religious beliefs on individuals’ mental health (β = − 0.152; p < 0.001), individuals with higher levels of trust in the healthcare system had better mental health than those with lower levels of trust (β = 0.195; p < 0.001); individuals who spent more time searching for online healthcare information had worse mental health than those who spent less (β = − 0.170; p < 0.001). In the younger group, the regression equation was not significant in model 5. When the healthcare-related factors were added in the equation, in Model 6, the equation was significant. Individuals who spent more time searching for online healthcare information had worse mental health than those who spent less (β = − 0.170; p < 0.001).

Table 3 Multiple linear regression model explaining mental health of different age groups.

Discussion

Through statistical analysis of the survey data, the present study discovered differences in the mental health and healthcare-related factors among Taiwanese citizens of different age groups. In all three age groups, the perceptions of the fair distribution of healthcare resources did not have significant associations with the mental health condition. Therefore, the hypothesis 1 was not supported. The trust in the healthcare system had significantly positive associations with the mental health condition only in the middle-aged group. Consequently, the hypothesis 2 was partially supported. Searching for online health information had significantly negative associations with the mental health condition only in the middle-aged and younger groups. As a result, the hypothesis 3 was partially supported.

With regard to mental health, the older adults appeared to be happier than the other age groups. Unlike their successors, the older adults had gradually gone into retirement, and for the most part, their children had grown into adulthood. In other words, their burdens of family and work had gradually lessened, and thus they tended to experience “the age-related positivity effect”, an increasing focus on positive events and happy feelings51. In addition, generally speaking, individuals of the middle-aged and younger groups are likely to encounter work-family conflict causing fear, stress, loneliness, panic, depression, fear of worthlessness, etc52,53. It is important to give them sufficient social support, and they also have to actively ask for help. In Taiwan, there are several public and non-profit organizations that aim to serve people who encounter psychological problems, and citizens should clearly understand how to access these services when in need.

With regard to the perceptions of the fair distribution of healthcare resources, the older adults felt more strongly than the other age groups that healthcare resources were fairly distributed. These findings reflect a certain amount of inter-generational antagonism in Taiwan54. In the recent decade, Taiwan’s stagnant wages have become a barrier for the younger and middle-aged adults in getting married, raising a family, and buying a house. The generational wealth gap is worsening, fueling discontent among younger people55. Facing a more difficult and rigorous environment than the time of their predecessors, the younger and middle-aged people are likely to have a deeper feelings about the gap between the rich and the poor and between the elderly and the young.

The middle-aged adults had lower trust in the healthcare system than the other age groups, and their trust in the healthcare system was positively associated with the mental health condition. Middle-aged adults may have a heightened awareness of healthcare service due to their responsibilities in caring for both older family members and children. These findings indicate that middle-aged people have greater demands and standards for the quality of healthcare services. In this regard, governments and hospitals should make efforts to enhancing healthcare services and boosting citizens’ satisfaction with medical care.

For the middle-aged and younger groups, searching online for healthcare information had significantly negative associations with the mental health condition. These findings echo evidence from prior studies showing that individuals’ low levels of self-rated health and high levels of perceived psychological distress make search for healthcare-related information via the Internet in order to cope with their healthcare-related concern and distress56,57. In modern society, due to privacy concerns, when encountering psychological problems, some people may tended to resort to seeking online help prior to face-to-face diagnosis58. Furthermore, the COVID-19 pandemic has reduced the intention and the frequency of citizens to go to the hospital because of fear of becoming infected59. Consequently, whether during a pandemic or not, governments and hospitals should make efforts to provide the public with complete and up-to-date information about psychological problems. Moreover, all types of mass media should also help spread information so that people in need can obtain useful help in time.

Finally, according to the results of this study, religious belief had a positive impact on mental health for the middle-aged adults. Many studies have examined the link between religious belief, religious practice, and mental health, and have found that higher levels of religious belief and practice are associated with better mental health60,61. For this reason, choosing a suitable religious belief might be a feasible to release distress in daily life.

The present study has some limitations that should be discussed. First, given that the study used secondary data analysis, the items comprising each concept could not be designed or modified, with the result that some important variables were not fully assessed in the survey. Second, all the survey items were completed through self-reports, and therefore common method bias was inevitable. Third, there is more than one way to determine when each age begins and ends, and different ways of dividing the age groups might cause slight differences in the research results.

Conclusion

The present study showed that there are age differences in healthcare-related factors influencing the mental health of Taiwanese citizens. More specifically, by comparing the three age groups, we found that (i) the older adults had better mental health, (ii) the older adults had better perceptions of the fair distribution of healthcare resources, (iii) the older adults had higher trust in the healthcare system, (iv) the younger adults searched for online health information more frequently. Moreover, religious belief was significantly associated with mental health in the middle-aged group. Consequently, to improve the mental health of citizens, it is important for the Taiwanese government and hospitals to provide enough online resources about psychological assistance for the public as much as possible.