internal static MedicalAppointment Create(DateTime StartTime, DateTime EndTime, int DoctorId, string Notes, string Location, string PatientName, string InsuranceNumber, bool FirstVisit)
        {
            MedicalAppointment apt = MedicalAppointment.Create();

            apt.StartTime       = StartTime;
            apt.EndTime         = EndTime;
            apt.DoctorId        = DoctorId;
            apt.Notes           = Notes;
            apt.Location        = Location;
            apt.PatientName     = PatientName;
            apt.InsuranceNumber = InsuranceNumber;
            apt.FirstVisit      = FirstVisit;
            return(apt);
        }
Ejemplo n.º 2
0
        ObservableCollection <MedicalAppointment> CreateMedicalAppointments()
        {
            ObservableCollection <MedicalAppointment> result = new ObservableCollection <MedicalAppointment>();
            DateTime today = DateTime.Today;

            result.Add(MedicalAppointment.Create(StartTime: today.AddHours(10), EndTime: today.AddHours(11), DoctorId: 1, Notes: "", Location: "101", PatientName: "Dave Murrel", InsuranceNumber: GenerateNineNumbers(), FirstVisit: true));
            result.Add(MedicalAppointment.Create(StartTime: today.AddDays(2).AddHours(15), EndTime: today.AddDays(2).AddHours(16), DoctorId: 1, Notes: "", Location: "101", PatientName: "Mike Roller", InsuranceNumber: GenerateNineNumbers(), FirstVisit: true));

            result.Add(MedicalAppointment.Create(StartTime: today.AddDays(1).AddHours(11), EndTime: today.AddDays(1).AddHours(12), DoctorId: 2, Notes: "", Location: "103", PatientName: "Bert Parkins", InsuranceNumber: GenerateNineNumbers(), FirstVisit: true));
            result.Add(MedicalAppointment.Create(StartTime: today.AddDays(2).AddHours(10), EndTime: today.AddDays(2).AddHours(12), DoctorId: 2, Notes: "", Location: "103", PatientName: "Carl Lucas", InsuranceNumber: GenerateNineNumbers(), FirstVisit: false));

            result.Add(MedicalAppointment.Create(StartTime: today.AddHours(12), EndTime: today.AddHours(13), DoctorId: 3, Notes: "Blood test results are required", Location: "104", PatientName: "Brad Barnes", InsuranceNumber: GenerateNineNumbers(), FirstVisit: false));
            result.Add(MedicalAppointment.Create(StartTime: today.AddDays(1).AddHours(14), EndTime: today.AddDays(1).AddHours(15), DoctorId: 3, Notes: "", Location: "104", PatientName: "Richard Fisher", InsuranceNumber: GenerateNineNumbers(), FirstVisit: true));
            return(result);
        }