{'fraction_non_alphanumeric': 0.03354511637093854, 'fraction_numerical': 0.023669223425618065, 'mean_word_length': 5.286837748344371, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 1, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Chronic physical conditions and risk for perinatal mental illness: A population-based retrospective cohort study

Background One in 5 women experience mental illness in pregnancy or post partum. Universal preventive interventions have not lowered the incidence of perinatal mental illness, perhaps because those at highest risk were not targeted. Outside of pregnancy, chronic physical conditions are known to confer increased risk for mental illness. Our objective was to examine the association between chronic physical conditions and risk of perinatal mental illness. Methods and findings We conducted a population-based retrospective cohort study using linked health administrative data sets in Ontario, Canada, in 2005 to 2015. We compared 77,385 women with chronic physical conditions to 780,619 women without such conditions, all of whom had a singleton live birth. Excluded were women with a mental illness diagnosis within 2 years before pregnancy. Chronic physical conditions were captured using the Agency for Healthcare Research and Quality Chronic Condition Indicator, applied to acute healthcare encounters in the 2 years before pregnancy. The outcome was perinatal mental illness, defined by a mental illness or addiction diagnosis arising between conception and 365 days post partum. The outcome was further defined by timing (prenatal or post partum) and specific diagnosis (psychotic disorder, mood or anxiety disorder, substance use disorder, self-harm, or other). Modified Poisson regression generated relative risks and 95% confidence intervals (CIs), adjusted for age, parity, rural residence, income quintile, and remote history of mental health care. Women in the cohort had an average age of 29.6 years (standard deviation 5.4), 44.2% were primiparous, 11.0% lived in a rural area, 40.1% were in the lowest 2 income quintiles, and 47.9% had a remote history of mental health care. More women with (20.4%) than without (15.6%) a chronic physical condition experienced perinatal mental illness—an adjusted relative risk (aRR) of 1.20 (95% CI 1.18–1.22, p < 0.0001). The aRRs were statistically significant for mental illness in pregnancy (1.12, 95% CI 1.10–1.15, p < 0.0001) and post partum (1.25, 95% CI 1.23–1.28, p < 0.0001). Psychotic disorders (aRR 1.50, 95% CI 1.36–1.65, p < 0.0001), mood or anxiety disorders (aRR 1.19, 95% CI 1.17–1.21, p < 0.0001), substance use disorders (aRR 1.47, 95% CI 1.34–1.62, p < 0.0001), and other mental illness (aRR 1.68, 95% CI 1.50–1.87, p < 0.0001) were more likely in women with than without chronic physical conditions, but not self-harm (aRR 1.14, 95% CI 0.87–1.48, p = 0.34). The study was limited by reliance on acute health care encounters to measure chronic physical conditions and the inability to capture undiagnosed mental health problems. Conclusions Findings from this study suggest that women with a chronic physical condition predating pregnancy may be at heightened risk of developing mental illness in the perinatal period. These women may require targeted efforts to lower the severity of their condition and improve their coping strategies and supports in pregnancy and thereafter.


Methods and findings
We conducted a population-based retrospective cohort study using linked health administrative data sets in Ontario, Canada, in 2005 to 2015. We compared 77,385 women with chronic physical conditions to 780,619 women without such conditions, all of whom had a singleton live birth. Excluded were women with a mental illness diagnosis within 2 years before pregnancy. Chronic physical conditions were captured using the Agency for Healthcare Research and Quality Chronic Condition Indicator, applied to acute healthcare encounters in the 2 years before pregnancy. The outcome was perinatal mental illness, defined by a mental illness or addiction diagnosis arising between conception and 365 days post partum. The outcome was further defined by timing (prenatal or post partum) and specific diagnosis (psychotic disorder, mood or anxiety disorder, substance use disorder, self-harm, or other). Modified Poisson regression generated relative risks and 95% confidence intervals (CIs), adjusted for age, parity, rural residence, income quintile, and remote history of mental health care. Women in the cohort had an average age of 29.6 years (standard deviation 5.4), 44.2% were primiparous, 11.0% lived in a rural area, 40.1% were in the lowest 2 income quintiles, and 47.9% had a remote history of mental health care. More women with (20.4%) than without (15.6%) a chronic physical condition experienced perinatal mental illness-an adjusted relative risk (aRR) of 1.20 (95% CI 1. 18 , and other mental illness (aRR 1.68, 95% CI 1.50-1.87, p < 0.0001) were more likely in women with than without chronic physical conditions, but not self-harm (aRR 1.14, 95% CI 0.87-1.48, p = 0.34). The study was limited by reliance on acute health care encounters to measure chronic physical conditions and the inability to capture undiagnosed mental health problems.

Conclusions
Findings from this study suggest that women with a chronic physical condition predating pregnancy may be at heightened risk of developing mental illness in the perinatal period. These women may require targeted efforts to lower the severity of their condition and improve their coping strategies and supports in pregnancy and thereafter.

Author summary
Why was this study done?
• Despite prevention efforts, 1 in 5 women experience mental illness in pregnancy or post partum.
• Outside of pregnancy, chronic physical conditions such as diabetes, hypertension, and asthma are known to increase the risk of mental illness.
• The association between chronic physical conditions and mental illness in the perinatal period has rarely been studied.
What did the researchers do and find?
• We used health administrative data for 77,385 women with chronic physical conditions and 780,619 women without such conditions in Ontario, Canada, to compare their risks of a psychotic disorder, mood or anxiety disorder, substance use disorder, self-harm, or another mental illness arising in pregnancy or within 365 days of childbirth.
• We found that more women with (20.4%) than without (15.6%) a chronic physical condition experienced perinatal mental illness.
• This risk was largely consistent across the timing and specific diagnosis of perinatal mental illness as well as the type of chronic physical condition.
What do these findings mean?
• Women with chronic physical conditions may require specific efforts to impact disease management and improve their coping strategies during pregnancy and post partum.

Introduction
One in 5 women suffer from a mental illness during pregnancy or within the year thereafter [1]. Perinatal mental illness negatively affects mothers, infants, and families [2,3], but only one-third of women with perinatal mental illness receive mental health care [4]. Morbidity and societal cost could be averted by early identification and treatment [5]. Although stress and low social support are among the strongest predictors of perinatal mental illness [6], universal preventive interventions developed to address these factors have not substantially reduced rates of perinatal mental illness [5]. A better understanding of those at higher risk of perinatal mental illness would inform targeted prevention strategies. The prevalence of chronic physical conditions, including diabetes, hypertension, and asthma, in pregnancy has risen over time, in parallel with higher maternal age and obesity: nearly 20% of pregnant women in high-income countries have a chronic physical condition [7]. Research in nonpregnant populations suggests that individuals with chronic physical conditions are at higher risk for mental illness than those without such conditions [8][9][10][11]. This is partly explained by psychosocial factors, such as stress arising from disease management, and biological factors, such as inflammation [12,13]. The perinatal period is a major life transition, and psychosocial stressors related to disease management among women with chronic physical conditions may be exacerbated in this period. They may also experience problems related to pre-existing disease or obstetrical complications. Therefore, one might posit that chronic physical conditions might increase a woman's vulnerability to perinatal mental illness.
The existing literature on the association between chronic physical conditions and perinatal mental illness is limited. A recent meta-analysis of 12 studies showed that chronic physical conditions were associated with an increased odds of 1.43 for perinatal mental illness [14]. However, the studies included therein were limited by the fact that none examined the development of a psychotic disorder, substance use disorder, or self-harm. Furthermore, because few studies excluded women with pre-existing mental illness, they could not delineate whether chronic physical conditions were associated with incident or ongoing perinatal mental illness. Some studies in the meta-analysis may also have unnecessarily adjusted for variables that lie along the causal pathway between chronic physical conditions and perinatal mental illness, including foetal and newborn complications [15,16].
The objective of the current study was to examine the association between maternal chronic physical conditions predating conception and the risk of perinatal mental illness diagnosed in pregnancy or up to 1 year thereafter.

Study design and setting
This was a population-based retrospective cohort study in Ontario, Canada. With 14 million residents and over 140,000 obstetrical deliveries every year, Ontario is Canada's largest province [17]. Essential health care services, including all primary and acute care, obstetrical care, and mental health care with a physician, are delivered at no direct cost to residents.
The current study cohort considered women aged 15 to 49 years with a live birth conceived between April 1, 2005 and March 31, 2015. Women were followed for 365 days post partum to ascertain study outcomes, to a maximum date of December 31, 2016. Excluded were women with diagnosed mental illness in the 2-year period before conception in the index pregnancy. A mental illness diagnosis was based on one or more physician or emergency department visits or a hospitalization for any psychotic disorder, mood or anxiety disorder, substance use disorder, self-harm event, or any other mental illness.
This study is reported as per the Strengthening the Reporting of Observational Studies in Epidemiology (STROBE) guideline (S1 Checklist). A prospective analysis plan was used to design the study (S1 Text). The use of data was authorized under section 45 of Ontario's Personal Health Information Protection Act, which does not require review by a research ethics board.

Data sources
We accessed and analysed health administrative data at ICES, in Toronto, Ontario. ICES captures sociodemographic and diagnostic data, from the healthcare encounters of Ontario residents, that are linked at the individual level using a unique, encoded identifier. Women with a singleton livebirth were identified in the MOMBABY data set, which links >98% of maternal and newborn records for the delivery hospitalization [17]. The date of conception was determined by subtracting the recorded gestational age-generally based on dating from a first trimester ultrasound [18]-from the recorded date of birth. We also used the Canadian Institute for Health Information Discharge Abstract Database for hospitalizations, the Ontario Mental Health Reporting System for psychiatric hospitalizations, the National Ambulatory Care Reporting System for emergency department visits, the Ontario Health Insurance Plan (OHIP) Database for outpatient visits, the Client Agency Program Enrolment Database for a registry of patients enrolled in primary care groups, the ICES Physician Database for physician specialties, and the Registered Persons Database for sociodemographic characteristics. Information in the OHIP Database is recorded using physician billing claims; information in hospital databases is recorded using the Canadian Coding Standards for the International Statistical Classification of Diseases and Related Health Problems, 10th revision (ICD-10) or Diagnostic and Statistical Manual of Mental Disorders, 4th edition (DSM-IV). The information in these databases has been shown to be complete and reliable; sociodemographic data, physician billing claims, and primary diagnoses in hospital data sets have excellent completeness and accuracy [19].

Exposure
Women in the exposed group were those with one or more chronic physical conditions. Our conceptualization of chronic physical conditions was based on the Agency for Healthcare Research and Quality Chronic Condition Indicator for the ICD-10 [20]. Conditions were defined as chronic according to whether they last 12 months or longer and (1) limit independent living, social interactions, or self-care or (2) require ongoing intervention with medical services, products, or equipment [20]. Chronic physical conditions were grouped by body system, according to ICD-10 chapters: endocrine, nutritional, and metabolic diseases and immunity disorders; diseases of the circulatory system, respiratory system, musculoskeletal system, nervous system and sense organs, digestive system, genitourinary system, skin and subcutaneous tissue, and blood and blood-forming organs; neoplasms; infections and parasitic disease; congenital anomalies; and injuries (S1 Table).
We considered a woman to have a chronic physical condition if any ICD-10 code included in this definition was present in an acute healthcare encounter in the 24 months prior to conception, denoted either as an emergency department visit without a hospitalization or a hospitalization. Women in the unexposed group were those with no acute healthcare encounter for such a condition during the 24-month period preceding conception. Although women with mild or well-controlled conditions may be more likely to present to a primary care provider than an acute care setting, this conceptualization captures those with the most severe conditions, which would be expected to carry the greatest risk for perinatal mental illness.

Outcomes
Perinatal mental illness was defined as at least 1 mental illness diagnosis between conception and 365 days post partum, captured by one of the following encounters: (1) a visit to a general practitioner or family physician with a mental illness diagnosis, (2) a visit to a psychiatrist, (3) an emergency department visit with a mental illness diagnosis, or (4) a hospitalization with a mental illness diagnosis [21,22]. Perinatal mental illness was further categorized by (a) its timing (i.e., prenatally, with the first encounter occurring during pregnancy; or post partum, with the first encounter occurring within 365 days of the delivery date) and (b) the diagnosis, namely, a psychotic disorder, mood or anxiety disorder, substance use disorder, another mental illness, or self-harm. Classification of the mental illness diagnosis was determined based on all healthcare encounters in the follow-up period, because women could have more than one perinatal mental illness diagnosis during this time (S2 Table) [21,22]. Because women with a recent history of mental illness in the 2 years before conception were excluded, it was reasonable to assume that perinatal mental illness arising in the index pregnancy largely represented a new episode of mental illness.

Covariates
Covariates were social and health characteristics hypothesized to distinguish women with and without chronic physical conditions and that were available within the administrative data sets: maternal age, parity, neighbourhood income quintile, rural residence, and remote history of mental healthcare. Neighbourhood income quintile and rural residence are derived by linking residential postal code with census data [23]. Rural residences are those in communities of <10,000 individuals. A remote history of mental healthcare was defined as having 1 or more physician visits, emergency department visits, or hospitalizations for a psychotic disorder, mood or anxiety disorder, substance use disorder, self-harm, or another mental illness more than 2 years before the date of conception in the index pregnancy.

Data analyses
Baseline characteristics of women with and without chronic physical conditions were described using means and proportions. Differences were expressed using standardized differences, with a value more than 0.10 determined to be clinically meaningful [24].
Unadjusted relative risks (RRs) and adjusted RRs (aRRs), and 95% confidence intervals (CIs), contrasted the risk of perinatal mental illness between women with versus without a prepregnancy chronic physical condition, using modified Poisson regression [25]. Because women may have delivered more than once during the study period, we accounted for potential clustering of births within mothers using generalized estimating equations [26]. All multivariable models were adjusted for maternal age, parity, rural residence, neighbourhood income quintile, and remote history of mental healthcare.
We conducted several prespecified additional analyses. One additional analysis examined the relationship between chronic physical conditions and perinatal mental illness by (a) the timing of its diagnosis (i.e., prenatally or post partum, as described above) and (b) the specific diagnosis of mental illness (as described above and in S2 Table). A second additional analysis explored the relationship between chronic physical conditions and perinatal mental illness by the number and type of body systems affected by chronic physical conditions (S1 Table). We also explored the relationship between different types of body systems affected by chronic physical conditions and (a) timing and (b) specific diagnosis of perinatal mental illness. For these analyses, also included in the multivariable models was the presence of other chronic physical conditions. Third, a more rigorous definition of the study outcome was instituted, requiring at least 2 physician visits for a mental health reason within pregnancy or 365 days post partum.
All data analyses used SAS version 9.4 (SAS Institute, Cary, North Carolina).

Results
During the study period, there were 1,155,494 singleton livebirths. Of these, 297,490 (25.7%) were among women with a recent history of mental healthcare and were, therefore, excluded. The final study cohort comprised 858,004 singleton livebirths to 630,883 unique women. Nearly 1 in 10 women (9.0%) had a chronic physical condition (S3 Table). Women with a chronic physical condition versus no chronic physical condition tended to be slightly younger (28.9 versus 29.7 years), to live in a rural area (16.4% versus 10.5%), and to have a remote history of mental health care (56.4% versus 47.0%) ( Table 1). Out of 77,385 women with a pre-existing chronic physical condition, 15,764 (20.4%) were diagnosed with a perinatal mental illness between conception and 1 year post partum, in contrast with 121,764 out of 780,619 women without a pre-existing chronic physical condition (15.6%)-equivalent to an unadjusted RR of 1.29 (95% CI 1.27-1.31, p < 0.0001; Table 2). The risk remained statistically significant after adjusting for confounders (aRR 1.20, 95% CI 1.18-1.22, p < 0.0001).
In the second additional analysis, women who had chronic physical conditions affecting more than 1 body system had higher absolute rates of perinatal mental illness (23.0%) than those with a solitary chronic physical condition (20.1%). Relative to women without a chronic physical condition, the corresponding aRRs were 1.30 (95% CI 1.25-1.35, p < 0.0001) and 1.19 (95% CI 1.17-1.21, p < 0.0001). The aRRs were also elevated across chronic physical conditions affecting different body systems, except for "other body systems" (Fig 2 and S4 Table). Findings were largely consistent by timing (S5 Table) and specific diagnosis of perinatal mental illness (S6 and S7 Tables).
In the third additional analysis, using a more rigorous definition of the study outcome of at least 2 physician visits for a mental health reason within pregnancy or 365 days post partum, women with a chronic physical condition (9.7%) were more likely than those without a chronic physical condition (6.5%) to have the outcome, equivalent to an unadjusted RR of 1.47 (95% CI 1.43-1.50, p < 0.0001) and an aRR of 1.31 (95% CI 1.28-1.34, p < 0.0001; S8 Table).

Discussion
In this study of Canadian population-based health administrative data from a cohort of women with a singleton live birth and no recent history of mental illness in the 2 years before pregnancy, our results show that women with chronic physical conditions before pregnancy had a higher associated risk of new-onset perinatal mental illness, whether arising in pregnancy or post partum. This risk remained higher for all specific mental illness diagnoses except self-harm and was largely consistent across conditions affecting different body systems.
These findings are consistent with prior studies completed among nonpregnant groups, in which individuals with chronic physical conditions had a higher risk of mental illness [8][9][10][11]. Among those done in pregnancy, only a few studies distinguished between new-onset and preexisting mental illness [27][28][29][30][31]. However, the current study also adjusted for remotely diagnosed mental illness, while excluding women with a recent diagnosis within 2 years preceding the index pregnancy's date of conception. Like the findings of a previous meta-analysis, women with chronic physical conditions were observed to be at increased risk for mental illness arising within or after pregnancy, including depression and anxiety [14]. The current study further showed that women with chronic physical conditions were at increased risk for psychotic disorders and substance use disorders. Although the majority of prior studies focused on a single chronic physical condition, most commonly diabetes [32][33][34], the current study observed a higher risk of perinatal mental illness across conditions affecting most body systems and in the presence of chronic physical conditions affecting more than one body system. There are several possible explanations for the association observed herein. In nonpregnant populations, stress related to chronic physical condition management, sleeplessness, or pain was thought to heighten the progression to mental illness [12]. These 3 factors may be exacerbated in the perinatal period, when women also experience body changes, hormonal factors, adjustment to motherhood, and infant care. In nonpregnant adults, diabetes and cardiovascular disease are associated with obesity, which may increase mental illness risk [35]. There is also evidence of shared genetic factors between diabetes and mental illness [36]. Autoimmune diseases, such as multiple sclerosis, may flare post partum, also increasing the risk of perinatal mental illness [37]. More generally, many chronic physical conditions are associated with hypothalamic-pituitary-adrenal axis dysfunction, elevated pro-inflammatory cytokines, and vascular pathology, all of which are implicated in the pathophysiology of mental illness [12]. Finally, there is evidence that the association between chronic physical conditions and perinatal mental illness is bi-directional, with individuals with mental illness having elevated rates of diabetes, cardiovascular disease, and other chronic conditions [38]. We tried to handle such reverse causation by excluding women with a recent history of mental illness and adjusting for a remote history of mental illness in the models. Nevertheless, mental illness can remit and relapse [6]. It is unclear why self-harm was the only outcome not significantly associated with chronic physical conditions. Possible explanations include the small number of events or the inability to capture self-harm behaviours not presenting in a healthcare context. This study suggests that targeted management strategies might be needed among women with a chronic physical condition as a means to lower their risk of perinatal mental illness. Women with a chronic physical condition are generally already embedded within the  Chronic physical conditions and perinatal mental illness healthcare system around the time of pregnancy, so there exist efficient avenues for care interventions partnering primary and obstetric care providers, along with a social worker or other mental health expert [39,40]. Interventions might be initiated preconceptionally, to support healthy behaviours and reduce modifiable risk factors, including obesity [41]. Screening, and other secondary prevention strategies in pregnancy and the postpartum period, may also be warranted. Our findings, along with the plausible psychosocial and biological mechanisms linking chronic physical conditions and perinatal mental illness, suggest that such interventions may positively impact the mental well-being of women and their families. However, it is important to note that the aRRs for the association between chronic physical conditions and perinatal mental illness ranged from 1.12 to 1.68 across the main analyses. The cost of developing targeted mental health interventions or screening for women with chronic physical conditions should be weighed against these relatively small effect sizes.

Limitations
The Agency for Healthcare Research and Quality Chronic Condition Indicator for the ICD-10 is a comprehensive method by which to identify chronic physical conditions in administrative data. However, in Ontario, it can only be applied to acute healthcare encounters, because physician visits are coded using a 3-digit version of the ICD-9, which cannot distinguish between an acute versus a chronic disease. In our definition of chronic physical conditions, we likely captured those women with the most severe, complicated, or poorly managed conditions. Such individuals could be at greatest risk for perinatal mental illness. It is also possible that women with chronic physical conditions presenting in acute healthcare settings differ from those with chronic physical conditions more broadly on factors other than condition severity. For example, they could be more anxious or depressed but less likely to seek care for mental illness. The impact of misclassification on our RRs is therefore difficult to predict. Our definition may explain the higher proportion of women with a chronic physical condition living in rural areas, where emergency departments tend to be accessed for all levels of care. The generalizability of our cohort of women with chronic physical conditions to the target population should therefore be interpreted with caution. Finally, the algorithm classified chronic physical conditions by body system and not by each disease diagnosis, so specific details about how a condition influences mental health cannot be described.
Our definition of diagnosed perinatal mental illness required that a woman sought healthcare. Yet a significant proportion of women with perinatal mental illness never receive a diagnosis because of barriers to accessing care [42]. Hence, the current study may have underestimated the true rate of perinatal mental illness, especially in marginalized groups. Because of the truncated codes used for physician visits, we could not distinguish between depression and anxiety. However, research suggests that there is increased risk for both in association with chronic physical conditions [14]. We used liberal definitions of recent and remote history of mental health care, resulting in higher rates of these variables (25.7% and 47.9%, respectively) than in general-population self-reported surveys [43]. Finally, because our cohort was restricted to women without a recent history of mental illness, our results pertain to the development of new-onset mental illness or relapse in the perinatal period, with implications for prevention interventions. Future research could include all women, regardless of recent mental healthcare, to examine patterns of ongoing mental illness in the perinatal period associated with chronic physical conditions. Finally, residual confounding may be a threat to the validity of our findings. Health administrative data were not collected for research purposes, and, as such, data on important confounders were missing. We did not have information on demographic variables such as ethnicity or individual-level measures of socioeconomic status such as income and education. We also did not have information on BMI, lifestyle factors such as diet and smoking, or social factors such as stressful life events or social support. These are all important confounders in the association between chronic physical conditions and perinatal mental illness [6]; however, we were unable to adjust for these variables in our multivariable models. Similarly, we were unable to adjust for shared genetic influences underlying both chronic physical conditions and perinatal mental illness [36]; this is an important area for future study.

Conclusion
Findings from this large population-based study suggest that women with a chronic physical condition predating pregnancy are at heightened risk of mental illness in pregnancy and post partum. This risk remained higher for all specific mental illness diagnoses except self-harm and was largely consistent across chronic physical conditions affecting different body systems. These women may require targeted efforts to lower the severity of their condition and improve their coping strategies and supports in pregnancy and the postpartum period.  Table. Risk of a substance use disorder, self-harm, or other mental illness arising between conception and 1 year post partum, in relation to a woman having a chronic physical condition in the 24 months prior to conception, and further detailed by the type of chronic physical condition. (DOCX) S8 Table. Risk of perinatal mental illness requiring at least 2 physician visits between conception and 1 year post partum, in relation to a woman having a chronic physical condition in the 24 months prior to conception. (DOCX)