Fairness over time in dynamic resource allocation with an application in healthcare