Setting and participants
anxiety disorder, Anxiety, F32, depression, Depression, adjustment disorders, F33
DISEASE, DISORDERS
Eligible patients at nine public primary health care centres in western Sweden were screened by designated HCPs and enrolled between February 2018 and June 2020. Patients were considered eligible if they were 18–65 years old, and currently employed or studying (at least part-time) during the last 9 months, had a registered address, could understand written and spoken Swedish, were currently on sick leave that had lasted no longer than 30 days, and had been diagnosed by a physician for any of the following conditions in ICD-10: mild to moderate depression (F32 and F33), mild to moderate anxiety disorder (F41), reaction to severe stress, and adjustment disorders (F43, which includes the Swedish diagnosis ED (F43.8 A)). Exclusion criteria were previous sick leave exceeding 14 days for any of the diagnoses mentioned above during the last 3 months, severe impairment hindering the use of the eHealth intervention, ongoing documented alcohol or drug abuse, severe disease that had a survival expectancy of < 1 year or that could interfere with follow-up if the intervention was assessed as a burden, or participation in a conflicting study. A flowchart of the study participants is presented in Fig. 
CONSORT diagramEligible patients were sent an information letter about the study by regular mail and informed that an HCP would be in contact with further details and to ask if they would like to participate in the study. They were also informed that they could contact the HCPs and/or the researchers for more information about the study. Patients who agreed to participate were sent a consent form to sign and return in a prepaid envelope. Randomization was based on a computer-generated list created by a third party and stratified by age (< 50 or ≥ 50 years) and diagnostic group (1: Depression, 2: Anxiety, 3: Stress reactions and disorders). Ethical approval was obtained from the Regional Ethical Review Board in Gothenburg, Sweden (DNr 497 − 17, T023-18, and T526-18).In total, 1,317 patients were screened for study enrolment. Of the 1,118 patients who were reached by phone, 803 met the eligibility criteria, 588 of whom declined to participate. The remaining 215 patients were randomized and assigned to either the control or the intervention group. Six of these withdrew consent, leaving 107 in the control group and 102 in the intervention group. All participants were informed of their allocation by phone.