improve policy code
refactor null user into application policy file
establish policy for indexing encounters for groups