Healthcare Portal
 
Loading...
Searching...
No Matches
com.hospital.portal.model.Patient Class Reference
Inheritance diagram for com.hospital.portal.model.Patient:
com.hospital.portal.model.User

Public Member Functions

 Patient ()
 
 Patient (String dni, String name, String surname, LocalDate birthDate, String gender, String phone, String mail, String password, String patientId)
 
String getPatientId ()
 
void setPatientId (String patientId)
 
void setDni (String dni)
 
void setEmail (String email)
 
- Public Member Functions inherited from com.hospital.portal.model.User
 User ()
 
 User (String dni, String name, String surname, LocalDate birthDate, String gender, String phone, String mail, String password)
 
String getDni ()
 
String getName ()
 
void setName (String name)
 
String getSurname ()
 
void setSurname (String surname)
 
LocalDate getBirthDate ()
 
void setBirthDate (LocalDate birthDate)
 
String getGender ()
 
void setGender (String gender)
 
String getPhone ()
 
void setPhone (String phone)
 
String getEmail ()
 
String getPassword ()
 
void setPassword (String password)
 
String toString ()
 

Additional Inherited Members

- Public Attributes inherited from com.hospital.portal.model.User
String dni
 

Detailed Description

Represents a patient in the hospital portal system. Extends the User class and adds a unique patient ID.

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

Constructor & Destructor Documentation

◆ Patient() [1/2]

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

Default constructor for JPA.

◆ Patient() [2/2]

com.hospital.portal.model.Patient.Patient ( String  dni,
String  name,
String  surname,
LocalDate  birthDate,
String  gender,
String  phone,
String  mail,
String  password,
String  patientId 
)
inline

Constructs a Patient with the specified details.

Parameters
dnithe DNI of the patient
namethe name of the patient
surnamethe surname of the patient
birthDatethe birth date of the patient
genderthe gender of the patient
phonethe phone number of the patient
mailthe email address of the patient
passwordthe password of the patient
patientIdthe unique patient ID

Member Function Documentation

◆ getPatientId()

String com.hospital.portal.model.Patient.getPatientId ( )
inline

◆ setDni()

void com.hospital.portal.model.Patient.setDni ( String  dni)
inline

Reimplemented from com.hospital.portal.model.User.

◆ setEmail()

void com.hospital.portal.model.Patient.setEmail ( String  email)
inline

Reimplemented from com.hospital.portal.model.User.

◆ setPatientId()

void com.hospital.portal.model.Patient.setPatientId ( String  patientId)
inline

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