When search for the encounters, the list contains the encounters of the patients who belong to other locations. It should be fixed to restrict the encounters by the locations.
Location Based access control method should add the restrictions to these following methods from the EncounterService class which are directly getting the encounters object from the DAO.
It should restrict the encounters by the encounter location.
|Method Name||Return Object|
|9. getAllEncounters||Map<Interger, List<Encounter>>|
It can restrict by the locations while directly accessing the encounters for some other use cases.