Description
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.
Dev Notes
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 |
---|---|
1. getEncounter() | Encounter |
2. getEncounterByUuid | Encounter |
3. getEncounters | List<Encounter> |
4. getEncountersByPatientId | List<Encounter> |
5. getEncountersByPatient | List<Encounter> |
6. getEncountersByVisit | List<Encounter> |
7. getEncountersNotAssignedToAnyVisit | List<Encounter> |
8. getEncountersByVisitsAndPatient | List<Encounter> |
9. getAllEncounters | Map<Interger, List<Encounter>> |
It can restrict by the locations while directly accessing the encounters for some other use cases.