Package org.projecthusky.common.model
Class Patient
java.lang.Object
org.projecthusky.common.model.Person
org.projecthusky.common.model.Patient
- Direct Known Subclasses:
PatientAt
Class Patient
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPatient()
Erstellt einen neuen Patienten.Patient
(POCDMT000040RecordTarget recordTarget) Constructor (used when deserializing CDA document).Patient
(Name name, AdministrativeGender sex, Calendar birthDay) Erstellt einen neuen Patienten.Patient
(Name name, AdministrativeGender sex, Calendar birthDay, Identificator id) Erstellt einen neuen Patienten inkl. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAddress
(Address address) Fügt eine Adresse hinzu.void
addId
(Identificator identificator) Fügt einen Identifikator hinzu.void
Adds the name.Gets the address.Gets the adresses.Gets the gender code.Gets the birthday.Gets the complete name.Gets the deceased IndicatorGets the deceased time.Gets the employee occupation.getIds()
Gets the ids.Gets the CDA R2 patient.Gets the CDA R2 patient role.Gets the CDA R2 record target.Gets the mothers maiden name.Gets the multiple birth IndictatorGets the multiple birth order number.getName()
Gets the (first) name.getNames()
Gets the names.Gets the nation.Gets the provider organization.Gets the religious affiliation.Gets the telecoms.Indicates whether this Patient is not a human patient but a non human subjectvoid
Sets the gender.void
setBirthday
(ZonedDateTime birthDay) Sets the birthday.void
setBirthday
(Calendar birthDay) Sets the birthday.void
setDeceasedInd
(Boolean deceasedInd) Sets the deceased Indicatorvoid
setDeceasedTime
(Date deceasedTime) Sets the deceased time.void
setEmployeeOccupation
(String employeeOccupation) Sets the employee occupation.void
setIds
(List<Identificator> identificators) Adds a list of identificatorvoid
Configures the eHC Patient objects purpose: It is a human patient (default setting)void
Configures the eHC Patient objects purpose: It is a non human subjectvoid
setMothersMaidenName
(String mothersMaidenName) Sets the mothers maiden name.void
setMultipleBirthInd
(Boolean multipleBirthInd) Sets the multiple birth Indicatorvoid
setMultipleBirthOrderNumber
(Integer multipleBirthOrderNumber) Sets the multiple birth order number.void
Sets the nation.void
setProviderOrganization
(Organization organization) Sets the provider organization.void
setReligiousAffiliation
(String religiousAffiliation) Sets the religious affiliation.void
setTelecoms
(List<Telecom> telecoms) Sets the telecoms.Methods inherited from class org.projecthusky.common.model.Person
getHl7CdaPerson, getIpfPerson, setIpfPerson
-
Field Details
-
mPatientRole
-
mPatient
-
-
Constructor Details
-
Patient
public Patient()Erstellt einen neuen Patienten. -
Patient
Erstellt einen neuen Patienten.- Parameters:
name
- Namesex
- GeschlechtbirthDay
- Geburtsdatum
-
Patient
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
- Namesex
- GeschlechtbirthDay
- Geburtsdatumid
- ID
-
Patient
Constructor (used when deserializing CDA document).- Parameters:
recordTarget
- record target
-
-
Method Details
-
addAddress
Fügt eine Adresse hinzu.- Parameters:
address
- Adresse
-
addId
Fügt einen Identifikator hinzu.- Parameters:
identificator
- Identificator
-
setIds
Adds a list of identificator- Parameters:
identificators
- list of identificator
-
addName
Adds the name. -
getAddress
Gets the address.- Returns:
- the address
-
getAddresses
Gets the adresses.- Returns:
- the adresses
-
getAdministrativeGenderCode
Gets the gender code.- Returns:
- the gender code
-
getBirthday
Gets the birthday.- Returns:
- Date the birthday
-
getBirthdayAsLocalDate
-
setBirthday
Sets the birthday.- Parameters:
birthDay
- the new birthday
-
setBirthday
Sets the birthday.- Parameters:
birthDay
- the new birthday
-
getCompleteName
Gets the complete name.- Overrides:
getCompleteName
in classPerson
- Returns:
- the complete name
-
getDeceasedInd
Gets the deceased Indicator- Returns:
- the deceased ind
-
setDeceasedInd
Sets the deceased Indicator- Parameters:
deceasedInd
- the new deceased ind
-
getDeceasedTime
Gets the deceased time.- Returns:
- the deceased time
-
setDeceasedTime
Sets the deceased time.- Parameters:
deceasedTime
- the new deceased time
-
getEmployeeOccupation
Gets the employee occupation.- Returns:
- the employee occupation
-
setEmployeeOccupation
Sets the employee occupation.- Parameters:
employeeOccupation
- the new employee occupation
-
getIds
Gets the ids.- Returns:
- the ids
-
getMdhtPatient
Gets the CDA R2 patient.- Returns:
- the CDA R2 patient
-
getMdhtPatientRole
Gets the CDA R2 patient role.- Returns:
- PatientRole the CDA R2 patient role
-
getMdhtRecordTarget
Gets the CDA R2 record target.- Returns:
- RecordTarget the CDA R2 record target
-
getMothersMaidenName
Gets the mothers maiden name.- Returns:
- the mothers maiden name
-
setMothersMaidenName
Sets the mothers maiden name.- Parameters:
mothersMaidenName
- the new mothers maiden name
-
getMultipleBirthInd
Gets the multiple birth Indictator- Returns:
- the multiple birth ind
-
setMultipleBirthInd
Sets the multiple birth Indicator- Parameters:
multipleBirthInd
- the new multiple birth ind
-
getMultipleBirthOrderNumber
Gets the multiple birth order number.- Returns:
- the multiple birth order number
-
setMultipleBirthOrderNumber
Sets the multiple birth order number.- Parameters:
multipleBirthOrderNumber
- the new multiple birth order number
-
getName
Description copied from class:Person
Gets the (first) name. -
getNames
Description copied from class:Person
Gets the names. -
getNation
Gets the nation.- Returns:
- the nation
-
setNation
Sets the nation.- Parameters:
nation
- the new nation
-
getProviderOrganization
Gets the provider organization.- Returns:
- the provider organization
-
setProviderOrganization
Sets the provider organization.- Parameters:
organization
- the new provider organization
-
getReligiousAffiliation
Gets the religious affiliation.- Returns:
- the religious affiliation
-
setReligiousAffiliation
Sets the religious affiliation.- Parameters:
religiousAffiliation
- the new religious affiliation
-
getTelecoms
Gets the telecoms.- Returns:
- Telecoms the telecoms
-
setTelecoms
Sets the telecoms.- Parameters:
telecoms
- the new telecoms
-
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
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
-