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 patientvoidsetConsultationDate(LocalDateTime consultationDate) Sets the consultation date.voidSets the doctor.voidSets the consultation id.voidsetPatient(Patient patient) Sets the patient.
-
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
-