Avoiding duplicate observations per encounter created on the same day