Track Nayi Pahal Kit Handover to Newly Married Couples and Enable Incentive for ASHA

XMLWordPrintable

    • Type: Task
    • Resolution: Unresolved
    • Priority: High
    • 3.7.0
    • Affects Version/s: None
    • FLW Mobile App
    • AMRIT Demo

      As part of the Family Planning Module, enhance the existing API to capture details related to Nayi Pahal Kit handover to newly married couples and trigger the corresponding incentive for ASHA.

      The following new fields are to be added in the existing Beneficiary or Family Planning form API:

      1. Is Nayi Pahal Kit Handed Over to Couple?

      • Type: Radio Button
      • Options: Yes / No
      • Default Value: No

      2. Nayi Pahal Kit Handover Date


      3. ASHA Photo with Couple While Handing Over Kit

      • Type: File Upload
      • Conditions:
        • Enabled only if "Is Nayi Pahal Kit Handed Over" = Yes
        • Maximum 2 images allowed
        • Formats: JPEG, PNG
        • Maximum Size: 3 MB per image
        • Stored in backend as base64 

      4. Nayi Pahal Kit Photo – View Option

      • Type: View Image link/button
      • Action: Opens uploaded photos in preview mode (no edit allowed)

      Incentive Logic (Backend Integration):

      If ASHA marks "Is Nayi Pahal Kit Handed Over" = Yes and the record passes validation:

      • Automatically trigger incentive record creation in backend.
      • Incentive Master Claim Form: Family Planning → S. No. 57
      • Incentive Description: “Incentive for Distributing Naye Pahel Kit”
      • Incentive Amount: ₹100 per kit / per ASHA
      • Ensure only one incentive per couple is generated.

      API Changes Required:

      1. Downsync API (Get Data):
        • Add new fields in the payload for Nayi Pahal Kit details and image URLs.
      1. Upsync API (Submit Data):
        • Accept new fields and validate conditions.
        • Accept uploaded images (base64/multipart).
        • Trigger incentive logic upon successful save.
          API end points- 
          flw-api/couple/register/saveAll (up-sync)

      flw-api/couple/register/getAll (down-sync)

            Assignee:
            Saurav Mishra
            Reporter:
            Ritik Rathaur
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: