-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Highest
-
Affects Version/s: None
-
None
-
STOP TB Sprint 8
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