fixing bug in encounter order template that didn't scop p[erfereed codes sets.  Fixing issue in oid lookup for field values