Class Consultation
java.lang.Object
com.mirna.hospitalmanagementapi.domain.entities.Consultation
- Version:
- 1.0
- Author:
- Mirna Gama
-
Constructor Summary
ConstructorsConstructorDescriptionConsultation(Patient patient, Doctor doctor, LocalDateTime consultationDate) Constructor for class Consultation -
Method Summary
Modifier and TypeMethodDescriptionReturns the consultation dateReturns the doctorgetId()Returns the consultation id.Returns the patientReturns the reason of consultation cancellationbooleanReturns the canceledvoidsetCanceled(boolean canceled) Sets the canceledvoidsetConsultationDate(LocalDateTime consultationDate) Sets the consultation date.voidSets the doctor.voidSets the consultation id.voidsetPatient(Patient patient) Sets the patient.voidsetReasonCancellation(ReasonCancellation reasonCancellation) Sets the reason of consultation cancellation
-
Constructor Details
-
Consultation
Constructor for class Consultation- Parameters:
patient- Patient who scheduled the consultationdoctor- Doctor who will be at the consultationconsultationDate- Scheduled date for the consultation
-
Consultation
public Consultation()
-
-
Method Details
-
getId
Returns the consultation id.- Returns:
- A Long representing the consultation id.
-
setId
Sets the consultation id.- Parameters:
id- The consultation's unique identifier.
-
getConsultationDate
Returns the consultation date- Returns:
- A local date time object representing the consultation date
-
setConsultationDate
Sets the consultation date.- Parameters:
consultationDate- Scheduled date for the consultation
-
getPatient
Returns the patient- Returns:
- A Patient entity representing the patient
-
setPatient
Sets the patient.- Parameters:
patient- Patient who scheduled the consultation
-
getDoctor
Returns the doctor- Returns:
- A Doctor entity representing the doctor
-
setDoctor
Sets the doctor.- Parameters:
doctor- Doctor who will be at the consultation
-
isCanceled
public boolean isCanceled()Returns the canceled- Returns:
- A boolean value that states whether the consultation is canceled in the system
-
setCanceled
public void setCanceled(boolean canceled) Sets the canceled- Parameters:
canceled- Must not be null. Starts with the false value by default
-
getReasonCancellation
Returns the reason of consultation cancellation- Returns:
- An enum class representing the reason of cancellation.
- See Also:
-
setReasonCancellation
Sets the reason of consultation cancellation- Parameters:
reasonCancellation-
-