Person

public class Person

Represents a single person. This class stores personal information about the person. It’s used by the Patient.

Constructors

Person

public Person()

Default constructor.

Person

public Person(String uuid)

Creates a person with the given OpenMRS uuid.

Parameters:
  • uuid – the OpenMRS ID of the person

Methods

equals

public boolean equals(Object o)

getAddresses

public List<Address> getAddresses()

getAge

public Integer getAge()

getAttributes

public List<Attribute> getAttributes()

getAuditInfo

public AuditInfo getAuditInfo()

getBirthdate

public Date getBirthdate()

getBirthdateEstimated

public Boolean getBirthdateEstimated()

getCauseOfDeath

public Concept getCauseOfDeath()

getDead

public Boolean getDead()

getDeathDate

public Date getDeathDate()

getDisplay

public String getDisplay()

getGender

public String getGender()

getNames

public List<Name> getNames()

getPersonAttributes

public Map<String, String> getPersonAttributes()

getPreferredAddress

public Address getPreferredAddress()

getPreferredName

public Name getPreferredName()

getUuid

public String getUuid()

hashCode

public int hashCode()

setAddresses

public void setAddresses(List<Address> addresses)

setAge

public void setAge(Integer age)

setAttributes

public void setAttributes(List<Attribute> attributes)

setAuditInfo

public void setAuditInfo(AuditInfo auditInfo)

setBirthdate

public void setBirthdate(Date birthdate)

setBirthdateEstimated

public void setBirthdateEstimated(Boolean birthdateEstimated)

setCauseOfDeath

public void setCauseOfDeath(Concept causeOfDeath)

setDead

public void setDead(Boolean dead)

setDeathDate

public void setDeathDate(Date deathDate)

setDisplay

public void setDisplay(String display)

setGender

public void setGender(String gender)

setNames

public void setNames(List<Name> names)

setPreferredAddress

public void setPreferredAddress(Address preferredAddress)

setPreferredName

public void setPreferredName(Name preferredName)

setUuid

public void setUuid(String uuid)