Class Patient

java.lang.Object
org.projecthusky.common.model.Person
org.projecthusky.common.model.Patient
Direct Known Subclasses:
PatientAt

public class Patient extends Person
Class Patient
  • Field Details

  • Constructor Details

    • Patient

      public Patient()
      Erstellt einen neuen Patienten.
    • Patient

      public Patient(Name name, AdministrativeGender sex, Calendar birthDay)
      Erstellt einen neuen Patienten.
      Parameters:
      name - Name
      sex - Geschlecht
      birthDay - Geburtsdatum
    • Patient

      public Patient(Name name, AdministrativeGender sex, Calendar birthDay, Identificator id)
      Erstellt einen neuen Patienten inkl. einer Patienten Id. Wenn es sich bei dem Dokument um einen Impfausweis handelt dann MUSS dieser Konstruktor verwendet werden.
      Parameters:
      name - Name
      sex - Geschlecht
      birthDay - Geburtsdatum
      id - ID
    • Patient

      public Patient(POCDMT000040RecordTarget recordTarget)
      Constructor (used when deserializing CDA document).
      Parameters:
      recordTarget - record target
  • Method Details

    • addAddress

      public void addAddress(Address address)
      Fügt eine Adresse hinzu.
      Parameters:
      address - Adresse
    • addId

      public void addId(Identificator identificator)
      Fügt einen Identifikator hinzu.
      Parameters:
      identificator - Identificator
    • setIds

      public void setIds(List<Identificator> identificators)
      Adds a list of identificator
      Parameters:
      identificators - list of identificator
    • addName

      public void addName(Name name)
      Adds the name.
      Overrides:
      addName in class Person
      Parameters:
      name - name
    • getAddress

      public Address getAddress()
      Gets the address.
      Returns:
      the address
    • getAddresses

      public List<Address> getAddresses()
      Gets the adresses.
      Returns:
      the adresses
    • getAdministrativeGenderCode

      public AdministrativeGender getAdministrativeGenderCode()
      Gets the gender code.
      Returns:
      the gender code
    • getBirthday

      public Date getBirthday()
      Gets the birthday.
      Returns:
      Date the birthday
    • getBirthdayAsLocalDate

      public LocalDate getBirthdayAsLocalDate()
    • setBirthday

      public void setBirthday(Calendar birthDay)
      Sets the birthday.
      Parameters:
      birthDay - the new birthday
    • setBirthday

      public void setBirthday(ZonedDateTime birthDay)
      Sets the birthday.
      Parameters:
      birthDay - the new birthday
    • getCompleteName

      public String getCompleteName()
      Gets the complete name.
      Overrides:
      getCompleteName in class Person
      Returns:
      the complete name
    • getDeceasedInd

      public Boolean getDeceasedInd()
      Gets the deceased Indicator
      Returns:
      the deceased ind
    • setDeceasedInd

      public void setDeceasedInd(Boolean deceasedInd)
      Sets the deceased Indicator
      Parameters:
      deceasedInd - the new deceased ind
    • getDeceasedTime

      public Date getDeceasedTime()
      Gets the deceased time.
      Returns:
      the deceased time
    • setDeceasedTime

      public void setDeceasedTime(Date deceasedTime)
      Sets the deceased time.
      Parameters:
      deceasedTime - the new deceased time
    • getEmployeeOccupation

      public String getEmployeeOccupation()
      Gets the employee occupation.
      Returns:
      the employee occupation
    • setEmployeeOccupation

      public void setEmployeeOccupation(String employeeOccupation)
      Sets the employee occupation.
      Parameters:
      employeeOccupation - the new employee occupation
    • getIds

      public List<Identificator> getIds()
      Gets the ids.
      Returns:
      the ids
    • getMdhtPatient

      public POCDMT000040Patient getMdhtPatient()
      Gets the CDA R2 patient.
      Returns:
      the CDA R2 patient
    • getMdhtPatientRole

      public POCDMT000040PatientRole getMdhtPatientRole()
      Gets the CDA R2 patient role.
      Returns:
      PatientRole the CDA R2 patient role
    • getMdhtRecordTarget

      public POCDMT000040RecordTarget getMdhtRecordTarget()
      Gets the CDA R2 record target.
      Returns:
      RecordTarget the CDA R2 record target
    • getMothersMaidenName

      public String getMothersMaidenName()
      Gets the mothers maiden name.
      Returns:
      the mothers maiden name
    • setMothersMaidenName

      public void setMothersMaidenName(String mothersMaidenName)
      Sets the mothers maiden name.
      Parameters:
      mothersMaidenName - the new mothers maiden name
    • getMultipleBirthInd

      public Boolean getMultipleBirthInd()
      Gets the multiple birth Indictator
      Returns:
      the multiple birth ind
    • setMultipleBirthInd

      public void setMultipleBirthInd(Boolean multipleBirthInd)
      Sets the multiple birth Indicator
      Parameters:
      multipleBirthInd - the new multiple birth ind
    • getMultipleBirthOrderNumber

      public Integer getMultipleBirthOrderNumber()
      Gets the multiple birth order number.
      Returns:
      the multiple birth order number
    • setMultipleBirthOrderNumber

      public void setMultipleBirthOrderNumber(Integer multipleBirthOrderNumber)
      Sets the multiple birth order number.
      Parameters:
      multipleBirthOrderNumber - the new multiple birth order number
    • getName

      public Name getName()
      Description copied from class: Person
      Gets the (first) name.
      Overrides:
      getName in class Person
      Returns:
      the name
    • getNames

      public List<Name> getNames()
      Description copied from class: Person
      Gets the names.
      Overrides:
      getNames in class Person
      Returns:
      the names
    • getNation

      public String getNation()
      Gets the nation.
      Returns:
      the nation
    • setNation

      public void setNation(String nation)
      Sets the nation.
      Parameters:
      nation - the new nation
    • getProviderOrganization

      public Organization getProviderOrganization()
      Gets the provider organization.
      Returns:
      the provider organization
    • setProviderOrganization

      public void setProviderOrganization(Organization organization)
      Sets the provider organization.
      Parameters:
      organization - the new provider organization
    • getReligiousAffiliation

      public String getReligiousAffiliation()
      Gets the religious affiliation.
      Returns:
      the religious affiliation
    • setReligiousAffiliation

      public void setReligiousAffiliation(String religiousAffiliation)
      Sets the religious affiliation.
      Parameters:
      religiousAffiliation - the new religious affiliation
    • getTelecoms

      public List<Telecom> getTelecoms()
      Gets the telecoms.
      Returns:
      Telecoms the telecoms
    • setTelecoms

      public void setTelecoms(List<Telecom> telecoms)
      Sets the telecoms.
      Parameters:
      telecoms - the new telecoms
    • isNonHumenSubject

      public Boolean isNonHumenSubject()
      Indicates whether this Patient is not a human patient but a non human subject
      Returns:
      true for non human subjects, false for human patients
    • setAdministrativeGender

      public void setAdministrativeGender(AdministrativeGender sex)
      Sets the gender.
      Parameters:
      sex - the new (administrative) gender
    • setIsHumanPatient

      public void setIsHumanPatient()
      Configures the eHC Patient objects purpose: It is a human patient (default setting)
    • setIsNonHumenSubject

      public void setIsNonHumenSubject()
      Configures the eHC Patient objects purpose: It is a non human subject