General Check-up: server work (problem list, sheet upload, saving check-ups and referrals, incentive count)

XMLWordPrintable

    • Type: Task
    • Resolution: Done
    • Priority: Low
    • 2.13.1
    • Affects Version/s: None
    • None
    • FLW Mobile App
    • All

      Full details: General Check-up BRD v0.6, https://pmp.piramalswasthya.org/confluence/pages/viewpage.action?pageId=187400202

      What this ticket is
      The server side of the new General Check-up screen. The app work is in FLW-1229. The wording and testing are in FLW-1230.

      What to do

      1. Keep the list of problems in a table, not in the app code. Each problem has: a name in English and Hindi, the type it sits under, an order, and four on/off settings (is it an emergency, does another module handle it, does it need typed text, is it active). The list has a version number. Build an API so the app can download the current list and its version.
      2. Let ops change the list by uploading a sheet. The server checks the sheet first and loads it only if it is correct. Reject the sheet and say which row is wrong if: a name is missing, an ID is used twice, a problem sits under a type that does not exist, or Other is not marked as needing typed text. Every good upload raises the version number. To hide a problem, mark it inactive. Do not delete it.
      3. Save each check-up. Save: the person, the Mitanin, the date, the problem chosen (its ID and the name as it looked that day), the priority (Routine or Emergency), the link to the referral, and the time saved. If the Mitanin chose Other, save the text she typed (up to 250 characters). Reject Other with no text. Accept check-ups made offline when the phone syncs.
      4. Referrals: use the existing referral tables and APIs. The facility is required and must be one of five: HWC, PHC, CHC, Medical College, District Hospital. The referral date cannot be in the future and cannot be more than one month back.
      5. Do not make two referrals for the same person, the same problem and the same month. If one already exists (even from another module), give back that one. A different problem for the same person is allowed.
      6. Follow-up: add these status values: Treated at HWC, Medicines given, Not yet visited, Referred to higher facility, Other. Add a Referred to field with four choices: PHC, CHC, Medical College, District Hospital. It is needed only when the status is Referred to higher facility.
      7. Incentive (AMM-2252): count people, not referrals. One person counts once in a month, even if she was referred many times, for many problems, to any of the five levels, from any module. Pay Rs 400 when 10 different people are counted. Pay it in the month of the referral date, not the day it was submitted. Check what AMM-2252 does today. If it counts only HWC referrals, or counts rows, change it.
      8. ANM verification screen (FLW-1121, FLW-1145): show the people counted for the month.
      9. Reports, for each Mitanin and each month: the number of referrals and the number of different people, split by module and by type of problem. Also a list of the texts typed under Other, so ops can see what to add to the list.

      Done when

      • The app can download the list and its version. After a sheet upload, the change reaches the app at its next sync with no new app release.
      • A wrong sheet is rejected with a clear message. A correct sheet loads.
      • A check-up made offline syncs and keeps its original problem name, even if the problem is renamed or hidden later.
      • A referral with no facility is rejected. Only the five facilities are accepted.
      • Same person, same problem, same month gives one referral.
      • 10 different people in a month gives Rs 400. 9 people gives nothing. 9 people with 12 referrals counts as 9, so nothing.
      • A referral to PHC, CHC, Medical College or District Hospital counts the same as an HWC referral.
      • A referral dated last month and submitted this month is paid in last month.
      • A future date, or a date more than one month back, is rejected.
      • A follow-up with Referred to higher facility saves where the person was sent.

      Not in this ticket
      App screens. A Refer to Facility button inside the NCD and Communicable Diseases tiles (later release). The list of named government hospitals. An admin screen for the problem list.

      Related
      AMM-2252, AMM-2427, AMM-2428, FLW-856, FLW-1033, FLW-1121, FLW-1145, FLW-1206, FLW-1012.

              Assignee:
              Deep Shikha
              Reporter:
              Ritam Dubey
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: