Exemplo n.º 1
0
        static void Main(string[] args)
        {
            info i = new info();

            Console.WriteLine("Please enter the name of the Hospital");
            i.setHospital_Name(Console.ReadLine());

            Console.WriteLine("Is it a private or a public hospital ");
            i.setHospitalType(Convert.ToBoolean(Console.ReadLine()));

            Console.WriteLine("Please enter the hospital address");
            i.setAddress(Console.ReadLine());

            Console.WriteLine("In what province is the hospital situated");
            i.setProvince(Convert.ToChar(Console.ReadLine()));

            Console.WriteLine("In what province is the hospital situated");
            i.setArray(Convert.ToChar(Console.ReadLine()));

            Capture c = new Capture();

            c.getPatientDetails();

            printDetails p = new printDetails();
        }
Exemplo n.º 2
0
        public void PrintItems()
        {
            info i = new info();

            Console.Clear();

            Console.WriteLine("Hospital Name" + i.getHospital_Name());
            Console.WriteLine("Address" + i.getAddress());
            Console.WriteLine("Private or public " + i.getHospitalType());

            for (int x = 0; x < i.size(); x++)
            {
                Console.WriteLine("IDNUmber:{0}" +
                                  "\nPatient Name:{1}" +
                                  "\nPatient Surname:{2}" +
                                  "\nRefering Doctor:{3}" +
                                  "\nBloodtype:{4}" +
                                  "\nAllergies:{5}" +
                                  "\nHad Covid:{6}" +
                                  "\nGetting the vaccine:{7}",
                                  i.getIDNumber(x), i.getName(x), i.getSurname(x), i.getRefDr(x), i.getBloodType(x), i.getAllergies(x),
                                  i.getBCovid(x), i.getVaccine(x));
            }

            Console.ReadLine();
        }
Exemplo n.º 3
0
        public void getPatientDetails()
        {
            info i = new info();

            Console.Clear();

            for (int x = 0; x < i.size(); x++)
            {
                Console.WriteLine("Please enter the patient ID number: ");
                String ID_Number = Console.ReadLine();

                Console.WriteLine("Please enter the patient" + (x + 1) + "name: ");
                String Name = Console.ReadLine();

                Console.WriteLine("Please enter the patient Surname ");
                String Surname = Console.ReadLine();

                Console.WriteLine("Please enter the patient Medical Aid  ");
                String MedicalAid = Console.ReadLine();

                Console.WriteLine("Please enter the Docters name that will be treating the patient  ");
                String RefDr = Console.ReadLine();

                Console.WriteLine("Please enter the patient blood type");
                char BloodType = Convert.ToChar(Console.ReadLine());

                Console.WriteLine("Please enter the allergies of the patient ");
                String Allergies = Console.ReadLine();

                Console.WriteLine("Please enter if the patient is covid Positive (True/ False) :  ");
                Boolean CovidPositive = Convert.ToBoolean(Console.ReadLine());

                Console.WriteLine("Please enter if the patient will be taking the vaccine ");
                String strVac = Console.ReadLine();
            }



            //Done
        }