protected static void adminPractice() //menu for managing practices
        {
            do
            {
                Console.WriteLine(Environment.NewLine + "Practice Management Menu" + Environment.NewLine + "------------------------");
                Console.WriteLine("Type A to | Add a Practice" + Environment.NewLine + "Type E to | Edit a Practice" + Environment.NewLine + "Type V to | View all Practices" + Environment.NewLine + "Type B to | Return to Previous Menu");
                string adminChoice = Console.ReadLine().ToUpper(); //Converts input to upper case to ensure that it matches the options available in the switch case below

                switch (adminChoice)                               //runs different methods based on the users input
                {
                case "A":
                    Practice.addPractice();     //runs method for adding a new practice
                    break;

                case "E":
                    Practice.editPractice();     //runs method to edit an existing practice
                    break;

                case "V":
                    Practice.displayPractices();     //runs method to display a listed view of all practices
                    break;

                case "B":
                    adminMenu();     //returns to the previous menu
                    break;
                }
            } while (constantMenu == false);
        }
        public static void receptionistAppointment(Receptionist user) //menu for receptionists to manage appointments
        {
            do
            {
                Console.WriteLine(Environment.NewLine + "Appointment Management Menu" + Environment.NewLine + "----------------------");
                Console.WriteLine("Type A to | Add an Appointment" + Environment.NewLine + "Type V to | View all Appointments" + Environment.NewLine + "Type C to | Book a Phone Consultation" + Environment.NewLine + "Type P to | View all Phone Consultations" + Environment.NewLine + "Type B to | Return to the Previous Menu");
                string   menuChoice      = Console.ReadLine().ToUpper();
                Practice currentPractice = Practice.currentPractice(user);
                switch (menuChoice)
                {
                case "A":
                    Appointment.newAppointment(currentPractice);     //method to create new appointment
                    break;

                case "V":
                    Appointment.displayAppointments();     //method to display all appointments
                    break;

                case "C":
                    Consultation.newConsultation(user);     //method to create a new Phone Consultation Appointment based on Patient-requested tickets
                    break;

                case "P":
                    Consultation.receptionistView(currentPractice);     //method to display all phone consultation appointments
                    break;

                case "B":
                    receptionistMenu(loginBackup);     //load previous menu
                    break;
                }
            } while (!constantMenu);
        }
Exemple #3
0
 public Ticket(string ticketID, Patient patient, Dentist dentist, string email, DateTime day, Practice practice)
 {
     this.ticketID = ticketID;
     this.patient  = patient;
     this.dentist  = dentist;
     this.day      = day;
     this.email    = email;
     this.practice = practice;
 }
 public Consultation(string consultationID, string phone, Patient patient, Dentist dentist, DateTime date, Ticket ticket, Practice practice)
 {
     this.consultationID = consultationID;
     this.phone          = phone;
     this.patient        = patient;
     this.dentist        = dentist;
     this.date           = date;
     this.ticket         = ticket;
     this.practice       = practice;
 }
Exemple #5
0
 public Appointment(string appointmentID, Patient patient, Dentist dentist, Treatment treatment, Practice practice, string room, DateTime date, Appointment_Note note)
 { //Object for appointments
     this.appointmentID = appointmentID;
     this.patient       = patient;
     this.dentist       = dentist;
     this.treatment     = treatment;
     this.practice      = practice;
     this.room          = room;
     this.date          = date;
     this.note          = note;
 }