コード例 #1
0
        /// <summary>
        /// Reads the patient information, schedule and prints the consultation
        /// information.
        /// </summary>
        public static void ReadPatientInformationAndSchedule()
        {
            Console.Clear();
            Patient patient = PatientService.AddPatientInformationFromUser();

            AddPatient(patient);
            Consultation consultation = SchedulingService.GetInstance().Schedule(patient, 0);

            ConsultationService.AddConsultation(consultation);
            ConsultationHelper.PrintConsultationInfo(consultation);
        }
コード例 #2
0
 /// <summary>
 /// Displays all the consulations in the hospital.
 /// </summary>
 public static void ShowConsultations()
 {
     Console.Clear();
     if (HospitalConfiguration.GetInstance().Consultations.Count() == 0)
     {
         Console.WriteLine("No scheduled consultations yet.");
         return;
     }
     HospitalConfiguration.GetInstance().Consultations.ForEach(consultation => ConsultationHelper.PrintConsultationInfo(consultation));
 }