Specialization Management in Add Doctor Flow
Issue Summary
Implement dynamic specialization management in the Add Doctor flow to allow admins to add new doctor specializations directly from the specialization dropdown instead of relying only on hardcoded values.
Problem Statement
Currently, the specialization field in the Add Doctor modal supports only predefined/static specialization values.
Current Issues
- New specializations cannot be added dynamically.
- Specialization values are hardcoded.
- Duplicate specializations can be created with different casing/spaces.
- UI alignment and spacing issues exist in the dynamic specialization section.
Impact
- Admins cannot onboard doctors with new departments without code changes.
- Inconsistent specialization names can accumulate in database.
- Poor scalability for future doctor management.
Reproduction
- Open Manage Doctors page.
- Click “Add Doctor”.
- Open specialization dropdown.
- Try adding a new specialization not present in predefined list.
- Observe no centralized validation or management exists.
Proposed Solution
Implement dynamic specialization addition flow with duplicate prevention and backend normalization support.
- Add
+ Add New Specializationoption inside specialization dropdown. - Show new specialization input field only when selected.
- Allow dynamically adding new specialization.
- Auto-select newly added specialization.
- Prevent duplicate specializations.
- Improve spacing/alignment consistency in modal UI.