Question
Develop a Command Line Swift Program to replicate Patient Portal. The program needs the following input data: A. Login/Register Can be stored values for login
Develop a Command Line Swift Program to replicate Patient Portal. The program needs the following input data:
A. Login/Register Can be stored values for login or add new values to Register
- User email id
- Password
- On entering valid credentials, the following options should be shown
B. Account select this to see following
- View Select to display Username, secured password, UUID, email id
- Update Select to update name and email id
- Delete Select and enter UUID to delete account such that user cannot login again
C. Doctors select this to see following
- View Select to display all doctors list
- Add Select to add a new doctor Name, Email, UUID, available slots as a Dictionary of slot number and timing e.g. [1, 11:30] no need for time stamp
- Delete Select and enter UUID to delete doctor
D. Bookings select this to see the following
- View Show all existing bookings
- Search by doctor name enter value and display matching data or error
- Book enter doctor UUID to make an appointment such that available slots are updated
- Cancel Booking enter UUID to cancel
I have added an example of the flow on the page.
Eg. On the console
Login or Register
UserName: Rabah
Password: *********
- Account 2. Doctors 3. Bookings 4. Logout
Select an Option: 1
- View 2. Update 3. Delete 4. Main Menu
Select an option: 1
Name: Ishani Bose
Password: *********
Email: ish@gm.com
Id: sdvjbdsjvhsdfvgdshvsfd (Use UUID)
- View 2. Update 3. Delete 4. Main Menu
Select an option: 4
- Account 2. Doctors 3. Bookings 4. Logout
Select an option: 4
Thank You! Visit Again!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started