-
Type:
Story
-
Resolution: Done
-
Priority:
High
-
Affects Version/s: None
-
None
-
STOP TB Sprint 01
Overview
The Counselling module is part of the Confirmed TB Cases workflow. It allows a Counselling Officer to record all counselling activities across six structured sections (A–F) for each confirmed TB case. The module supports multi-session editing, auto-resumption, and Nikshay record update on completion.
Module Entry
- Actor: Counselling Officer
- Entry point: Confirmed TB Cases list → select beneficiary → Counselling tab
- Mandatory: Yes — for all confirmed TB cases
- Post-submission: Case marked 'Counselled'; Nikshay record updated
Auto-filled Patient Header (read-only)
The following fields are auto-populated from existing records and are not editable by the counsellor:
- Counselling Date — defaults to today's date
- Counselling Officer Name — from logged-in user account
- Beneficiary Name — First Name + Last Name
- Beneficiary ID (AMRIT ID)
- Nikshay ID — from Diagnostics screen
- Age / Gender
- Diagnosis — X-ray Result | NAAT Result | Liquid Culture Result
Section Structure
| Section | Title |
|---|---|
| A | Disease Awareness |
| B | Do's and Don'ts |
| C | Government Schemes |
| D | Treatment Regimen |
| E | Counselling Completion |
| F | Follow-Up to TU (within 15 days) |
Each section has mandatory radio button fields (Yes/No) and an optional free-text notes field. Navigation is linear (A → B → C → D → E → F) via Next/Back buttons. The form supports draft resumption — if the session is interrupted, the counsellor can resume from the last saved section.
Section E — Conditional Logic
- If Counselling Completion Status = Refused: all preceding sections (A–D) become non-mandatory; a mandatory 'Reason for Refusal' free-text field (max 300 chars) is displayed.
- If Counselling Completion Status = Complete: all sections A–D remain mandatory.
Section F — Conditional Logic
- If "Has the patient started the prescribed TB treatment regimen?" = No: a mandatory 'Reason for not starting' free-text field (max 500 chars) is displayed.
Submission
- Triggered by Submit button on Section F.
- If status = Complete → Nikshay record updated; case marked 'Counselled'.
Acceptance Criteria
AC-1: Counselling list view — incomplete or not started
Given the counsellor is on the Confirmed TB Cases list
When a case has counselling that is incomplete or not yet started
Then
- Auto-filled header fields are displayed: Counselling Date (today), Counselling Officer Name, Beneficiary Name, Beneficiary ID, Nikshay ID, Age/Gender, Diagnosis
- A button is shown:
- "Start Counselling" — if no counselling session exists for this case
- "Continue Counselling" — if a session exists but is not marked Complete
AC-2: Counselling list view — edit completed or in-progress counselling
Given the counsellor is on the Confirmed TB Cases list
When a case has counselling that is not marked Complete
Then the counsellor can open and edit any previously saved counselling details
AC-3: Start new counselling
Given the counsellor clicks "Start Counselling"
When the form opens
Then the counsellor is routed to Section A of the counselling form
AC-4: Section A — navigation to Section B
Given the counsellor is on Section A (Disease Awareness)
When all mandatory fields are filled and the counsellor clicks Next
Then the counsellor is routed to Section B
AC-5: Section B — navigation to Section C
Given the counsellor is on Section B (Do's and Don'ts)
When all mandatory fields are filled and the counsellor clicks Next
Then the counsellor is routed to Section C
AC-6: Section C — navigation to Section D
Given the counsellor is on Section C (Government Schemes)
When all mandatory fields are filled and the counsellor clicks Next
Then the counsellor is routed to Section D
AC-7: Section D — navigation to Section E
Given the counsellor is on Section D (Treatment Regimen)
When all mandatory fields are filled and the counsellor clicks Next
Then the counsellor is routed to Section E
AC-8: Section E — Refused status conditional field
Given the counsellor is on Section E (Counselling Completion)
When Counselling Completion Status is set to "Refused"
Then
- The "Reason for Refusal" free-text field appears and becomes mandatory (max 300 chars)
- All fields in Sections A–D become non-mandatory
AC-9: Section E — navigation to Section F
Given the counsellor is on Section E
When all applicable mandatory fields are filled and the counsellor clicks Submit
Then
- The counselling record is saved
- If Counselling Completion Status = Complete → Nikshay record is updated and the case is marked 'Counselled'
AC-10: Section F — conditional field for treatment not started
Given tAfter 15 days the counsellor is on Section F for the same patient (Follow-Up to TU)
When "Has the patient started the prescribed TB treatment regimen?" is set to "No"
Then the "Reason for not starting the prescribed TB treatment regimen" free-text field appears and becomes mandatory (max 500 chars)
AC-11: Section F — form submission
Given After 15 days the counsellor is on Section F for the same patient
When all applicable mandatory fields are filled and the counsellor clicks Submit
Then
- The counselling record is saved
- If Counselling Completion Status = Complete → Nikshay record is updated and the case is marked 'Counselled'
AC-12: Session interruption and auto-resumption
Given the counsellor is on any section and the app closes or terminates
When the counsellor reopens the app and navigates to the Confirmed TB Cases list
Then
- The patient's auto-filled header details are visible
- A "Continue Counselling" button is shown
- On clicking Continue, the counsellor is taken to the exact section where the session was interrupted, with all previously entered data intact
AC-13: Back navigation across sections
Given the counsellor is on any section
When the counsellor clicks the Back button
Then the counsellor is taken to the previous section with all previously entered data intact, allowing review and editing
- is blocked by
-
STOP-191 Role-Based Access Control broken — Nurse and Counselling Officer have identical module access
-
- Closed
-
-
STOP-192 UI Misalignment & Flickering Issue in Location Details Section on Household & Beneficiary Registration Screen
-
- Closed
-
-
STOP-193 DIGIPIN functionality not working as per PRD — incorrect display, extra undocumented field and missing Timestamp field in Household Registration
-
- Closed
-
-
STOP-194 Counselling Date auto-updates to current date on every visit instead of retaining the original counselling session date
-
- Closed
-
-
STOP-195 Validation is missing for "Reason for refusal" Field as per PRD in Counselling Module
-
- Closed
-
-
STOP-197 Validation Error Messages Not Clearing After Field Selection Across Forms
-
- Closed
-
-
STOP-199 Notes Field Data Leakage & Reset Issue Across Counselling Sections (A, B, C)
-
- Closed
-
-
STOP-203 Geolocation Fields Missing in Suspected, Confirmed, TPT, and Follow-up Modules as per PRD
-
- Closed
-
-
STOP-207 Beneficiary Status Not Updating to "Counselled" After Completing Counselling Workflow
-
- Closed
-
-
STOP-210 Counselling Sections Remain Editable After Submission
-
- Closed
-
-
STOP-220 Counselling Overview Screen Taking Excessive Time to Load After Clicking "Start Counselling"
-
- Closed
-
-
STOP-222 Counselling Form Not Submitting in Offline Mode – "Failed to Submit Counselling Form" Error
-
- Closed
-
-
STOP-224 Data Sync & State Inconsistency When Same Counselling Officer Logs in on Multiple Devices
-
- Closed
-
-
STOP-225 UI & Workflow Issues in Counselling Module – Keyboard Overlap and Incorrect Button Visibility
-
- Closed
-
-
STOP-226 Hindi Language Selection Not Applied – Counselling Sections Still Displayed in English
-
- Closed
-
-
STOP-230 Counselling Data Not Displaying in Local Database for Beneficiary
-
- Closed
-
-
STOP-231 Mandatory Fields Not Enforced in Section C – Government Schemes (PRD Mismatch)
-
- Closed
-
-
STOP-237 Counselling Data Loss After Submission, Validation Error Persist & Screen Stuck
-
- Closed
-
-
STOP-196 UI Inconsistency – Action Buttons Not Uniform Across Screens (Follow-up, Start Counselling, Back, Submit)
-
- Closed
-
-
STOP-198 Section Notes Not Persisting – Displaying Blank After Save in Counselling Form
-
- Closed
-