public class PersonListItem extends Object
Person
,
DWRPersonService
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
PersonListItem()
Default empty constructor
|
PersonListItem(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,
String searchName)
Convenience constructor that creates a PersonListItem from the given Person.
|
public PersonListItem()
public PersonListItem(Integer personId)
personId
- the person id to assignpublic PersonListItem(Person person)
person
- the Person to turn into a PersonListItempublic PersonListItem(Person person, 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(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public Date getBirthdate()
public void setBirthdate(Date birthdate)
public String getBirthdateString()
public void setBirthdateString(String birthdateString)
public Boolean getBirthdateEstimated()
public void setBirthdateEstimated(Boolean birthdateEstimated)
public String getDeathDateString()
public void setDeathDateString(String deathDateString)
public Boolean getDeathdateEstimated()
public void setDeathdateEstimated(Boolean deathdateEstimated)
public String getFamilyName()
public void setFamilyName(String familyName)
public String getMiddleName()
public void setMiddleName(String middleName)
public String getGender()
public void setGender(String gender)
public String getGivenName()
public void setGivenName(String givenName)
public String getPersonName()
public String getAddress1()
public void setAddress1(String address1)
public String getAddress2()
public void setAddress2(String address2)
public Boolean getVoided()
public void setVoided(Boolean voided)
public String getOtherNames()
public void setOtherNames(String otherNames)
public Integer getAge()
public Integer getPersonId()
public void setPersonId(Integer personId)
personId
- the personId to setpublic String getUuid()
Copyright © 2015 OpenMRS Inc.. All rights reserved.