Package com.ehealthsystem.appointment
Class AppointmentInCreation
java.lang.Object
com.ehealthsystem.appointment.AppointmentInCreation
Class for storing the creation progress of an Appointment by the user.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDate()
Returns the date of the appointment.double
Returns the saved maximum distance to a Doctor.Returns the health information of the user as a List.Returns the healthproblem of the user.Returns the healthproblem chosen by the user.Return the specialization of the doctor.getTime()
Returns the time of the appointment.void
Sets the date of the appointment.void
setDistance
(double distance) Sets the maximum distance between doctor and user.void
setHealthInformation
(ArrayList<HealthInformation> healthInformation) Sets the health information of a user.void
setHealthProblem
(String healthProblem) Sets the health problem of the user.void
setHealthProblemChoice
(String healthProblemChoice) Sets the healthproblem of the user.void
setSpecialization
(String specialization) Sets the specialization of the doctor.void
Sets the time of the appointment
-
Field Details
-
doctorList
-
healthProblem
-
date
-
time
-
distance
private double distance -
specialization
-
healthProblemChoice
-
healthInformation
-
-
Constructor Details
-
AppointmentInCreation
public AppointmentInCreation()
-
-
Method Details
-
setDate
Sets the date of the appointment.- Parameters:
date
- the date of the appointment.
-
getDate
Returns the date of the appointment.- Returns:
- The time as an object of the type LocalDate.
-
setTime
Sets the time of the appointment- Parameters:
time
- the time of the appointment
-
getTime
Returns the time of the appointment.- Returns:
- The time as an object of the type LocalTime.
-
setHealthProblem
Sets the health problem of the user.- Parameters:
healthProblem
- the health problem of the user as a string.
-
getHealthProblem
Returns the healthproblem of the user.- Returns:
- The healthproblem as a String.
-
setSpecialization
Sets the specialization of the doctor.- Parameters:
specialization
- the specialization of the doctor.
-
getSpecialization
Return the specialization of the doctor.- Returns:
- The specialization as a String.
-
setDistance
public void setDistance(double distance) Sets the maximum distance between doctor and user.- Parameters:
distance
- the distance in km between doctor and user.
-
getDistance
public double getDistance()Returns the saved maximum distance to a Doctor.- Returns:
- The distance as double.
-
setHealthInformation
Sets the health information of a user.- Parameters:
healthInformation
- the list in which the health information of a user is stored.
-
getHealthInformation
Returns the health information of the user as a List.- Returns:
- The health information as an Arraylist.
-
setHealthProblemChoice
Sets the healthproblem of the user.- Parameters:
healthProblemChoice
- the healthproblem of the user.
-
getHealthProblemChoice
Returns the healthproblem chosen by the user.- Returns:
- The healthproblemchoice as a String.
-