Class Patient

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

public class Patient extends Person
Represents a patient in the hospital system.
  • Constructor Details

    • Patient

      public Patient(int id, String firstName, String lastName, LocalDate dateOfBirth, String anamnesis)
      Creates patient based on provided parameters.
      Parameters:
      id - unique identification number
      firstName - first name of patient
      lastName - last name of patient
      dateOfBirth - date of birth of patient
      anamnesis - 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 number
      firstName - first name of person
      lastName - last name of person
      day - day of birth
      month - month of birth
      year - year of birth
      anamnesis - anamnesis of patient
    • Patient

      public Patient(Person person, PatientsDetails details)
      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

      public String getAnamnesis()
      Returns anamnesis of the patient.
      Returns:
      anamnesis of the patient.
    • getClassIdentifier

      public static String getClassIdentifier()
      Returns custom patient class identifier.
      Returns:
      custom patient 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.