feat: Assign doc pop up in the patient registration page itself
Summary Convert the existing Assign Doctor screen into a reusable component and automatically open it in a modal after successful patient registration, while preserving current assignment functionality, UI styling, and workflow behavior.
Steps to reproduce
Register a new patient from the patient registration screen.
Observe the post-registration flow.
Attempt to assign a doctor using the existing Assign Doctor interface.
Example Project
N/A – Changes are implemented within the current project’s patient registration and doctor assignment workflow.
What is the current bug behavior?
After registering a patient, the Assign Doctor interface does not open automatically.
Doctor assignment requires manual navigation to the Assign Doctor screen.
The Assign Doctor UI is not reusable as a modal component.
What is the expected correct behavior?
After successful patient registration, the Assign Doctor modal opens automatically.
Assigning a doctor:
Completes successfully
Updates data correctly
Closes the modal safely
The standalone Assign Doctor screen continues to function exactly as before.
Dark theme styling and UI consistency remain unchanged.
No regressions in the existing doctor assignment workflow.
Relevant logs and/or screenshots

N/A – No errors observed. Feature enhancement focused on UI flow and component reusability.
Possible fixes
Refactored Assign Doctor screen into a reusable component.
Triggered modal open state after successful patient registration.
Ensured safe modal close handling without unintended navigation.
Preserved existing assignment logic, API calls, and state updates.