Data Availability
The datasets analysed in this study are not publicly available due to participant privacy and security concerns. Researchers can apply for access to these data from the register holders: for Finnish data with the Social Insurance Institution of Finland (Prescription Register), the Finnish National Institute for Health and Welfare (Hospital Discharge Register), and Statistics Finland (Causes of Death Register); for Swedish data with National Board of Health and Welfare (National Patient Register, Prescribed Drug Register), Statistics Sweden Death and sociodemographic data in LiSA register), and the Swedish Social Insurance Agency (MiDAS register).