public class PersonListItem
extends java.lang.Object
Person
,
DWRPersonService
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
PersonListItem()
Default empty constructor
|
PersonListItem(java.lang.Integer personId)
Convenience constructor to create a PersonListItem that has only this personId
|
PersonListItem(Person person)
Convenience constructor that creates a PersonListItem from the given Person.
|
PersonListItem(Person person,
java.lang.String searchName)
Convenience constructor that creates a PersonListItem from the given Person.
|
Modifier and Type | Method and Description |
---|---|
static PersonListItem |
createBestMatch(Person person)
Creates an instance of a subclass of PersonListItem which is best suited for the parameter.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAddress1() |
java.lang.String |
getAddress2() |
java.lang.Integer |
getAge() |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes() |
java.util.Date |
getBirthdate() |
java.lang.Boolean |
getBirthdateEstimated() |
java.lang.String |
getBirthdateString()
Returns a formatted birthdate value
|
java.lang.String |
getFamilyName() |
java.lang.String |
getGender() |
java.lang.String |
getGivenName() |
java.lang.String |
getMiddleName() |
java.lang.String |
getOtherNames() |
java.lang.Integer |
getPersonId() |
java.lang.String |
getPersonName()
Convenience method to retrieve the givenName middleName familyName
|
java.lang.String |
getUuid() |
java.lang.Boolean |
getVoided() |
int |
hashCode() |
void |
setAddress1(java.lang.String address1) |
void |
setAddress2(java.lang.String address2) |
void |
setBirthdate(java.util.Date birthdate) |
void |
setBirthdateEstimated(java.lang.Boolean birthdateEstimated) |
void |
setBirthdateString(java.lang.String birthdateString) |
void |
setFamilyName(java.lang.String familyName) |
void |
setGender(java.lang.String gender) |
void |
setGivenName(java.lang.String givenName) |
void |
setMiddleName(java.lang.String middleName) |
void |
setOtherNames(java.lang.String otherNames) |
void |
setPersonId(java.lang.Integer personId) |
void |
setVoided(java.lang.Boolean voided) |
public PersonListItem()
public PersonListItem(java.lang.Integer personId)
personId
- the person id to assignpublic PersonListItem(Person person)
person
- the Person to turn into a PersonListItempublic PersonListItem(Person person, java.lang.String searchName)
person
- the Person to turn into a PersonListItemsearchName
- Search query string of the namepublic static PersonListItem createBestMatch(Person person)
Patient
is passed in, a PatientListItem
is returned, otherwise a
PersonListItem
is returned.person
- the Person
object to covert to a PersonListItem
PersonListItem
or subclass thereofpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public java.util.Date getBirthdate()
public void setBirthdate(java.util.Date birthdate)
public java.lang.String getBirthdateString()
public void setBirthdateString(java.lang.String birthdateString)
public java.lang.Boolean getBirthdateEstimated()
public void setBirthdateEstimated(java.lang.Boolean birthdateEstimated)
public java.lang.String getFamilyName()
public void setFamilyName(java.lang.String familyName)
public java.lang.String getMiddleName()
public void setMiddleName(java.lang.String middleName)
public java.lang.String getGender()
public void setGender(java.lang.String gender)
public java.lang.String getGivenName()
public void setGivenName(java.lang.String givenName)
public java.lang.String getPersonName()
public java.lang.String getAddress1()
public void setAddress1(java.lang.String address1)
public java.lang.String getAddress2()
public void setAddress2(java.lang.String address2)
public java.lang.Boolean getVoided()
public void setVoided(java.lang.Boolean voided)
public java.lang.String getOtherNames()
public void setOtherNames(java.lang.String otherNames)
public java.lang.Integer getAge()
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
public java.lang.Integer getPersonId()
public void setPersonId(java.lang.Integer personId)
personId
- the personId to setpublic java.lang.String getUuid()
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.