-
-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow for multiple places to be assigned to users #6543
Comments
Adding voice to this @garethbowen
User story"As a Community Health Assistant (CHA) supervising multiple Community Units (CUs), I want to be able to supervise my CUs without using multiple credentials (logging in and out to switch CUs or apps). This enables me to perform routine tasks such as death and muting reviews and to effectively offer intervention support to my CHVs. Currently, it is difficult to promptly do so because I am not an angel to know when a CHV is a particular CU needs my attention for me to switch to the CU." Background
Desired behavior
|
Hi @garethbowen @michaelkohn I will appreciate any updates on this. FYI @katanu @JenniferMuli |
Hi @christinawere . Currently this work is not prioritised, it's just an idea. Is this blocking or impacting a project moving forward? Is there a timeline for when this is needed? |
Hi @garethbowen yes this is much needed for the CHV supervisors in eCHIS Kenya who have multiple community health units under them so that they don't have to log in and out for multiple accounts. It's not blocking the CHAs to work, however from feedback right from co-création sessions with MoH to post deployment userfeedback from Migori County, it's not à good experience. It would be great if this is considered or prioritised in your current sprint to increase acceptability and usability of the eCHIS application by supervisors countrywide in Kenya. |
Prioritisation is @michaelkohn 's speciality, so I'll leave you in his capable hands! |
@christinawere I've added it to the agenda for our call with service designers tomorrow. I'd like to understand how many supervisors this affects in eCHIS and other projects, plus... there were conversations in the eCHIS 2.0 hierarchy deck around reorganizing the hierarchy so i'll be curious to understand how that would potentially impact this requirement. If you are not able to attend the call tomorrow, happy to connect in a separate session. |
Related forum posts in case we need to reach out to these community members |
MoH Mali is very keen to have this feature working an get unblock with their supervisor workflow. |
@michaelkohn @n-orlowski @leah-ngaari @latin-panda Thank you for picking this up!. Glad to be part of this conversation early in the year. One-to-many associations for supervisors; was already explored to some extent, configured, and tested by Kitsao and the eCHIS KE PMs in October last year. Perhaps the conversation needs to continue further with @alexosugo too Find the details here Fyi @Marina-Kenf @katanu @JenniferMuli |
See breadcrumbs video in the description of this PR. |
…#9126) Covers: support for downloading and uploading doc permissions when a user has multiple facilities new users v3 api to add a user with multiple facilities new users v3 api to update a user to add multiple facilities updated users shared library to support multiple facilities updated recent users search api to support multiple facilities Implementation details: when creating a user with multiple facilities, the contact has to be within one of the facilities /v3/users accepts the same payload and /v1/users /v3/users does not create facilities, only accepts an array of uuids of existing facilities /v3/users does not create a contact #6543
… with multiple facilities (#9094) Co-authored-by: latin-panda <66472237+latin-panda@users.noreply.github.com>
Overview
Currently replication permissions are based on a user's facility_id. This is a single UUID that references a place in the hierarchy. The user is permitted to access all people and places underneath that place. The user also has access to all reports about the people and places they can access.
There are a few caveats to this, including
The hierarchy is also used to represent the geographical areas being served and is useful for reporting on a place's catchment.
The facility_id also dictates the default selected place when loading the Contacts tab, and registering new places starts here.
Problems
Proposal
Instead of a user having a single facility_id allow configurations with multiple IDs. Keep the facility_id to reference the home place and add a new called something like "assigned_contacts". For backwards compatibility if you have no assigned contacts it defaults to the facility_id. The assigned_contacts behave the same as the facility_id but instead of querying the contacts_by_depth view with just one ID it'll use an array.
Each assigned contact will be able to be configured with a depth and report_depth component so they can be assigned contacts at different levels of the hierarchy. This means we can configure users who are assigned all places under their home place (as they are now) which means they will automatically be granted access to new children. Alternatively you can manually assign places to users where there is shared responsibility. One example is supervisors for an area will likely have access to view all CHPs in their area, but families may be assigned individually to CHPs and be reassigned as needed.
As well as replicating the assigned places, we will also allow read only access to all the parents, grandparents, etc of the assigned places so you can view but not edit the hierarchy. This means they can create valid children of places they can access.
When a user creates a new place we need to make sure it is assigned to them even if they're not assigned to the place's parent. This will require code to update the user's assigned places when a new place is created. This could be done in a sentinel transition but sentinel processes changes in order and can get behind which would be bad for assigned places. Instead, make a change to the replication code that updates the assignees when new places are replicated up. This will require a sentinel transition to update the user doc on place creation.
This allows for an admin to grant a CHP access to an arbitrary list of areas or families irrespective of their geographical location.
Discussion document
The text was updated successfully, but these errors were encountered: