Skip to content

fix: "Analytics Board Diaplaying Only Doctors Assigned to Patients"

Satyapranavanadh Rayapureddy requested to merge 188-admin-analytics-board into develop

📌 Description:

This MR fixes an issue in the Admin Dashboard Analytics Board where only doctors who were assigned to patients were being displayed.

The analytics board has now been updated to display all registered doctors, regardless of whether they are currently assigned to any patients. This ensures accurate and complete analytics data for administrative monitoring.

🐞 Problem:

  • Only doctors assigned to at least one patient were visible in the analytics board.
  • Registered doctors without patient assignments were excluded.

This resulted in:

  • Incomplete analytics data
  • Misleading representation of total registered doctors
  • Incorrect reporting metrics

Changes Implemented:

Updated data-fetching logic to retrieve all registered doctors instead of filtering by patient assignment.

Ensured UI displays:

  • Assigned doctors
  • Unassigned registered doctors
  • Verified analytics counts reflect total registered doctors correctly.

🎯 Result:

  • Analytics board now accurately represents all registered doctors.
  • Improved data transparency for administrators.
  • Prevents misleading metrics due to filtered visibility.
  • Aligns dashboard behavior with expected functional requirements.

🧪 Tested Scenarios:

  • Registered doctors without patient assignments → Displayed
  • Analytics counts verified against total registered doctor count
Edited by Satyapranavanadh Rayapureddy

Merge request reports

Loading