Package | Description |
---|---|
org.openmrs |
These classes represent the core domain objects for the OpenMRS project.
|
org.openmrs.api |
The primary OpenMRS API interfaces.
|
org.openmrs.api.db |
OpenMRS database layer interfaces.
|
org.openmrs.api.db.hibernate |
Resources for Hibernate ORM.
|
org.openmrs.api.impl | |
org.openmrs.web.controller.patient |
Modifier and Type | Method and Description |
---|---|
PersonAttribute |
PersonAttribute.copy()
Shallow copy of this PersonAttribute.
|
protected PersonAttribute |
PersonAttribute.copyHelper(PersonAttribute target)
The purpose of this method is to allow subclasses of PersonAttribute to delegate a portion of
their copy() method back to the superclass, in case the base class implementation changes.
|
PersonAttribute |
Person.getAttribute(java.lang.Integer attributeTypeId)
Convenience method to get this person's first attribute that has a PersonAttributeTypeId
equal to
attributeTypeId .Returns null if this person has no non-voided PersonAttribute with the given type id
or this person has no attributes.The given id cannot be null. |
PersonAttribute |
Person.getAttribute(PersonAttributeType pat)
Convenience Method to return the first non-voided person attribute matching a person
attribute type.
|
PersonAttribute |
Person.getAttribute(java.lang.String attributeName)
Convenience method to get this person's first attribute that has a PersonAttributeType.name
equal to
attributeName .Returns null if this person has no non-voided PersonAttribute with the given type
name, the given name is null, or this person has no attributes. |
Modifier and Type | Method and Description |
---|---|
java.util.List<PersonAttribute> |
Person.getActiveAttributes()
Returns only the non-voided attributes for this person
|
java.util.Map<java.lang.String,PersonAttribute> |
Person.getAttributeMap()
Convenience method to get all of this person's attributes in map form:
|
java.util.Set<PersonAttribute> |
Person.getAttributes() |
java.util.List<PersonAttribute> |
Person.getAttributes(java.lang.Integer attributeTypeId)
Convenience method to get all of this person's attributes that have a PersonAttributeType.id
equal to
attributeTypeId . |
java.util.List<PersonAttribute> |
Person.getAttributes(PersonAttributeType personAttributeType)
Convenience method to get all of this person's attributes that have a PersonAttributeType
equal to
personAttributeType . |
java.util.List<PersonAttribute> |
Person.getAttributes(java.lang.String attributeName)
Convenience method< to get all of this person's attributes that have a
PersonAttributeType.name equal to
attributeName . |
Modifier and Type | Method and Description |
---|---|
void |
Person.addAttribute(PersonAttribute newAttribute)
Convenience method to add the
attribute to this person's attribute list if the
attribute doesn't exist already.Voids any current attribute with type = newAttribute.getAttributeType() NOTE: This effectively limits persons to only one attribute of any given type ** |
int |
PersonAttribute.compareTo(PersonAttribute other) |
protected PersonAttribute |
PersonAttribute.copyHelper(PersonAttribute target)
The purpose of this method is to allow subclasses of PersonAttribute to delegate a portion of
their copy() method back to the superclass, in case the base class implementation changes.
|
boolean |
PersonAttribute.equalsContent(PersonAttribute otherAttribute)
Compares this PersonAttribute object to the given otherAttribute.
|
void |
Person.removeAttribute(PersonAttribute attribute)
Convenience method to get the
attribute from this person's attribute list if the
attribute exists already. |
Modifier and Type | Method and Description |
---|---|
void |
Person.setAttributes(java.util.Set<PersonAttribute> attributes) |
Modifier and Type | Method and Description |
---|---|
PersonAttribute |
PersonService.getPersonAttribute(java.lang.Integer id)
Get a PersonAttribute from the database with the given PersonAttributeid
|
PersonAttribute |
PersonService.getPersonAttributeByUuid(java.lang.String uuid)
Get PersonAttribute by its UUID
|
Modifier and Type | Method and Description |
---|---|
PersonAttribute |
PersonDAO.getPersonAttribute(java.lang.Integer id) |
PersonAttribute |
PersonDAO.getPersonAttributeByUuid(java.lang.String uuid) |
Modifier and Type | Method and Description |
---|---|
PersonAttribute |
HibernatePersonDAO.getPersonAttribute(java.lang.Integer id) |
PersonAttribute |
HibernatePersonDAO.getPersonAttributeByUuid(java.lang.String uuid) |
Modifier and Type | Method and Description |
---|---|
PersonAttribute |
PersonServiceImpl.getPersonAttribute(java.lang.Integer id) |
PersonAttribute |
PersonServiceImpl.getPersonAttributeByUuid(java.lang.String uuid) |
Modifier and Type | Method and Description |
---|---|
java.util.List<PersonAttribute> |
ShortPatientModel.getPersonAttributes() |
Modifier and Type | Method and Description |
---|---|
void |
ShortPatientModel.setPersonAttributes(java.util.List<PersonAttribute> personAttributes) |
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.