Epic: Chest X-Ray Order Management and Result-Based Diagnostic Workflow

As a TB Screening Application, I want to create and manage Chest X-Ray test orders against a beneficiary's visit and process Chest X-Ray results through either manual entry or automated integration with a digital Chest X-Ray device, so that the beneficiary is appropriately referred for Truenat testing based on the Chest X-Ray result and all pending orders are closed at the end of the day.

1. User Story

US-01: Create Visit ID

As a TB Screening Application,
I want to create a unique Visit ID against a beneficiary when the General Examination is completed,
so that all investigations and services performed during that visit can be associated with the beneficiary's visit.

Acceptance Criteria

2. Chest X-Ray Order Creation

US-02: Create Chest X-Ray Order

As a TB Screening Application, After TB symptoms screening is done,
I want to automatically create a Chest X-Ray Order ID when a beneficiary is newly referred for Chest X-Ray on the current date,
so that the Chest X-Ray examination can be tracked from referral through completion.

Acceptance Criteria

3. Chest X-Ray Result Entry – Manual and Automated

US-03: Capture Chest X-Ray Result

As a Radiographer/authorized user,
I want to record the Chest X-Ray result either manually or receive it automatically from an integrated digital Chest X-Ray device,
so that the application can determine the next appropriate diagnostic action.

Acceptance Criteria

The system shall support two result-entry mechanisms:

A. Manual Result Entry

B. Automated Result Entry

4. Supported Chest X-Ray Results

The system shall support exactly the following four result categories:

Result

Meaning

Next Action

Normal

No abnormality requiring TB diagnostic referral

No further action

Abnormal but not TB Presumptive

Abnormal finding, but not suggestive of presumptive TB

Create Truenat Order

TB Presumptive

Finding is suggestive of presumptive TB

Create Truenat Order

AI Invalid Result

AI/device result cannot be considered valid

Repeat Chest X-Ray using same Order ID

5. Result-Based Workflow

US-04: Process Normal Result

As a TB Screening Application,
I want to automatically complete the Chest X-Ray order when the result is "Normal",
so that no unnecessary diagnostic referral is generated.

Acceptance Criteria

Chest X-Ray Result

       │

       ▼

    NORMAL

       │

       ▼

Order = COMPLETED

       │

       ▼

 No Further Action

6. Abnormal but Not TB Presumptive

US-05: Refer for Truenat

As a TB Screening Application,
I want to automatically create a Truenat Order when the Chest X-Ray result is "Abnormal but not TB Presumptive",
so that the beneficiary can undergo molecular testing for TB.

Acceptance Criteria

Chest X-Ray

     │

     ▼

Abnormal but

not TB Presumptive

     │

     ▼

X-Ray Order = COMPLETED

     │

     ▼

Create Truenat Order

     │

     ▼

Truenat Order = PENDING

7. TB Presumptive

US-06: Refer TB Presumptive Beneficiary for Truenat

As a TB Screening Application,
I want to automatically create a Truenat Order when the Chest X-Ray result is "TB Presumptive",
so that the beneficiary can undergo confirmatory molecular testing.

Acceptance Criteria

Chest X-Ray

     │

     ▼

TB Presumptive

     │

     ▼

X-Ray Order = COMPLETED

     │

     ▼

Create Truenat Order

     │

     ▼

Truenat Order = PENDING

8. AI Invalid Result

US-07: Repeat Chest X-Ray for AI Invalid Result

As a Radiographer/Application,
I want to repeat the Chest X-Ray when the result is "AI Invalid Result",
so that a valid result can be obtained without unnecessarily creating another Chest X-Ray Order.

Acceptance Criteria

             Chest X-Ray

                  │

                  ▼

          AI Invalid Result

                  │

                  ▼

       Repeat using SAME Order ID

                  │

          ┌───────┴────────┐

          │                │

      Valid Result     AI Invalid

          │                │

          ▼                ▼

 Process Result       Close Order

   Accordingly          at EoD

9. Chest X-Ray Not Conducted

US-08: Close Order When Test Is Not Conducted

As a authorized user,
I want to record the reason when a referred Chest X-Ray test is not conducted,
so that the system maintains an accurate audit trail of uncompleted investigations.

Acceptance Criteria

Example reasons may include:

10. EoD Order Closure

US-09: Automatically Close Open Orders at EoD

As a TB Screening Application,
I want to automatically close all eligible open Chest X-Ray Orders at the end of the day,
so that no expired Order ID remains open beyond its validity period.

Acceptance Criteria

At EoD, the system shall identify all Chest X-Ray Orders created for the current date that remain Pending.

The following orders shall be closed:

The Order Status shall be changed to:

Pending → Closed

The system shall retain the reason/status information for audit purposes.

11. Re-Order After Closure

US-10: Create New Chest X-Ray Order

As a authorized user,
I want to create a new Chest X-Ray Order when an earlier Order ID has been closed,
so that the beneficiary can undergo another Chest X-Ray examination when clinically or operationally required.

Acceptance Criteria

12. Order Status

The system shall support the following Chest X-Ray Order statuses:

Pending

Order has been created but the Chest X-Ray test/result is not yet completed.

Completed

Chest X-Ray test has been conducted and a valid final result has been recorded.

Closed

Order has expired or has been closed because the test was not conducted, result was not entered, or the final result remained AI Invalid.

Scenario

Order Status

New X-Ray referral

Pending

Test not yet conducted

Pending

Valid result entered

Completed

Normal result

Completed

Abnormal result

Completed

TB Presumptive

Completed

AI Invalid – repeat required

Pending

AI Invalid after repeated attempts at EoD

Closed

Test not conducted + reason recorded

Closed

Result not entered at EoD

Closed

Expired order at EoD

Closed

New order after previous closure

Pending


13. End-to-End Functional Flow


14. Overall Business Rules

ID

Business Rule

BR-01

A Visit ID shall be created when General Examination is completed.

BR-02

A new Chest X-Ray referral shall generate a Chest X-Ray Order ID for the current date.

BR-03

Each Chest X-Ray Order ID shall be valid for one calendar day.

BR-04

Multiple Order IDs may be created against the same Visit ID.

BR-05

Each Order ID shall be unique.

BR-06

An Order ID shall initially have status Pending.

BR-07

A valid completed Chest X-Ray test shall change the Order Status to Completed.

BR-08

Normal result requires no further diagnostic referral.

BR-09

Abnormal but not TB Presumptive result shall trigger a Truenat Order.

BR-10

TB Presumptive result shall trigger a Truenat Order.

BR-11

AI Invalid Result shall trigger a repeat Chest X-Ray using the same Order ID.

BR-12

A new Order ID shall not be created for an AI Invalid repeat.

BR-13

If the test is not conducted, a reason shall be mandatory.

BR-14

Orders with no completed test/result shall be closed at EoD.

BR-15

An Order remaining AI Invalid after repeated attempts shall be closed at EoD.

BR-16

A closed Order shall not be reused for another test.

BR-17

A new Order ID may be created against the same Visit ID after an earlier Order is closed.

BR-18

All order status changes and result updates shall be auditable.


Key User Story Summary