Converted problem_encounter.php to standard security model, take 2.