Exemplo n.º 1
0
 public TherapyTracker.CompletedAppointment GetCompletedAppointmentTime(TherapyTracker.Appointment Appointment)
 {
     TherapyTracker.CompletedAppointment completedAppointment = TransferScheduledAppointmentToCompletedAppointment(Appointment);
     completedAppointment.startTime = GetStartTime();
     completedAppointment.endTime   = GetEndTime(completedAppointment.startTime);
     return(completedAppointment);
 }
Exemplo n.º 2
0
 public void AddCompleteAppointment(CompletedAppointment CompletedAppointment)
 {
     completedSchedule.Add(CompletedAppointment);
     CompletedAppointment.AddMinutesToPatient();
     CompletedAppointment.patientIdentifier.DetermineRUG();
     Console.WriteLine("\nAn appointment has been COMPLETED with " + CompletedAppointment.patientIdentifier.name);
     Console.WriteLine("Starting at " + CompletedAppointment.startTime + " and ending at " + CompletedAppointment.endTime + ".\n");
     RemovePreviousAppointment(CompletedAppointment);
 }
Exemplo n.º 3
0
 public void RemovePreviousAppointment(CompletedAppointment Appointment)
 {
     foreach (Appointment appointment in schedule)
     {
         if (appointment.appointmentID == Appointment.appointmentID)
         {
             schedule.Remove(appointment);
             break;
         }
     }
 }
Exemplo n.º 4
0
        public void CompleteAppointment()
        {
            TherapyTracker.Appointment appointmentToComplete = GetAppointment();
            Console.WriteLine("Did you complete the session as originally scheduled?\n");
            Console.WriteLine("(1)Yes or (2)No\n");
            int userInput = VerifyOneOrTwo();

            if (userInput == 1)
            {
                TherapyTracker.CompletedAppointment completed = TransferScheduledAppointmentToCompletedAppointment(appointmentToComplete);
                userTherapist.AddCompleteAppointment(completed);
            }
            else
            {
                TherapyTracker.CompletedAppointment completed = GetCompletedAppointmentTime(appointmentToComplete);
                userTherapist.AddCompleteAppointment(completed);
            }
        }
Exemplo n.º 5
0
 public TherapyTracker.CompletedAppointment TransferScheduledAppointmentToCompletedAppointment(TherapyTracker.Appointment Appointment)
 {
     TherapyTracker.CompletedAppointment completedAppointment = new TherapyTracker.CompletedAppointment(Appointment.startTime, Appointment.endTime, Appointment.patientIdentifier);
     completedAppointment.appointmentID = Appointment.appointmentID;
     return(completedAppointment);
 }