Quality of life associated with nursing professionals’ individual resources and work