public Appointment CreateAppoint(uint patientId, uint doctorId, DateTime apptTime)
        {
            var appt = new Appointment();

            appt.PatientId = patientId;
            appt.StaffId = doctorId;
            appt.Time = apptTime;
                        
            return appt;
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            var p1 = Shop.CreateNewPatient("Matar Jeng", "2215 56th St E. Auburn WA 98009", "123-31-9635", "312 856-2212", "*****@*****.**");
            var s1 = Shop.CreateNewStaff("Billy John MD", "111 34rd St NE, Puyallup WA 98021", "350 93-3924", "493 39-9435", "Heart Surgeon");
            var appointment1 = new Appointment();

            appointment1.PatientId = p1.PatientId;
            appointment1.StaffId = s1.StaffId;
            appointment1.Time = DateTime.Now;

            Console.WriteLine("***************** Welcome to Jamano Health Systems Inc *****************");

            Console.WriteLine("Patient Info: \n\tName: {0},  \n\tAddress: {1}, \n\tPhone #: {2}, \n\tSocial Security #: {3}, \n\tEmail: {4}", p1.Name,p1.Address,p1.PhoneNumber,p1.SSN,p1.Email);
            Console.WriteLine("\nStaff Info: \n\tName: {0},\n\tAddress: {1}, \n\tPhone #: {2}, \n\tSocial Security #: {3}, \n\tTitle: {4}", s1.Name, s1.Address,s1.PhoneNumber,s1.SSN,s1.Title);
            Console.WriteLine("\nAppoint Info: \n\tAppointment Date: {0}, \n\tAppointment #: {1}", appointment1.Time, appointment1.AppointmentId);
        }