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 TypeMethodDescriptionvoidaddAddress(Address address) Fügt eine Adresse hinzu.voidaddId(Identificator identificator) Fügt einen Identifikator hinzu.voidAdds 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 subjectvoidSets the gender.voidsetBirthday(ZonedDateTime birthDay) Sets the birthday.voidsetBirthday(Calendar birthDay) Sets the birthday.voidsetDeceasedInd(Boolean deceasedInd) Sets the deceased IndicatorvoidsetDeceasedTime(Date deceasedTime) Sets the deceased time.voidsetEmployeeOccupation(String employeeOccupation) Sets the employee occupation.voidsetIds(List<Identificator> identificators) Adds a list of identificatorvoidConfigures the eHC Patient objects purpose: It is a human patient (default setting)voidConfigures the eHC Patient objects purpose: It is a non human subjectvoidsetMothersMaidenName(String mothersMaidenName) Sets the mothers maiden name.voidsetMultipleBirthInd(Boolean multipleBirthInd) Sets the multiple birth IndicatorvoidsetMultipleBirthOrderNumber(Integer multipleBirthOrderNumber) Sets the multiple birth order number.voidSets the nation.voidsetProviderOrganization(Organization organization) Sets the provider organization.voidsetReligiousAffiliation(String religiousAffiliation) Sets the religious affiliation.voidsetTelecoms(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:
getCompleteNamein 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:PersonGets the (first) name. -
getNames
Description copied from class:PersonGets 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
-