issues
search
onaio
/
fhir-gateway-extension
This repo holds the OpenSRP permissions checker and data access checker
Other
0
stars
1
forks
source link
Add the ability to build the LocationHierarchy based on the Sync Strategy
#65
Closed
dubdabasoduba
closed
1 month ago
dubdabasoduba
commented
3 months ago
Context
The LocationHierarchy endpoint currently expects the ID of the location we are trying to get the hierarchy for.
In some cases, this ID might need to be dynamic. This can be determined by the following:
User assigned location
Here, the LocationHierarchy endpoint will be triggered with the user-assigned locations as the location we get the LocationHierarchy for.
User selected location
Here the LocationHierarchy endpoint will be triggered with the user-selected locations as the locations to get the hierarchy for.
This option can only be used if the following conditions are fulfilled:
The deployment/app user
Related Entity Location
as its sync strategy
The
_syncLocations
parameter is not null from the request
Acceptance Criteria
[ ] Be able to build the hierarchy based on the login users location assignment
[ ] Be able to build the hierarchy based on the user select locations
[ ] Be able to buildthe hierarchy based on the provided location Id
References
https://docs.google.com/document/d/11Io0bMeQrEz4sdZYI4Qz-H4yRW8VYI-QJkNGt1qkiH4/edit?usp=sharing
Context
_syncLocations
parameter is not null from the requestAcceptance Criteria
References