Skip to content

Resolve "Assign Doctor Page Display"

Pavani Nagireddi requested to merge 162-assign-doctor-page-display into develop

Feature: Display Only Registered Doctors in Assign Doctor Page 📌 Overview

The Assign Doctor page has been updated to display all doctors registered for the currently active medical camp instead of showing a limited or incorrect subset of doctors.

This ensures consistency with the Admin dashboard and provides accurate data during patient-to-doctor assignment.

🎯 Objective

Show only camp-registered doctors

Ensure all registered doctors are visible

Remove incorrect client-side data limiting

Maintain existing UI and backend behavior

Problem Statement

Previously, the Assign Doctor page:

Displayed only 4 doctors

Did not reflect the actual number of registered doctors for the camp

Caused confusion during patient assignment

Meanwhile, the Admin dashboard correctly displayed all registered doctors.

Solution

Replaced the doctor data source with:

getRegisteredDoctors()

Removed any client-side logic that:

Limited the number of displayed doctors

Applied incorrect filtering

Used partial or stale state

Ensured the full API response is stored and rendered.

🔧 Scope of Changes

Updated data-fetching logic in the Assign Doctor page

No UI or styling changes

No backend changes

No routing or component structure changes

🧪 Result

All registered doctors are now displayed Only registered doctors are shown Data is consistent with Admin dashboard Patient assignment flow is accurate

🚀 Impact

Improves admin workflow

Prevents incorrect doctor assignment

Ensures real-time, reliable camp data visibility Screenshot_from_2026-02-17_11-55-09

Screenshot_from_2026-02-17_11-55-34

Edited by Pavani Nagireddi

Merge request reports

Loading