Beispiel #1
0
        protected internal static void AddDiagnose(Clinic clinic)
        {
            Console.Write("\n Enter your ID: ");
            int doctorID = Convert.ToInt32(Console.ReadLine());
            var cards    = clinic.GetDoctorsPatients(doctorID);

            if (cards != null)
            {
                foreach (var card in cards)
                {
                    Console.WriteLine($" Card Number: {card.cardNumber}   \t Patient: {card.patient.Name} \t Date: {card.appointmentDate.ToLongTimeString()}");
                }

                Console.Write("\n Enter Card Number: ");
                int cardnumber = Convert.ToInt32(Console.ReadLine());
                Console.Write(" Write diagnose: ");
                string diagnose = Convert.ToString(Console.ReadLine());
                clinic.AddDiagnose(doctorID, cardnumber, diagnose);
            }

            return;
        }