Introduction

SARS-CoV-2 infection during pregnancy has been associated with adverse neonatal and maternal outcomes. There is relatively extensive published evidence for selected pregnancy outcomes, including maternal admission to critical care and preterm birth1,2; however, there remains a lack of detail to inform clinical practice. A recent meta-analysis estimated that women with (compared to without) SARS-CoV-2 infection in pregnancy had 60% greater odds of preterm birth2. However, poor reporting on whether preterm births were spontaneous (i.e., after spontaneous rupture of membranes or onset of contractions) or provider-initiated (i.e., following induction of labour or pre-labour caesarean section) precluded disentangling the relative importance of these different causes. The evidence for association between infection and some outcomes, including pregnancy-related hypertension and bleeding, is weak or conflicting, and there are very few studies for any outcomes that explore whether gestation at infection modifies the outcome risk. These evidence gaps mean that there is ongoing uncertainty regarding the antenatal and intrapartum care of women who have SARS-CoV-2 in pregnancy. For example, the need for preterm birth risk assessment3, enhanced screening for pre-eclampsia, additional antenatal ultrasound growth surveillance, or continuous foetal monitoring in labour all remain contentious and therefore absent from guidelines for managing SARS-CoV-2 infection in pregnancy4,5.

A growing body of evidence suggests COVID-19 vaccination is safe for pregnant women, as well as an effective way to reduce the risks associated with SARS-CoV-2 infection for both them and their babies. Maternal COVID-19 vaccination has not been associated with adverse pregnancy-related outcomes6,7,8,9,10,11 and has been found to be effective in reducing the risk of SARS-CoV-2 infection and associated adverse outcomes6,12,13. Despite this growing body of evidence on both the safety and effectiveness of COVID-19 vaccination in pregnancy, vaccination uptake has been relatively low among pregnant women, with concerns about safety primarily driving this vaccine hesitancy6,14.

Helping pregnant women and their healthcare providers make informed decisions on the importance of COVID-19 vaccination in pregnancy requires high-quality data on: (1) the impact of SARS-CoV-2 infection (in the absence of vaccination) on adverse maternal and neonatal outcomes; (2) the safety of vaccination in pregnancy; and (3) the effectiveness of vaccination in reducing the impact of the infection (either by preventing infection or reducing the severity of infection). In our study, we examined the first two of these three issues using data from the COVID-19 in Pregnancy in Scotland (COPS) database15,16. Specifically, we used national, population-based data from Scotland to create matched cohorts to investigate whether there was an association between SARS-CoV-2 infection and, separately, COVID-19 vaccination in the six weeks preconception or during pregnancy and the subsequent risk of adverse neonatal (stillbirth, neonatal death, extended perinatal mortality, low Apgar score [5 min Apgar score <7], very low Apgar score [5 min Apgar score <4], small-for-gestational age [birthweight <10th centile], very small-for-gestational age [birthweight <3rd centile], preterm birth [<37 weeks gestation] and very preterm birth [<32 weeks gestation]) or maternal outcomes (admission to critical [intensive or high dependency] care [any cause] or death [any cause], hypertensive disorders of pregnancy, pregnancy-related bleeding, and venous thromboembolism).

Results

SARS-CoV-2 infection and neonatal outcomes

The COPS study database contained information on 81,441 singleton pregnancies that reached at least 20 weeks, 0 days (20 + 0) gestation, ended in a live or stillbirth, and where the pregnancy was ongoing or conceived after the start of widespread community testing for SARS-CoV-2 infection on May 18, 2020, and conceived before June 2, 2021. Of these, 4074 had confirmed infection (and no vaccination) between six weeks preconception up to the end of pregnancy. 1429 had both infection and vaccination during the pregnancy exposure period and were excluded. An additional 11,379 had vaccination during the pregnancy exposure period, leaving a pool of 64,559 uninfected (and unvaccinated) control pregnancies for matching to the infected pregnancies on maternal age at conception, season of conception and gestational week at exposure/matching (i.e., so a mother who tested positive at 25 weeks gestation, would be matched to a mother who did not test positive for infection during just before or during pregnancy but had an ongoing pregnancy at 25 weeks gestation).

Supplementary Table 1 shows the key sociodemographic and clinical characteristics of the infected pregnancies and the pool of controls. Supplementary Figure 1 shows the number of these pregnancies included in the matched cohorts for each of our infection analyses (i.e., with separate analyses examining each outcome). Supplementary Figure 2 shows the distribution of the infections by calendar time.

Women with confirmed infection between six weeks preconception up to the end of pregnancy were more likely than uninfected controls to be from deprived, and urban, areas (Table 1). Most exposed women (98.9%) had only one confirmed infection in the pregnancy exposure period (Table 2).

Table 1 Key characteristics of exposed and control pregnancies included in infection and vaccination analysesa
Full size table
Table 2 Exposure characteristics in infected and vaccinated cohortsa
Full size table

After adjusting for covariates, in primary analyses we found an association between maternal infection and preterm birth (adjusted Odds Ratio [aOR] = 1.36, 95% Confidence Interval [CI] = 1.16–1.59). The overall increased risk of preterm birth reflected an increased risk of both spontaneous (aOR = 1.27, 95% CI = 1.03–1.56) and provider-initiated (aOR = 1.42, 95% CI = 1.11–1.81) preterm birth. We also found an association between infection and very preterm birth (aOR = 1.90, 95% CI = 1.20–3.02) and provider-initiated very preterm birth (aOR = 2.63, 95% CI = 1.23–5.62), but not spontaneous very preterm birth (aOR = 1.31, 95% CI = 0.78–2.18) (Table 3). Further detail on the lag between infection (or matching in controls) and delivery is provided in Supplementary Table 2 and on the sub-type of provider-initiated preterm births (induction or pre-labour caesarean section) in Supplementary Table 3.

Table 3 Association between exposure to SARS-CoV-2 during pregnancy exposure period and neonatal outcomes, calculated using conditional logistic regression
Full size table

Due to small numbers of neonatal deaths, we only accounted for matching factors in the model examining this outcome. The point estimate for the association between infection and neonatal death suggested an increased risk (OR ≥ 2), but we had wide CIs spanning the null value (OR = 2.25, 95% CI = 0.95–5.34). We found no evidence of an association between maternal infection and the risk of stillbirth, extended perinatal death, small for gestational age, very small for gestational age, low Apgar score, or very low Apgar score (Table 3). As shown in Supplementary Table 4, risk ratios calculated using conditional Poisson regression showed negligible difference from the ORs calculated using conditional logistic regression.

In subgroup analyses examining the association between maternal infection at ≥20 + 0 gestation and neonatal outcomes, we again found an association between later infection and any preterm birth, spontaneous preterm birth, provider-initiated preterm birth, any very preterm birth, and provider-initiated very preterm birth. Point estimates for the association between later infection and both stillbirth (aOR=2.01, 95% CI = 0.92–4.39) and neonatal death (OR = 2.57, 95% CI = 0.86–7.65) were raised, however the CIs spanned the null value. We did not find an association between early infection (at <20 + 0 gestation) and increased risk of any adverse neonatal outcomes (Fig. 1 and Supplementary Tables 5, 6).

Fig. 1: Adjusted odds ratios for the association between SARS-CoV-2 infection and neonatal and maternal outcomes, stratified by timing of first SARS-CoV-2 infection in the pregnancy exposure period.

The sample size for the analysis for each outcome is provided in Supplementary Table 5 and Supplementary Table 6. Odds ratios (represented by the points on the plot) were calculated using conditional logistic regression. The errors bars for each data point are 95% confidence intervals.

Full size image

SARS-CoV-2 infection and maternal outcomes

In primary analyses, we found evidence for an association between maternal infection and admission to critical care or death (aOR = 1.72, 95% CI = 1.39–2.12) and venous thromboembolism (aOR = 2.53, 95% CI = 1.47–4.35) (Table 4). We found no evidence for an association between infection and an increased risk of hypertensive disorders of pregnancy or pregnancy-related bleeding (Table 4 and Supplementary Table 7). As shown in Supplementary Table 4, there is negligible difference between the risk ratios and the ORs.

Table 4 Association between exposure to SARS-CoV-2 during pregnancy exposure period and maternal outcomes, calculated using conditional logistic regression
Full size table

In subgroup analyses, we again found an association between later infection (at ≥20 + 0 gestation) and critical care admission or death (aOR = 2.12, 95% CI = 1.67-2.69), and venous thromboembolism (aOR = 2.94, 95% CI = 1.53–5.63). We did not find an association between early infection (at <20 + 0 gestation) and increased risk of any adverse maternal outcomes (Fig. 1 and Supplementary Tables 5, 6).

COVID-19 vaccination and neonatal and maternal outcomes

The COPS study database contained information on 55,167 singleton pregnancies that reached at least 20 + 0 weeks gestation, ended in a live or stillbirth, and where the pregnancy was ongoing or conceived after the start of the COVID-19 vaccination programme on December 8, 2020, and conceived before June 2, 2021. Of these, 11,379 had vaccination (and no confirmed infection) between six weeks preconception up to the end of pregnancy. 1429 had both vaccination and infection during the pregnancy exposure period and were excluded. An additional 4005 had infection during the pregnancy exposure period, leaving a pool of 38,354 unvaccinated (and uninfected) control pregnancies for matching to the vaccinated pregnancies on maternal age at conception and gestational week at exposure/matching.

Supplementary Table 1 shows the key sociodemographic and clinical characteristics of the vaccinated pregnancies and the pool of controls. Supplementary Figure 3 shows the number of these pregnancies included in the matched cohorts for each of our vaccination analyses. Supplementary Figure 4 shows the distribution of the vaccinations by calendar time and dose number.

Women receiving vaccination between six weeks preconception up to the end of pregnancy were less likely than unvaccinated controls to be from deprived areas and less likely to be smokers (Table 1). Most women received only Pfizer-BioNTech BNT162b2 vaccine (76.2%; Table 2). After adjusting for covariates, we found no evidence that maternal COVID-19 vaccination was associated with increased risk of any of the neonatal or maternal outcomes (Tables 5, 6 and Supplementary Table 8), and there was negligible difference between the risk ratios and the ORs (Supplementary Table 9).

Table 5 Association between exposure to COVID-19 vaccination during pregnancy exposure period and neonatal outcomes, calculated using conditional logistic regression
Full size table
Table 6 Association between exposure to COVID-19 vaccination during pregnancy exposure period and maternal outcomes, calculated using conditional logistic regression
Full size table

Discussion

In this national, population-based, matched cohort study we found that SARS-CoV-2 infection just before or during pregnancy was associated with an increased risk of preterm birth (driven by increased risk of both spontaneous and provider-initiated preterm birth), very preterm birth (driven by provider-initiated very preterm birth), maternal critical care admission or death, and maternal venous thromboembolism. Our point estimate for the association between infection and neonatal death was raised, but wide confidence intervals spanned the null hence we could not rule out no association. We found no evidence of an association between infection and increased risk of the other outcomes examined: stillbirth, extended perinatal mortality, small-for-gestational age, low Apgar score, hypertensive disorders of pregnancy and pregnancy-related bleeding. We did not find any evidence that COVID-19 vaccination just before or during pregnancy was associated with an increased risk of any of the neonatal or maternal outcomes examined.

In subgroup analyses, we found an association between infection in later pregnancy (at ≥20 + 0 gestation) and an increased risk of preterm birth (any, spontaneous, and provider-initiated), very preterm birth (any and provider-initiated), maternal critical care admission or death, and maternal venous thromboembolism. We found raised point estimates for the association between later infection and both stillbirth and neonatal death, however again the confidence intervals spanned the null value. We found no evidence for an association between infection in earlier pregnancy (at <20 + 0 gestation) and an increased risk of any of the adverse neonatal or maternal outcomes examined.

Our study adds to the existing evidence on SARS-CoV-2 infection during pregnancy and neonatal and maternal outcomes. Our results align with those of a living systematic review and meta-analysis that found, based on literature identified up to 27 April 2021, that pregnant women with SARS-CoV-2 infection had increased odds of maternal death (OR = 6.09, 95% CI = 1.82–20.38), admission to the intensive care unit (OR = 5.41, 95% CI = 3.59–8.14), preterm birth (OR = 1.57, 95% CI = 1.36–1.81), stillbirth (OR = 1.81, 95% CI = 1.38–2.37), and admission to the neonatal intensive care unit (OR = 2.18, 95% CI = 1.46–3.26)2. Our findings align with current recommendations that pregnant women with SARS-CoV-2 infection should undergo risk assessment for venous thromboembolism17. A previous systematic review reported an increased risk of hypertensive disorders following SARS-CoV-2 infection in pregnancy1, and a US study reported an increased risk of foetal growth restriction and postpartum haemorrhage18; however, we do not find any evidence of increased risk of hypertensive disorders of pregnancy, small for gestational age, or pregnancy-related bleeding following infection. The systematic review included 21 studies, the majority of which were non-population-based observational (generally cohort) studies using data from single or multiple healthcare providers to compare pregnancy-related outcomes of women with, compared to without, SARS-CoV-2 infection in pregnancy. How infection and outcomes were defined and ascertained is not specified. Three of 16 studies including preeclampsia as an outcome reported a significant association between infection and preeclampsia. Infection was also found to be significantly associated with the risk of preeclampsia on meta-analysis of results from all 16 studies. The US study used data from a single insurance provider to conduct a retrospective cohort study of enroled women with, compared to without SARS-CoV-2 infection in pregnancy. Infection status was mainly ascertained through clinical diagnosis rather than viral testing results, and adjustment for confounders was limited (no adjustment for parity or maternal smoking or body mass index [BMI]).

There is limited existing evidence on the nature of any increased risk of preterm birth following infection, and on how the timing of infection during pregnancy influences subsequent outcomes. We have shown that the increased risk of preterm birth (i.e., at <37 + 0 gestation) following infection reflects an increased risk of both spontaneous and provider-initiated preterm birth, whereas the increased risk of very preterm birth (i.e., at <32 + 0 gestation) reflects an increased risk of provider-initiated preterm birth only. A US surveillance study found that SARS-CoV-2 infection during the third trimester was associated with a higher frequency of preterm birth compared to infections during the first and second trimesters19. In subgroup analyses, we have shown that the increased risk of adverse neonatal and maternal outcomes is restricted to infections occurring in later (at ≥20 + 0 gestation), compared to earlier (at <20 + 0 gestation) pregnancy. On balance therefore, our findings do not currently indicate a need for ongoing enhanced maternal or foetal surveillance during pregnancy or delivery following SARS-CoV-2 infection early in pregnancy, however further research on this is warranted. Other evidence, including from the COPS study, shows no increased risk of early pregnancy loss7 or congenital anomalies8 following maternal infection in early pregnancy. Evidence is currently lacking on any long-term impacts on children’s health and development following in-utero infection.

Our findings add to the growing body of evidence on the safety of COVID-19 vaccinations during pregnancy. A population-based retrospective cohort study in Ontario Canada including more than 43,000 births to individuals vaccinated during pregnancy found that COVID-19 vaccination during pregnancy was not associated with any increased risk of overall preterm birth, spontaneous preterm birth, very preterm birth, small for gestational age at birth, or stillbirth20. Similarly, a systematic review has reported that there was no evidence of a higher risk of maternal outcomes including hypertensive disorders of pregnancy, pulmonary embolism, postpartum haemorrhage, maternal death, or intensive care unit admission among those receiving COVID-19 vaccination during pregnancy21.

The strengths of this study include the use of a national linked dataset with comprehensive data available on many key socio-demographic and clinical covariates. We have been able to include a wide range of neonatal and maternal outcomes and, through a standardised methodological approach, have been able to provide evidence on any risk associated with SARS-CoV-2 infection (in the absence of vaccination) and, separately, COVID-19 vaccination (in the absence of infection) which is essential to allow balanced consideration of risks and benefits.

Our study has some important limitations. We relied on the results of viral testing to identify confirmed SARS-CoV-2 infections. Testing policy in Scotland evolved throughout the pandemic22,23. For our infection analyses, we restricted our study period to the date from which widespread community testing for symptomatic individuals was implemented (May 18, 2020), to minimise the impact of the substantial under-ascertainment of symptomatic infections associated with restricted testing prior to that point. It is still possible however that we may have under-ascertained some (generally mild) symptomatic infections if individuals did not get tested. In addition to testing of individuals with symptoms, routine testing of asymptomatic individuals was made increasingly available as the pandemic progressed, for example routine testing of all individuals admitted to hospital was implemented from December 2020. It is likely therefore that the confirmed infections included in our study will include both symptomatic and asymptomatic infections. We did not have reliable data on symptoms or severity of infection however, so we could not provide information on the relative numbers or explore how association with adverse outcomes varied by symptom status. Also, we did not have access to negative test results within the COPS study database, hence could not provide information on overall testing rates. As noted in the methods, there was a change in testing guidelines in early January 2022 meaning confirmatory PCR testing following a positive lateral flow device (LFD) test was no longer necessary to confirm infection, but this is unlikely to have affected our results given that it only covered a very short period towards the end of our study and LFD tests were still widely available. We did not have reliable data on viral variant so we could not explore whether the associations varied by variant. The infections in pregnancy that are included in our analyses occurred over a relatively wide time period, from May 2020 to February 2022. It is therefore likely that included infections were caused by a range of viral variants, from wild type through Alpha, Delta, and Omicron as these were sequentially dominant in Scotland across this time frame. We have previously shown that infections in the period when Omicron (B.1.1.529) was the dominant variant were associated with a lower risk of adverse neonatal and maternal outcomes compared with infections when Delta (B.1.617.2) was the dominant variant24. Despite using national data, there were small absolute numbers of some outcomes (such as neonatal death), precluding fully adjusted analyses and leading to high levels of uncertainty in our estimates of association. However, we report all results in line with our study protocol as pooling of results across different studies will give more precise estimates. Regarding the adjustment of covariates, our analysis was not able to include some potentially important confounders such as exposure to environmental tobacco smoke due to the lack of recording within electronic health records. We were also unable to match pregnancies on exact calendar time (i.e., matching exposed and control neonates by the calendar week of estimated conception) due to an insufficient pool of controls, but were able to match on season of conception for our infection analyses. Most of the existing evidence on the safety of COVID-19 vaccines in pregnancy, including that provided by our study, relates to mRNA vaccines. Further research on the safety of other vaccine types, including viral vector vaccines, would be beneficial. Lastly, our study does not assess the effectiveness of COVID-19 vaccination in preventing, or moderating, pregnancy-related outcomes following SARS-CoV-2 infection in pregnancy. Understanding the effectiveness of vaccines in pregnancy is an important area of research, and there is a growing body of evidence to suggest that vaccination may reduce the risk of some adverse neonatal and maternal outcomes by reducing the risk among women who are infected with SARS-CoV-2 infection6,24.

In summary, our national, population-based study provides high-quality evidence that SARS-CoV-2 infection in pregnancy is associated with increased risk of serious neonatal and maternal adverse outcomes, including preterm birth, very preterm birth, maternal critical care admission or death, and maternal venous thromboembolism. We expand on previous studies to show that the increased risk of preterm birth reflects the increased risk of both spontaneous and provider-initiated preterm birth, whereas the increased risk of very preterm birth reflects the increased risk of provider-initiated very preterm birth only. We also show that the increased risks are associated with infections in later, but not earlier, pregnancy. We do not find any evidence of an increased risk of hypertensive disorders of pregnancy or pregnancy-related bleeding following infection at any stage of pregnancy. Together, these findings can help to inform the clinical care of women with SARS-CoV-2 infection in pregnancy, for example, they suggest a need for vigilance for venous thromboembolism but no clear need for enhanced ongoing pregnancy monitoring due to infection in early pregnancy. We found no evidence that COVID-19 vaccination just before or during pregnancy was associated with any adverse neonatal or maternal outcomes, supporting current recommendations that COVID-19 vaccination remains the safest and most effective way for pregnant women to protect themselves and their babies from the risks associated with SARS-CoV-2 infection.

Methods

Study design

We conducted a population-based, matched cohort study following a study protocol and statistical analysis plan which can be accessed on GitHub (https://github.com/Public-Health-Scotland/COPS-public25). Reporting followed the Strengthening the Reporting of Observational studies in Epidemiology (STROBE) checklist26.

Setting and participants

This study used the mid-July 2022 update of the COPS database15,16. This includes all recognised pregnancies in Scotland from January 1, 2015 onwards, identified through linkage of the following national records: antenatal care booking; General Practitioner (GP) records; general acute hospital discharges (Scottish Morbidity Record (SMR) 01); maternity hospital discharges (SMR 02); statutory termination of pregnancy notifications (AAS); National Records of Scotland (NRS) statutory live and stillbirth registrations; and NHS live birth notifications. For each pregnancy, comprehensive data is available, including on the estimated date of conception, gestational age at the end of the pregnancy, the pregnancy outcome (miscarriage, ectopic pregnancy, molar pregnancy, termination of pregnancy, stillbirth, live birth, unknown pregnancy outcome, and ongoing pregnancy), and maternal clinical and socio-demographic characteristics.

For this study, we included singleton pregnancies that reached at least 20 weeks, 0 days (20 + 0) gestation and ended before 44 weeks, 6 days (44 + 6) gestation in a live or stillbirth. We use the term “neonate” as the overarching term including these live and stillbirths. For our infection analyses, we included pregnancies ongoing or conceived after the start of widespread community testing for SARS-CoV-2 on May 18, 2020. For our vaccination analyses, we included pregnancies ongoing or conceived after the start of the COVID-19 vaccination programme on December 8, 2020. Live born neonates were followed up to four weeks (28 days) after birth and all mothers up to six weeks (42 days) postpartum. To allow sufficient time for the return and incorporation of records relating to the end of pregnancy plus the four-week neonatal or six-week postpartum period prior to data extraction, we excluded pregnancies conceived after June 1, 2021, to ensure all included pregnancies could be followed-up to the likely upper gestational limit of 40 + 6 gestation by February 28, 2022. However, to minimise unnecessary loss of data, pregnancies conceived towards the end of the inclusion period were retained even if they delivered after 40 + 6 (up to 44 + 6) and hence a small number of pregnancies ended in March 2022.

Outcomes

We examined the following neonatal outcomes: stillbirth, neonatal death, extended perinatal mortality, low Apgar score (5 min Apgar score <7), very low Apgar score (5 min Apgar score <4), small-for-gestational age (birthweight <10th centile), very small-for-gestational age (birthweight <3rd centile), preterm birth (<37 + 0 weeks gestation) and very preterm birth (<32 + 0 weeks gestation). For preterm births and very preterm births, we examined these overall and by the type of onset of preterm birth (spontaneous or provider-initiated). NRS neonatal death records were linked to the COPS database using unique identifiers to ascertain neonatal deaths. Stillbirths and other neonatal outcomes were available in the COPS database, derived from NRS stillbirth and SMR02 delivery records. We examined the following maternal outcomes: admission to critical (intensive or high dependency) care (any cause) or death (any cause), hypertensive disorders of pregnancy, pregnancy-related bleeding, and venous thromboembolism. General acute (SMR01), maternity (SMR02), and critical care (Scottish Intensive Care Society Audit Group, SICSAG) discharge records and NRS death records were linked to the COPS database to ascertain these outcomes occurring during pregnancy or the postpartum period. Further detail on our outcome measures is provided in Table 7 and Supplementary Table 10.

Table 7 Definition, relevant exposure period, and additional eligibility criteria for each outcome measure
Full size table

Exposures

National data on confirmed SARS-CoV-2 infections and COVID-19 vaccinations were linked to the COPS database to identify exposures of interest. For infection analyses, we identified confirmed infections by a positive SARS-CoV-2 reverse transcription polymerase chain reaction (RT-PCR) test or, from Jan 6, 2022, a positive LFD test (unless the LFD result was followed by a negative RT-PCR result within 48 h)27. Tests taken in hospital, in community testing centres, and (for LFD tests) at home, in response to symptoms or as part of regular/routine testing of asymptomatic individuals, were all included. A subsequent positive test during the relevant exposure period was considered a separate infection if it was >90 days after a prior infection. For vaccination analyses, we identified vaccinations with any vaccine type (Oxford/AstraZeneca ChAdOx1-S/nCoV-19, Pfizer-BioNTech BNT162b2, or Moderna mRNA-1273) or dose number (first to fourth). All vaccinations given during the relevant exposure period were included. Pregnancies were considered exposed if they had a confirmed infection, or vaccination, between six weeks preconception up to the end of the relevant outcome-specific exposure period: up to 31 + 6 gestation for very preterm birth, 36 + 6 gestation for preterm birth, or the end of pregnancy for all other outcomes (Table 7).

We did not include exposures more than six weeks prior to conception when classifying exposure status, as such prior exposures were uncommon. For example, only 3.1% (127 of 4,074) of the women with infection during the pregnancy exposure period included in our analyses had had infection, vaccination, or both more than six weeks prior to conception.

Covariates

Data were available on the following covariates: maternal area-level deprivation, rural urban status, ethnicity, clinical vulnerability, diabetes, smoking status, BMI and parity. Maternal area-level deprivation was based on maternal postcode of residence mapped to Scottish Index of Multiple Deprivation (SIMD) quintile. SIMD ranks small areas across Scotland on the basis of administrative data relating to income, employment, education, health, access to services, crime, and housing28,29. Areas are then categorised into quintiles from 1 (including the most deprived fifth of the population) to 5 (the least deprived fifth). Maternal rural urban status was based on maternal postcode mapped to the Scottish urban-rural categorisation. The urban-rural categorisation classifies settlements across Scotland based on population size and (for rural and remote areas) drive time to the nearest urban area30. A detailed categorisation was used for descriptive analyses (large urban areas, other urban areas, accessible small towns, remote small towns, accessible rural areas, remote rural areas, and unknown). A less detailed categorisation (urban, rural, unknown) was used for adjustment in models. Ethnicity was based on self-reported ethnicity included on healthcare records and grouped in five categories according to the Scottish decennial population census categories (White, South Asian, Black/Caribbean/African, other/mixed ethnicity, and unknown)31.

Women were grouped as clinically extremely vulnerable, clinically vulnerable, or not clinically vulnerable. Women were classified as clinically extremely vulnerable if they were identified on the national highest risk/shielding list maintained by Public Health Scotland32 and, of those not extremely vulnerable, were classified as clinically vulnerable if they were in any Q-COVID risk group33 (excluding diabetes) or had hypertension according to cross-sectional GP/primary care data available from June 2020 and January 2021. To categorise women by diabetes status (pre-existing diabetes, gestational diabetes or unknown onset, no diabetes, or unknown), data were taken from SMR02 maternity discharge records where possible; if this was not available then data were extracted from GP records. For smoking status (smoker, ex-smoker, non-smoker, and unknown) and BMI (underweight<18.5 kg/m2, healthy weight 18.5- < 25, overweight 25- < 30 and obese/severely obese≥30), data were taken from SMR02 delivery records where possible (which provide information on smoking status and BMI at antenatal booking); if this was not available then these data were extracted from GP records. There was one exception to this for smoking—if it was documented that a woman was a non-smoker at antenatal booking, but they were recorded as either a smoker or ex-smoker on a GP record, then we categorised the woman as an ex-smoker. For parity, data were taken from SMR02 maternity discharge records, with parity calculated as the total number of previous pregnancies minus the total number of spontaneous and therapeutic abortions.

Creating matched cohorts

Separate cohorts, and matched controls, were drawn for each outcome measure (for infection and vaccination analyses separately) due to the differing eligibility criteria (Table 7).

To create matched cohorts for our infection analyses, we matched each pregnancy with confirmed infection (and no vaccination) in the relevant exposure period to three pregnancies with no confirmed infection (or vaccination) in the exposure period. Pregnancies where the woman had both infection and vaccination in the relevant exposure period were excluded from analysis. Pregnancies were matched on maternal age at conception (+/- one year), season of conception, and gestational week of first infection in the exposed pregnancy (hence a pregnancy where the mother was infected at 25 weeks gestation would be matched to a pregnancy reaching at least 25 weeks gestation). Controls were selected randomly for each exposed pregnancy, starting with the exposed pregnancies with the smallest number of potential controls and iterating through each exposed pregnancy with the pool of controls getting increasingly smaller. In a deviation from our protocol, we additionally matched on health board of residence (Greater Glasgow & Clyde and Lanarkshire versus all other health boards) in cohorts examining two maternal outcomes: hypertensive disorders of pregnancy and pregnancy-related bleeding. This was due to consistently lower recording of these outcomes on maternity (SMR02) discharge records in Greater Glasgow & Clyde and Lanarkshire, potentially reflecting regional differences in clinical pathways or recording practices (Supplementary Figs. 5, 6).

Some of our outcomes had missing data (small for gestational age, type of onset of preterm birth [provider-initiated or spontaneous preterm birth] and Apgar score). While the neonates with missing data are likely to be different to neonates without missing data (for example, potentially the sickest neonates), the proportion of neonates missing data for these outcomes was low and was similar in our exposed and control cohorts (see Supplementary Table 11). We therefore dropped exposed neonates with missing outcome data along with their matched controls, and dropped any additional controls with missing outcome data, for the cohorts examining these outcomes.

Creation of matched cohorts for vaccination analyses was similar. We matched each pregnancy with vaccination (and no infection) in the relevant exposure period to two pregnancies with no vaccination (or infection) in the exposure period. Pregnancies where the woman had both infection and vaccination in the relevant exposure period were again excluded from analysis. Pregnancies were matched on maternal age at conception and gestational week of first vaccination. Only two matched controls were selected for each vaccinated pregnancy (compared to three for each infected pregnancy), due to the smaller pool of unvaccinated controls, largely reflecting the shorter study period for the vaccination analysis compared with the infection analysis.

Statistical analysis

We conducted descriptive analyses examining covariates, exposures, and outcomes in exposed and control cohorts. In line with our prespecified protocol, we assessed associations between our exposures and outcomes using conditional logistic regression. We first ran crude models with no covariates (thereby only accounting for the matching factors). For models with sufficient outcome events (≥30), we then ran models adjusting for covariates (all covariates if ≥90 outcome events, deprivation and parity only if 30–89 outcome events)34. In general, for covariates with missing data, we included “unknown” categories in our models (see Table 1). We did this to prevent unbalanced matching as a result of dropping some exposed or control pregnancies due to missing data on covariates. We did, however, conduct complete case analyses dropping any pregnancies with missing covariate information to reassure that this was not biasing our results and found negligible changes to our results. For models examining preterm birth, we did not adjust for parity due to relatively high levels of missing parity data among preterm births within our infected cohort. For models examining hypertensive disorders of pregnancy and pregnancy-related bleeding, where cohorts were additionally matched on health board, we confirmed that the association between exposures and these outcomes was similar in Glasgow/Lanarkshire and all other health boards before presenting an overall combined adjusted estimate. In response to reviewer request, in a deviation from our protocol, we replicated these analyses using conditional Poisson regression allowing us to calculate risk ratios for comparison with the odds ratios from the conditional logistic regression models. Analyses were conducted in R 3.6.1., with code developed for this analysis available on GitHub25.

Subgroup analyses

We conducted stratified analyses of the association between infection and each outcome by timing of the first infection during the relevant exposure period (< or ≥ 20 + 0 gestation). Pregnancies where the woman had infections at < and ≥ 20 + 0 weeks gestation were excluded.

Ethics and permissions

COPS has ethical approval from the National Research Ethics Service Committee, South East Scotland 02 (REC 12/SS/0201: SA 2) and information governance approval from the Public Benefit and Privacy Panel for Health and Social Care (2021-0116).

Reporting summary

Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.