Fixing location code setter
more fixing encounterform to set location ID