Optimizing teacher basic need satisfaction in distributed healthcare contexts