-
Type:
Story
-
Resolution: Unresolved
-
Priority:
Low
-
Affects Version/s: None
-
None
-
STOP TB Sprint 9
As a system, I want to automatically close all applicable open/pending Truenat Test Orders at the end of the day, so that no Test Order remains active beyond its one-day validity.
Acceptance Criteria
At EoD, the system shall identify Truenat Test Orders with status Pending where:
- Test was not conducted; or
- Result has not been entered/received; or
- The order has reached the end of its one-day validity.
The system shall:
- Change the order status to Closed.
- Record EoD as the closure reason.
- Record closure date/time.
- Maintain the complete order history.
- Ensure that a new Test Order can subsequently be created from the beneficiary record when required.
Important Rule
A Completed order shall not be closed by the EoD process because it already represents a successfully completed test.
An Invalid/Error attempt is closed as soon as the result is recorded, and a new repeat order is created. If the repeat order remains Pending at EoD, that repeat order shall subsequently be closed by EoD.