fix Encounter.datetimeShouldBeBeforeCurrent