Longitudinal retrospective cohort study of nurses’ career path and retention