Class Doctor

java.lang.Object
cz.cuni.kubinja.hospitalsystem.personnel.Person
cz.cuni.kubinja.hospitalsystem.personnel.Doctor
All Implemented Interfaces:
Exportable

public class Doctor extends Person
Represents a doctor in the hospital system.
  • 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 number
      firstName - first name of doctor
      lastName - last name of doctor
      dateOfBirth - date of birth of doctor
      specialization - specialization of doctor
      department - 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 number
      firstName - first name of doctor
      lastName - last name of doctor
      day - day of birth
      month - month of birth
      year - year of birth
      specialization - specialization of doctor
      department - department in which the doctor works
    • Doctor

      public Doctor(Person person, DoctorDetails details)
      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

      public String getSpecialization()
      Returns specialization of the doctor.
      Returns:
      specialization of the doctor.
    • getDepartment

      public String getDepartment()
      Returns department where the doctor works.
      Returns:
      department where the doctor works.
    • getClassIdentifier

      public static String getClassIdentifier()
      Returns custom doctor class identifier.
      Returns:
      custom doctor class identifier.
    • toString

      public String toString()
      Overrides:
      toString in class Person
    • export

      public String export()
      Description copied from interface: Exportable
      Text format that will be used for exporting object.
      Specified by:
      export in interface Exportable
      Overrides:
      export in class Person
      Returns:
      text that will be used for exporting object.