added session_date comaprison variable to create treatment encounter