java.lang.Object
com.mirna.hospitalmanagementapi.domain.entities.Consultation

@Entity(name="Consultation") public class Consultation extends Object
Version:
1.0
Author:
Mirna Gama
  • Constructor Details

    • Consultation

      public Consultation(Patient patient, Doctor doctor, LocalDateTime consultationDate)
      Constructor for class Consultation
      Parameters:
      patient - Patient who scheduled the consultation
      doctor - Doctor who will be at the consultation
      consultationDate - Scheduled date for the consultation
    • Consultation

      public Consultation()
  • Method Details

    • getId

      public Long getId()
      Returns the consultation id.
      Returns:
      A Long representing the consultation id.
    • setId

      public void setId(Long id)
      Sets the consultation id.
      Parameters:
      id - The consultation's unique identifier.
    • getConsultationDate

      public LocalDateTime getConsultationDate()
      Returns the consultation date
      Returns:
      A local date time object representing the consultation date
    • setConsultationDate

      public void setConsultationDate(LocalDateTime consultationDate)
      Sets the consultation date.
      Parameters:
      consultationDate - Scheduled date for the consultation
    • getPatient

      public Patient getPatient()
      Returns the patient
      Returns:
      A Patient entity representing the patient
    • setPatient

      public void setPatient(Patient patient)
      Sets the patient.
      Parameters:
      patient - Patient who scheduled the consultation
    • getDoctor

      public Doctor getDoctor()
      Returns the doctor
      Returns:
      A Doctor entity representing the doctor
    • setDoctor

      public void setDoctor(Doctor doctor)
      Sets the doctor.
      Parameters:
      doctor - Doctor who will be at the consultation