Uploaded image for project: 'Location Based Access Control'
  1. Location Based Access Control
  2. LBAC-16

Failed to restrict the encounters of the patients from other locations

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Should
    • Resolution: Fixed
    • None
    • 0.1.0

    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.

      Gliffy Diagrams

        Attachments

          Activity

            People

              suthagar23 Suthagar Kailayapathy
              suthagar23 Suthagar Kailayapathy
              Suthagar Kailayapathy Suthagar Kailayapathy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: