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.
|
public PersonListItem()
public PersonListItem(Integer personId)
personId
- the person id to assignpublic PersonListItem(Person person)
person
- the Person to turn into a PersonListItempublic 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 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 © 2018 OpenMRS LLC.. All Rights Reserved.