Resolve "feat/vitals-queue : Add search option in Vitals Queue"
Related Issue
Closes #132 (closed)
Description
This Merge Request implements a search functionality specifically for the Vitals Queue page. This enhancement allows volunteers to quickly locate patients in the queue using their Book Number or Patient Name (partial match, case-insensitive).
Summary of Changes
Updated QueueDisplay.tsx:
- Added search logic to filter the patient list based on the search term.
- Implemented partial match for Book Number searching.
- Implemented case-insensitive partial match for Patient Name searching.
- Added a searchEmptyMessage prop to customize the "no results found" message.
- Fixed a bug involving a duplicate prop (actionLoadingBookNo).
Updated VitalsQueuePage.tsx:
Enabled the search feature by passing showSearch={true} to QueueDisplay. Configured a custom empty message: "No patient found in the Vitals Queue."
Context
As the number of patients in the Vitals Queue grows, it becomes increasingly difficult for volunteers to manually scan for specific patients. This search feature aims to improve efficiency and accuracy by provided a targeted search mechanism within the current queue.
Checklist
-
Code follows project coding standards (React/TypeScript). -
Search functionality is strictly scoped to the Vitals Queue (via showSearch prop). -
Search is responsive and provides clear feedback when no results are found. -
No modifications to other queues or global search behavior.
Edited by Kushal Lagichetty