Dated reminders bug fix to use correct patient pid in log array