Add auto-calculated "Total No. of contacts" field to Community and Occupational Contact Tracing forms

XMLWordPrintable

    • Type: Task
    • Resolution: Done
    • Priority: Highest
    • 2.3
    • Affects Version/s: None
    • None
    • STOP TB Sprint 8, STOP TB Sprint 9

      Requirement

      Add a read-only, auto-calculated "Total No. of contacts" field to both the Community Contacts and Occupational Contacts forms in the Contact Tracing module. The value is the sum of the per-relationship / per-space contact counts already captured on the form.

      Field Specification

      Field Name Field Type Options / Values Validation / Logic
      Total No. of contacts Label (read-only, numeric) Auto-calculated Mandatory. Numerical values only. Applicable to both Community and Occupational Contact Tracing. Recalculates live as the user enters or edits the underlying contact counts.

      Acceptance Criteria

      • "Total No. of contacts" label renders on both Community and Occupational Contact Tracing forms
      • Value is auto-calculated as the sum of all "Number of <Relation>" entries (Community) or per-space contact counts (Occupational)
      • Field is read-only — user cannot edit it directly
      • Value updates in real time when a contributing count is added, edited, or removed
      • Field is mandatory — form cannot be submitted if the total is zero or blank
      • Value persists on the record and is available on sync/edit/view

      PRD Reference

      TBMJA PRD — Section 7.4 Contact Tracing and TPT Module

        1. TotalContact1.PNG
          44 kB
          Brijesh Singh
        2. TotalContact2.PNG
          47 kB
          Brijesh Singh
        3. TotalContact3.PNG
          33 kB
          Brijesh Singh
        4. TotalContact4.PNG
          68 kB
          Brijesh Singh

              Assignee:
              Brijesh Singh
              Reporter:
              Shivani Garg
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: