Class Doctor
java.lang.Object
cz.cuni.kubinja.hospitalsystem.personnel.Person
cz.cuni.kubinja.hospitalsystem.personnel.Doctor
- All Implemented Interfaces:
Exportable
Represents a doctor in the hospital system.
-
Constructor Summary
ConstructorsConstructorDescriptionDoctor(int id, String firstName, String lastName, int day, int month, int year, String specialization, String department) Creates doctor based on provided parameters.Doctor(int id, String firstName, String lastName, LocalDate dateOfBirth, String specialization, String department) Creates doctor based on provided parameters.Doctor(Person person, DoctorDetails details) Creates doctor based on provided parameters. -
Method Summary
Methods inherited from class Person
getAge, getDateOfBirth, getFirstName, getId, getLastName
-
Constructor Details
-
Doctor
public Doctor(int id, String firstName, String lastName, LocalDate dateOfBirth, String specialization, String department) Creates doctor based on provided parameters.- Parameters:
id- unique identification numberfirstName- first name of doctorlastName- last name of doctordateOfBirth- date of birth of doctorspecialization- specialization of doctordepartment- department in which the doctor works
-
Doctor
public Doctor(int id, String firstName, String lastName, int day, int month, int year, String specialization, String department) Creates doctor based on provided parameters.- Parameters:
id- unique identification numberfirstName- first name of doctorlastName- last name of doctorday- day of birthmonth- month of birthyear- year of birthspecialization- specialization of doctordepartment- department in which the doctor works
-
Doctor
Creates doctor based on provided parameters.- Parameters:
person- Person for who we want to create patient object.details- Details that extends person.
-
-
Method Details
-
getSpecialization
Returns specialization of the doctor.- Returns:
- specialization of the doctor.
-
getDepartment
Returns department where the doctor works.- Returns:
- department where the doctor works.
-
getClassIdentifier
Returns custom doctor class identifier.- Returns:
- custom doctor 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.
-