feat(Admin): uncheck or check doctors for particular camp and doctor details edit option too
name: Manage Doctors Enhancement
about: Enable doctor unregistration from camp and editing doctor details
title: "Admin: Enable Doctor Unregister & Edit Functionality in Manage Doctors"
labels: enhancement, admin, frontend, backend
assignees:
🩺 Admin Manage Doctors Enhancement
📌 Summary
The Admin Manage Doctors page currently supports only one-way camp registration — doctors can be registered for a camp but cannot be unregistered. Additionally, there is no way to edit doctor details after creation.
This issue proposes:
- Enabling doctor unregistration (check/uncheck toggle)
- Adding doctor edit functionality
🚨 Current Behavior
1️⃣ Camp Registration Dialog
- Already-registered doctors appear disabled / greyed out
- No way to uncheck or remove them
2️⃣ Registered Doctors Dialog
- Displays registered doctors in read-only mode
- No unregister/remove option
3️⃣ Doctor Directory Cards
- Display-only cards
- No edit button or workflow
- Doctor details cannot be updated
✅ Proposed Changes
🔁 1. Enable Check / Uncheck for Camp Registration
🔹 Backend
Add API:
Endpoint:
DELETE /api/v1/doctors/{doctorId}/register
🔹 Frontend
- Camp Registration Dialog
- Replace disabled state with toggle behavior
- Checked = registered
- Unchecked = unregister
- Registered Doctors Dialog
- Add "Unregister" / Remove button per doctor
- Show confirmation dialog before removal
✏ ️ 2. Enable Editing Doctor Details
🔹 Frontend
- Add Edit button/icon on each doctor card
- Reuse existing "Add Doctor" dialog in edit mode
- Pre-fill form with doctor’s current details
Editable Fields
- Name
- Age
- Sex
- Specialization
- Phone
- License number
- Availability
Edited by Mukthanand Reddy M