Class Patient
java.lang.Object
cz.cuni.kubinja.hospitalsystem.personnel.Person
cz.cuni.kubinja.hospitalsystem.personnel.Patient
- All Implemented Interfaces:
Exportable
Represents a patient in the hospital system.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates patient based on provided parameters.Creates patient based on provided parameters.Patient(Person person, PatientsDetails details) Creates patient based on provided Person and details needed for the patient. -
Method Summary
Methods inherited from class Person
getAge, getDateOfBirth, getFirstName, getId, getLastName
-
Constructor Details
-
Patient
Creates patient based on provided parameters.- Parameters:
id- unique identification numberfirstName- first name of patientlastName- last name of patientdateOfBirth- date of birth of patientanamnesis- anamnesis of patient
-
Patient
public Patient(int id, String firstName, String lastName, int day, int month, int year, String anamnesis) Creates patient based on provided parameters.- Parameters:
id- unique identification numberfirstName- first name of personlastName- last name of personday- day of birthmonth- month of birthyear- year of birthanamnesis- anamnesis of patient
-
Patient
Creates patient based on provided Person and details needed for the patient.- Parameters:
person- Person for who we want to create patient object.details- Details that extends person.
-
-
Method Details
-
getAnamnesis
-
getClassIdentifier
Returns custom patient class identifier.- Returns:
- custom patient class identifier.
-
toString
-
export
Description copied from interface:ExportableText format that will be used for exporting object.- Specified by:
exportin interfaceExportable- Overrides:
exportin classPerson- Returns:
- text that will be used for exporting object.
-