Healthcare Portal
 
Loading...
Searching...
No Matches
com.hospital.portal.model.Appointment Class Reference

Public Member Functions

 Appointment ()
 
 Appointment (LocalDate date, LocalTime startTime, LocalTime endTime, Patient patient, Doctor doctor, String appointmentPurpose)
 
String getAppointmentId ()
 
void setAppointmentId (String appointmentId)
 
LocalDate getDate ()
 
void setDate (LocalDate date)
 
LocalTime getStartTime ()
 
void setStartTime (LocalTime startTime)
 
LocalTime getEndTime ()
 
void setEndTime (LocalTime endTime)
 
Patient getPatient ()
 
void setPatient (Patient patient)
 
Doctor getDoctor ()
 
void setDoctor (Doctor doctor)
 
String getAppointmentPurpose ()
 
void setAppointmentPurpose (String appointmentPurpose)
 
String getObservations ()
 
void setObservations (String observations)
 
String toString ()
 

Public Attributes

String appointmentId
 

Detailed Description

Represents an appointment in the hospital portal system. Stores information about the date, time, patient, doctor, purpose, and observations of the appointment.

This class is mapped to the "appointments" table in the database.

Constructor & Destructor Documentation

◆ Appointment() [1/2]

com.hospital.portal.model.Appointment.Appointment ( )
inline

Default constructor for JPA.

◆ Appointment() [2/2]

com.hospital.portal.model.Appointment.Appointment ( LocalDate  date,
LocalTime  startTime,
LocalTime  endTime,
Patient  patient,
Doctor  doctor,
String  appointmentPurpose 
)
inline

Constructs an Appointment with the specified details.

Parameters
datethe date of the appointment
startTimethe start time of the appointment
endTimethe end time of the appointment
patientthe patient associated with the appointment
doctorthe doctor associated with the appointment
appointmentPurposethe purpose of the appointment

Member Function Documentation

◆ getAppointmentId()

String com.hospital.portal.model.Appointment.getAppointmentId ( )
inline

◆ getAppointmentPurpose()

String com.hospital.portal.model.Appointment.getAppointmentPurpose ( )
inline

◆ getDate()

LocalDate com.hospital.portal.model.Appointment.getDate ( )
inline

◆ getDoctor()

Doctor com.hospital.portal.model.Appointment.getDoctor ( )
inline

◆ getEndTime()

LocalTime com.hospital.portal.model.Appointment.getEndTime ( )
inline

◆ getObservations()

String com.hospital.portal.model.Appointment.getObservations ( )
inline

◆ getPatient()

Patient com.hospital.portal.model.Appointment.getPatient ( )
inline

◆ getStartTime()

LocalTime com.hospital.portal.model.Appointment.getStartTime ( )
inline

◆ setAppointmentId()

void com.hospital.portal.model.Appointment.setAppointmentId ( String  appointmentId)
inline

◆ setAppointmentPurpose()

void com.hospital.portal.model.Appointment.setAppointmentPurpose ( String  appointmentPurpose)
inline

◆ setDate()

void com.hospital.portal.model.Appointment.setDate ( LocalDate  date)
inline

◆ setDoctor()

void com.hospital.portal.model.Appointment.setDoctor ( Doctor  doctor)
inline

◆ setEndTime()

void com.hospital.portal.model.Appointment.setEndTime ( LocalTime  endTime)
inline

◆ setObservations()

void com.hospital.portal.model.Appointment.setObservations ( String  observations)
inline

◆ setPatient()

void com.hospital.portal.model.Appointment.setPatient ( Patient  patient)
inline

◆ setStartTime()

void com.hospital.portal.model.Appointment.setStartTime ( LocalTime  startTime)
inline

◆ toString()

String com.hospital.portal.model.Appointment.toString ( )
inline

Returns a string representation of the Appointment

Returns
a string representation of the Appointment

Member Data Documentation

◆ appointmentId

String com.hospital.portal.model.Appointment.appointmentId

Unique identifier for the appointment.


The documentation for this class was generated from the following file: