Skip to content

Fix/kyp queue remove

Damanagari Sathwika requested to merge fix/kyp-queue-remove into develop

Overview

This MR removes the "Know Your Patient (KYP) Queue" from the Queues module to simplify the patient flow and eliminate unnecessary intermediate steps.

What does this MR do and why?

This change ensures that patients are directly moved from the Vitals Queue to the Consultation Queue without passing through the KYP Queue.

Previously: Vitals → KYP → Consultation

Now: Vitals → Consultation

The KYP queue was causing unnecessary delay in patient flow, so it has been removed strictly from the queue system without affecting any other functionality.

Changes Made

  • Removed "Know Your Patient Queue" from Queues UI
  • Removed KYP-related routing from queue flow
  • Updated transition logic to skip KYP after vitals
  • Ensured patients move directly to Consultation Queue

Technical Details

  • Removed KYP entry from queue list rendering

  • Updated queue transition logic:

    • Replaced vitals → kyp with vitals → consultation
  • Removed conditional checks and navigation specific to KYP in queues

  • No changes made outside queue-related logic

Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 📝 Documentation update
  • 🎨 UI/UX improvement
  • ️ Refactor (no functional changes)
  • Performance improvement
  • 🧪 Test update
  • 🔧 Configuration change
  • 🚨 Security fix

Related Issues

Screenshots or Screen Recordings

Before

Screenshot_from_2026-04-10_14-00-44

Screenshot_from_2026-04-10_11-21-34

KYP Queue visible in Queues
Patients routed to KYP after vitals

After

Screenshot_from_2026-04-10_14-54-19

Screenshot_from_2026-04-10_14-54-50

KYP Queue removed from Queues Patients directly routed to Consultation

How to Set Up and Validate Locally

  1. Pull this branch

  2. Run the project

    bun install
    bun dev
  3. Navigate to Queues page

  4. Complete Vitals for a patient

Expected behavior:

  • "Know Your Patient Queue" should not be visible
  • Patient should directly appear in Consultation Queue

Testing Done

  • Manual testing completed
  • Unit tests added/updated

Test Cases Covered:

Scenario Expected Result Status
KYP queue visibility Not visible in Queues
After vitals completion Patient moves to Consultation
Other queues functionality Unaffected

Code Quality Checklist

Code Standards

  • Code follows project conventions
  • No console.log() or debugger statements
  • No unused imports or variables
  • No duplicate code
  • ESLint and Prettier checks pass

React Best Practices

  • No unnecessary re-renders
  • Proper state handling

API & Data Fetching

  • No API changes
  • Existing logic preserved

Error Handling

  • No impact on error handling

Documentation

  • README.md updated
  • .env.example updated
  • CHANGELOG.md updated

Edited by Damanagari Sathwika

Merge request reports

Loading