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

  1. User email id
  2. Password
  3. On entering valid credentials, the following options should be shown

B. Account select this to see following

  1. View Select to display Username, secured password, UUID, email id
  2. Update Select to update name and email id
  3. Delete Select and enter UUID to delete account such that user cannot login again

C. Doctors select this to see following

  1. View Select to display all doctors list
  2. 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
  3. Delete Select and enter UUID to delete doctor

D. Bookings select this to see the following

  1. View Show all existing bookings
  2. Search by doctor name enter value and display matching data or error
  3. Book enter doctor UUID to make an appointment such that available slots are updated
  4. 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: *********

  1. Account 2. Doctors 3. Bookings 4. Logout

Select an Option: 1

  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)

  1. View 2. Update 3. Delete 4. Main Menu

Select an option: 4

  1. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!