✨ Feat: Predefined Specialization Dropdown in Admin “Add Doctor” Popup
Summary
Replace free-text specialization input in the Admin Dashboard’s Add Doctor popup with a dropdown of predefined specializations to improve data consistency and reduce entry errors.
Problem Statement
Currently, while adding a doctor, admins type specialization manually.
This creates issues:
- Inconsistent values for the same specialization (e.g., ENT, Ent, Ear Nose Throat)
- Typos and formatting mismatches
- Duplicate or fragmented reporting/filtering
- Harder mapping for downstream queue and assignment workflows
Proposed Solution
UI Update
- In Admin Dashboard → Doctors Directory → Add Doctor popup:
- Replace Specialization text input with a Select/Dropdown field
- Field remains required Predefined Specializations
- Populate dropdown from a fixed list of supported specializations (config/constant-driven)
- Examples: General Physician, Gynecology, ENT, Pediatrics, Orthopedic, etc. Validation
- Only allow values from the predefined list
- Block form submission if no specialization is selected Optional Future Scope
- Add admin-configurable specialization master list (CRUD)
- Add Other option with controlled review flow (if needed) Alternatives Considered
- Keep free-text with strict validation rules
- Rejected because it still allows inconsistent naming and higher maintenance.
- Autocomplete with suggestions only
- Rejected because users can still submit non-standard custom values.
Benefits
- Standardized specialization data
- Fewer manual errors and duplicates
- Better filtering, analytics, and reporting
- Cleaner integration with specialization-based assignment/queue features
Risks or Concerns
- Existing doctor records may contain legacy specialization strings and may need normalization
- Backend/API contract must align with predefined specialization values
- Any future new specialization requires updating the master list
Acceptance Criteria
- Specialization field in Add Doctor popup is a dropdown, not free text.
- Dropdown options come from a predefined specialization list.
- Form cannot be submitted without selecting a valid specialization.
- Selected specialization is saved and displayed correctly in doctor directory.
- No regressions in doctor creation/edit flow.
Edited by Lakshy Yarlagadda