Part B – Software Requirements Specification (SRS)
FR-01 – Visit ID Generation
Trigger: Completion of TB Symptoms Screening.
System shall:
FR-02 – Chest X-Ray Referral
When a Chest X-Ray referral is initiated, the system shall:
Each Order ID shall maintain at least the following information:
Field | Description |
Order ID | Unique investigation order identifier |
Beneficiary ID | Beneficiary reference |
Visit ID | Visit reference |
Test Type | Chest X-Ray |
Order Date | Date order was created |
Order Time | Time order was created |
Status | Pending / Completed / Closed |
Result | Chest X-Ray result |
Result Source | Manual / Automated |
Result Date/Time | Date/time result received |
Closure Date/Time | Date/time order closed |
Closure Reason | Reason for closure, where applicable |
Parent Order ID | Previous order, if created for repeat |
Created By | User/system |
Updated By | User/system |
The system shall provide:
Manual Result Entry
Search Beneficiary
↓
Select Visit
↓
Select Pending X-Ray Order
↓
Select Result
↓
Save Result
Automated Result Flow
Digital X-Ray Device
↓
Integration Interface
↓
Identify Order
↓
Validate Result
↓
Save Result
↓
Process Business Rules
The system shall only accept the following final Chest X-Ray results:
Any unsupported or invalid result received through integration shall be rejected or flagged for appropriate exception handling.
After successful result capture, the application shall execute the applicable business rule.
X-Ray Result | X-Ray Order | System Action |
Normal | Completed | No further action |
Abnormal but not TB Presumptive | Completed | Create Truenat Order |
TB Presumptive | Completed | Create Truenat Order |
AI Invalid Result | Closed | Create new X-Ray Order |
For an AI Invalid Result:
Example:
Visit V001
│
├── X-Ray Order XR001 → AI Invalid → Closed
│ │
│ ▼
├── X-Ray Order XR002 → AI Invalid → Closed
│ │
│ ▼
└── X-Ray Order XR003 → Normal → Completed
This provides a complete audit trail of repeat attempts.
For either:
the system shall automatically initiate a Truenat referral.
The system shall:
The system shall provide a "Test Not Conducted" option.
When selected:
The system shall run an EoD process to identify eligible Pending Chest X-Ray Orders.
Processing logic
FOR each Chest X-Ray Order
IF Order Status = Pending
AND Order Date < Current Business Date
THEN
Change Status → Closed
Record Closure Date/Time
Record Closure Reason
END IF
END FOR
For the current day's EoD, the system shall close applicable orders that have not been completed according to the operational closure rules.
For a Closed Chest X-Ray Order:
The system shall support:
One Beneficiary
│
▼
One Visit ID
│
├── X-Ray Order 001
├── X-Ray Order 002
├── X-Ray Order 003
└── Truenat Order(s)
Multiple Chest X-Ray Order IDs may therefore be created against the same Visit ID.
The application shall provide role-based access for result entry and order management.
Function | Radiographer | Lab Technician | Nurse | Counsellor |
View Beneficiary | ✓ | ✓ | ✓ | ✓ |
Search Beneficiary | ✓ | ✓ | ✓ | ✓ |
View X-Ray Order | ✓ | ✓ | ✓ | ✓ |
Manual X-Ray Result | ✓ | Configurable | Configurable | Configurable |
Mark Test Not Conducted | ✓ | Configurable | Configurable | Configurable |
Create New Order | ✓ | Configurable | Configurable | Configurable |
View Result | ✓ | ✓ | ✓ | ✓ |
Note: Final permissions should be configurable according to program policy.
The system shall maintain an audit trail for:
NFR-01 – Offline Capability
The TB Screening Camp application should support the Chest X-Ray workflow in the camp's offline environment where applicable.
NFR-02 – Performance
Beneficiary and Pending Order searches should return results within an acceptable operational response time under the camp's local network conditions.
NFR-03 – Data Integrity
Every result must be linked to the correct:
Beneficiary ID → Visit ID → Order ID
to prevent results from being assigned to the wrong beneficiary.
NFR-04 – Security
Only authenticated and authorized users shall be able to:
NFR-05 – Auditability
The system shall preserve historical orders and test attempts and shall not delete closed orders as part of normal business operations.
BENEFICIARY
│
│ 1:N
▼
VISIT
│
│ 1:N
▼
DIAGNOSTIC ORDER
│
├───────────────┐
│ │
▼ ▼
CHEST X-RAY TRUENAT
ORDER ORDER
│
│ 1:N
▼
TEST ATTEMPT
│
▼
RESULT
For repeat AI-invalid testing, the recommended model is:
XR001
AI Invalid
Closed
│
│ Parent Order
▼
XR002
AI Invalid
Closed
│
│ Parent Order
▼
XR003
Normal
Completed
This is preferable to overwriting results because it preserves the complete diagnostic history.
┌──────────────────────────────┐
│ TB Symptoms Screening │
│ Completed │
└──────────────┬───────────────┘
▼
┌──────────────────────────────┐
│ Create Visit ID │
└──────────────┬───────────────┘
▼
┌──────────────────────────────┐
│ New Chest X-Ray Referral │
└──────────────┬───────────────┘
▼
┌──────────────────────────────┐
│ Create X-Ray Order ID │
│ Status = PENDING │
└──────────────┬───────────────┘
▼
┌─────────────────┐
│ Chest X-Ray │
│ Test │
└────────┬────────┘
│
┌────────┴────────┐
▼ ▼
┌─────────────┐ ┌───────────────┐
│ Manual │ OR │ Automated │
│ Entry │ │ Device Result │
└──────┬──────┘ └───────┬───────┘
└──────────┬─────────┘
▼
┌────────────────────┐
│ X-Ray Result │
└─────────┬──────────┘
│
┌────────────┼───────────────┬───────────────┐
▼ ▼ ▼ ▼
Normal Abnormal TB Presumptive AI Invalid
│ not TB Presumptive │ │
│ │ │ │
▼ └────────┬─────────┘ ▼
Completed ▼ Save Result
│ Create Truenat Order │
▼ │ ▼
No Action ▼ Close X-Ray Order
Truenat Workflow │
▼
Create New X-Ray
Order ID
│
▼
Repeat Test
END OF DAY
│
▼
Identify X-Ray Orders
│
▼
Status = Pending?
│
┌───────┴───────┐
│ │
Yes No
│ │
▼ ▼
Check Condition No Action
│
┌─────┼──────────┐
│ │ │
▼ ▼ ▼
Not Done No Result Expired/
Unresolved
│ │ │
└─────┴──────────┘
│
▼
Status = CLOSED
│
▼
Save Closure Details
The functionality shall be accepted when:
Key design principle
Beneficiary ID → Visit ID → Test Order ID → Test Result → Next Action
The Visit ID represents the screening encounter, while each Order ID represents a specific Chest X-Ray test order. This allows multiple orders under one visit while preserving a complete history of repeat tests, invalid results, closures, and final outcomes.