Fixed left join syntax

In the process we can create all the encounters in the
staging_encounter table