Utilizing Partial Flexibility to Improve Emergency Department Flow: Theory and Implementation