Exemple #1
0
        protected internal static void SeePatientHistory(Clinic clinic)
        {
            Console.Write("\n Enter your ID: ");
            int patientID = Convert.ToInt32(Console.ReadLine());
            var history   = clinic.GetPatientHistory(patientID);

            if (history != null)
            {
                foreach (var appointment in history)
                {
                    Console.WriteLine($" Patient: {appointment.patient.Name} \n Doctor {appointment.doctor.Name} " +
                                      $"\n Appointment Date: {appointment.appointmentDate.ToLongTimeString()} " +
                                      $"\n Diagnose: {appointment.Diagnose}");
                }
            }

            return;
        }