Patient flow based allocation of hospital resources door