Dynamic Form for ASHA: Auto-Calculate HBYC Due Date and Generate Incentive

    • Type: Story
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: None
    • AMRIT Sprint 47
    • FLW Mobile App
    • AMRIT Demo

      As an ASHA, I want a dynamic form that auto-calculates the HBYC Due Date in Month and Year format based on the Date of Delivery, so that I can correctly schedule and record HBYC visits and receive incentives for timely completion.

      Business Logic:

      • When ASHA selects "HBYC Visit" and enters the "Date of Delivery", the system should:
        • Auto-populate the HBYC Due Date as:
          • Date of Delivery + 3 Months
        • Display the due date in Month and Year format (e.g., "December 2025")

      Validations:

      • HBYC Due Date must:
        • Be equal to or after Date of Delivery
        • Be equal to or before Today’s Date

      Incentive Logic:

      • If the HBYC Visit is recorded and the Due Date is valid:
        • Mark the visit as Eligible for Incentive

      Acceptance Criteria:

      S.No. Scenario Expected Result
      1 ASHA enters a valid Date of Delivery and selects HBYC Visit HBYC Due Date is auto-calculated as DoD + 3 months
      2 HBYC Due Date is before DoD Show validation error: "Due Date cannot be before Date of Delivery"
      3 HBYC Due Date is in the future Show validation error: "Due Date cannot be in the future"
      4 HBYC Due Date is correctly calculated and within valid range Incentive Status = Eligible 
      5 ASHA skips HBYC Visit or enters invalid date Incentive Status = Not-Eligible

            Assignee:
            Saurav Mishra
            Reporter:
            Rohit.Prajapati
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: