Patient Flow in the Capacity Constrained Environments