public class PatientInfo extends Object implements Serializable
getIds()
, getNames()
, and getAddresses()
will be not
propagated to their HL7 string counterparts, therefore ListIterator.set(Object)
shall be used to properly update the both representations. For example,
ListIterator<Name> iter = patientInfo.getNames(); Name name = iter.next(); name.setFamilyName("Krusenstern"); iter.set(name); // this statement is absolutely essential!
Modifier and Type | Class and Description |
---|---|
static class |
PatientInfo.Hl7FieldIdComparator |
Constructor and Description |
---|
PatientInfo() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
ListIterator<Address> |
getAddresses()
Returns a snapshot of the list of patient addresses.
|
Set<String> |
getAllFieldIds() |
Set<String> |
getCustomFieldIds() |
Timestamp |
getDateOfBirth() |
String |
getGender() |
ListIterator<String> |
getHl7FieldIterator(String fieldId) |
ListIterator<Identifiable> |
getIds()
Returns a snapshot of list of patient IDs.
|
ListIterator<Name> |
getNames()
Returns a snapshot of the list of patient names.
|
int |
hashCode() |
void |
setDateOfBirth(String date) |
void |
setDateOfBirth(Timestamp date) |
void |
setGender(String gender) |
String |
toString() |
public Set<String> getAllFieldIds()
public Set<String> getCustomFieldIds()
public ListIterator<String> getHl7FieldIterator(String fieldId)
fieldId
- HL7 field ID, e.g. "PID-3"public ListIterator<Identifiable> getIds()
public ListIterator<Name> getNames()
public Timestamp getDateOfBirth()
public void setDateOfBirth(Timestamp date)
date
- the date of birth of the patient (PID-7).public void setDateOfBirth(String date)
date
- the date of birth of the patient (PID-7).public String getGender()
public void setGender(String gender)
gender
- the gender of the patient (PID-8).public ListIterator<Address> getAddresses()
@Generated(value="lombok") public boolean equals(Object o)
@Generated(value="lombok") protected boolean canEqual(Object other)
@Generated(value="lombok") public int hashCode()
Copyright © 2018 Open eHealth Foundation. All rights reserved.