opensrp / opensrp-client-goldsmith

0 stars 0 forks source link

Implement "My CHWs" view #81

Open isabelcshaw opened 3 years ago

isabelcshaw commented 3 years ago

This view will replace the current "My Clients" register view in the CHW app. There are two parts to this work. 1. We need to build a register view that shows the names and task completion rates of each CHW in that supervisor's catchment. 2. When the user clicks on an individual CHW, we need to show performance statistics.

Notes on scope in the mock below:

Screen Shot 2021-02-23 at 10 08 09 PM

Once the user clicks on an individual CHW, we need to show the same performance view that we currently have for the CHW. This view should be identical to what we have already built bc we want to ensure transparency between the CHW and their supervisor.

Notes on scope in the mock below:

Screen Shot 2021-02-23 at 10 12 08 PM

Lastly, we'll want to add the "come in for a stock pick up" to the option menu. For v1, this does not actually have to do anything when you click it. We just need to show that that would eventually be an option.

Screen Shot 2021-02-23 at 10 18 14 PM
ekigamba commented 3 years ago

My CHWs page

Assumptions

LOE:Client 5 days LOE:Server 2 days LOE:Total 7 days

Normal CHW
{
  "identifier": "3885a5b7-2369-545f-8e52-05ed437144d5",
  "active": true,
  "organization": "15a74c62-39a3-5c8d-904f-f709e4906dc8",
  "practitioner": "82841d3c-5ab4-5b8c-b494-4c2fda81fafa",
  "code": {
    "text": "Community Health Worker"
  }
}
Supervisor
{
  "identifier": "3885a5b7-2369-545f-8e52-05ed437144d5",
  "active": true,
  "organization": "15a74c62-39a3-5c8d-904f-f709e4906dc8",
  "practitioner": "82841d3c-5ab4-5b8c-b494-4c2fda81fafa",
  "code": {
    "text": "Supervisor"
  }
}
dubdabasoduba commented 3 years ago

Server-Side Endpoint Creation steps

  1. Params identifier<practitioner(supervisor)>,practitioner-role code e.g "CHW", "Nurse"
  2. Get location/organisation practitioner
  3. Get all practitioner roles using the organisation id
  4. Filter the practitioner roles using the practitionerRole code
  5. Get the practitioners referenced in the renaming practitioner roles
  6. bundle this up in an array and return.

LOE: 2 days

dubdabasoduba commented 3 years ago

Here is the Server side issue https://github.com/OpenSRP/opensrp-server-web/issues/769