updated the way we pull encounters with nil encounter_datetime