-
Type:
Task
-
Resolution: Done
-
Priority:
Highest
-
Affects Version/s: None
-
None
-
STOP TB Sprint 10, STOP TB Sprint 11, STOP TB Sprint 12
Type: Change request · Module: Contact Tracing – TPT Module and Follow-Up (PRD 7.4.1) · PRD: TBMJA PRD v186, highlighted changes
Background / Context
TPT follow-up and completion outcomes were built under STOP-47 and STOP-48 (both Closed, 3.0). PRD v186 replaces the outcome list, drops the "Developed active TB during TPT" redirect and replaces "Other" with Remarks.
Problem Statement
The TPT outcome list in the app does not match the outcomes the programme now records.
Current Behaviour
- TPT outcome status: Completed / Incomplete / Lost to follow up / Developed active TB during TPT / Died during TPT / Other.
- Completed → enables date of completion.
- Developed active TB during TPT → creates a new active-TB case record and closes the TPT case.
- Died during TPT → enables date of death and cause of death.
- Other → enables a free-text reason.
Expected Behaviour / Requirement
| Field | Type | Options / Values | Logic (as written in PRD) |
|---|---|---|---|
| TPT outcome status | Radio / Dropdown | Treatment Completed, Died, Treatment failure, Lost to follow-up, TPT discontinuation due to toxicity, Not evaluated, Treatment regimen changed | Mandatory. 'Completed' → enable Date of TPT outcome. 'Died during TPT' → enable Date of TPT outcome and Cause of death. |
| Others | Remove this field from the TPT outcome status | ||
| Remarks | Free text | — | Optional. |
| Date of TPT outcome | Date picker | ≤ today | Mandatory. Cannot be a future date. |
| Cause of death | Free text | — | Enabled if outcome = Died during TPT. Mandatory if enabled. |
User Story
As a Counselling Officer, I want to close a TPT case with an outcome from the programme's current list, so that TPT results are reported consistently.
Acceptance Criteria
- Given a TPT follow-up, when TPT outcome status opens, then it lists exactly the 7 PRD options and is mandatory.
- Given outcome = Treatment Completed, when selected, then Date of TPT outcome is enabled.
- Given outcome = Died, when selected, then Date of TPT outcome and Cause of death are enabled, and Cause of death is mandatory.
- Given Date of TPT outcome, when a future date is entered, then it is rejected.
- Remove other field from the TPT outcome status
- Given Remarks is blank, when the form is submitted, then it still submits.
- Given the outcome list, when shown, then "Developed active TB during TPT", "Incomplete" and "Other" are not present.
Business Rules / Validations
- TPT outcome status: mandatory, single selection.
- Date of TPT outcome: not a future date.
- Cause of death: mandatory when enabled.
- Remarks: optional.
Dependencies
STOP-47,STOP-48(Closed): existing outcome field and case closure.STOP-603: same form; build together.- Confirmed TB Cases: today receives contacts who develop active TB through the redirect being removed.
Impact / Affected Areas
TPT follow-up form, TPT case closure, the path from TPT to Confirmed TB Cases, existing TPT outcome records, Dashboard TPT Cases Summary (STOP-500) if it reads outcome values.
QA / Testing Considerations
- Test each of the 7 outcomes and which fields each enables.
- Open TPT cases closed under the old values and confirm they display correctly.
- Check the Dashboard TPT card still counts correctly after the change.
PRD Reference
TBMJA PRD – Section 7.4.1 Household Contact (HHC) Tracing → TPT Module and Follow-Up: https://pmp.piramalswasthya.org/confluence/spaces/AMRIT/pages/149487638/TBMJA+PRD