Improve X-ray and TrueNat Result Updates at Scale

XMLWordPrintable

      Scale target: 100,000 records, scaling up to 1,000,000 records. Which record types count: [TBD/CLARIFICATION REQUIRED]

      Background / Context

      Diagnostic results should reach users quickly even as the number of orders grows.

      Problem Statement

      • The app repeatedly checks all diagnostic orders, including completed ones.
      • This delays receiving diagnostic results.
      • Checking and updating becomes slower as pending tests increase.

      Current Behaviour

      All orders are checked, including completed ones.

      Expected Behaviour / Requirement

      • Check only tests awaiting results.
      • Identify which results have been updated before retrieving them.
      • Avoid updates when test information has not changed.

      User Story

      As a nurse/counsellor, I want results to appear promptly without the app re-checking finished tests so that I can act on results sooner.

      Acceptance Criteria

      • Given a completed test, when result checks run, then it is not checked again.
      • Given a pending test with a new result, when checks run, then the result appears without unnecessary delay.
      • Given unchanged test information, then no update is performed.
      • Given a large number of pending orders, then the app handles them efficiently and overall performance is not degraded.
      • Existing diagnostic results remain accurate.

      Business Rules / Validations

      Result accuracy must not change. Which statuses count as "pending" vs "completed": [TBD/CLARIFICATION REQUIRED]

      Dependencies

      Offline syncing and diagnostic sharing story. Benchmarks story.

      Impact / Affected Areas

      X-ray and TrueNat result retrieval and display.

      Out of Scope

      Sharing of Not Conducted reasons (covered in the offline syncing and diagnostic sharing story).

      QA / Testing Considerations

      Test a mix of pending and completed orders at 100k to 1M scale. Verify results match the source.

      Open Questions / Clarifications

      • Expected result delay target?
      • Maximum number of pending orders to support?

              Assignee:
              Ankit Singh Bish
              Reporter:
              Shivani Garg
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: