Fig. 1

Flowchart of inclusion and exclusion of either dialysis or kidney transplant patients. Inclusion and exclusion are presented downwards with primarily all patients in either dialysis or kidney transplantation of working age (years) in the study period 2005–2019; then excluded patients who emigrated and in the transplantation cohort patients with primary graft loss without data on first transplantation or graft loss same date as first transplantation; then excluded patients in the transplant group with an immediate graft loss after transplantation; then excluded patients without data in the DREAM registry; then excluded patients without available controls and finally the study population