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.handler | |
org.openmrs.api.impl | |
org.openmrs.layout.web.name | |
org.openmrs.validator | |
org.openmrs.web | |
org.openmrs.web.controller.patient |
Modifier and Type | Method and Description |
---|---|
PersonName |
User.getPersonName() |
PersonName |
Person.getPersonName()
Convenience method to get the
PersonName object that is marked as "preferred". |
static PersonName |
PersonName.newInstance(PersonName pn)
bitwise copy of the personName object.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<PersonName> |
User.getNames() |
java.util.Set<PersonName> |
Person.getNames() |
Modifier and Type | Method and Description |
---|---|
void |
User.addName(PersonName name) |
void |
Person.addName(PersonName name)
Convenience method to add the
name to this person's name list if the name
doesn't exist already. |
int |
PersonName.compareTo(PersonName other)
TODO: the behavior of this method needs to be controlled by some sort of global property
because an implementation can define how they want their names to look (which fields to
show/hide)
|
boolean |
PersonName.equalsContent(PersonName otherName)
Compares this PersonName object to the given otherName.
|
static PersonName |
PersonName.newInstance(PersonName pn)
bitwise copy of the personName object.
|
void |
Person.removeName(PersonName name)
Convenience method remove the
name from this person's name list if the name
exists already. |
Modifier and Type | Method and Description |
---|---|
void |
Person.setNames(java.util.Set<PersonName> names) |
Modifier and Type | Method and Description |
---|---|
PersonName |
PersonService.getPersonName(java.lang.Integer personNameId)
Get PersonName by its personNameId
|
PersonName |
PersonService.getPersonNameByUuid(java.lang.String uuid)
Get PersonName by its UUID
|
PersonName |
PersonService.parsePersonName(java.lang.String name)
Parses a name into a PersonName (separate Given, Middle, and Family names)
|
PersonName |
PersonService.savePersonName(PersonName personName)
Inserts or updates the given personName object in the database
|
PersonName |
PersonService.splitPersonName(java.lang.String name)
Deprecated.
replaced by parsePersonName(String)
|
PersonName |
PersonService.unvoidPersonName(PersonName personName)
Unvoid PersonName in the database, effectively marking this as a valid personName again
|
PersonName |
PersonService.voidPersonName(PersonName personName,
java.lang.String voidReason)
Voids the given PersonName, effectively deleting the name, from the end-user's point of view.
|
Modifier and Type | Method and Description |
---|---|
PersonName |
PersonService.savePersonName(PersonName personName)
Inserts or updates the given personName object in the database
|
PersonName |
PersonService.unvoidPersonName(PersonName personName)
Unvoid PersonName in the database, effectively marking this as a valid personName again
|
PersonName |
PersonService.voidPersonName(PersonName personName,
java.lang.String voidReason)
Voids the given PersonName, effectively deleting the name, from the end-user's point of view.
|
Modifier and Type | Method and Description |
---|---|
PersonName |
PersonDAO.getPersonName(java.lang.Integer personNameId) |
PersonName |
PersonDAO.getPersonNameByUuid(java.lang.String uuid) |
PersonName |
PersonDAO.savePersonName(PersonName personName) |
Modifier and Type | Method and Description |
---|---|
PersonName |
PersonDAO.savePersonName(PersonName personName) |
Modifier and Type | Method and Description |
---|---|
PersonName |
HibernatePersonDAO.getPersonName(java.lang.Integer personNameId) |
PersonName |
HibernatePersonDAO.getPersonNameByUuid(java.lang.String uuid) |
PersonName |
HibernatePersonDAO.savePersonName(PersonName personName) |
Modifier and Type | Method and Description |
---|---|
PersonName |
HibernatePersonDAO.savePersonName(PersonName personName) |
Modifier and Type | Method and Description |
---|---|
void |
PersonNameSaveHandler.handle(PersonName personName,
User creator,
java.util.Date dateCreated,
java.lang.String other) |
Modifier and Type | Method and Description |
---|---|
PersonName |
PersonServiceImpl.getPersonName(java.lang.Integer personNameId) |
PersonName |
PersonServiceImpl.getPersonNameByUuid(java.lang.String uuid) |
PersonName |
PersonServiceImpl.parsePersonName(java.lang.String name) |
PersonName |
PersonServiceImpl.savePersonName(PersonName personName) |
PersonName |
PersonServiceImpl.splitPersonName(java.lang.String name)
Deprecated.
see #parsePersonName(String)
|
PersonName |
PersonServiceImpl.unvoidPersonName(PersonName personName) |
PersonName |
PersonServiceImpl.voidPersonName(PersonName personName,
java.lang.String voidReason) |
Modifier and Type | Method and Description |
---|---|
PersonName |
PersonServiceImpl.savePersonName(PersonName personName) |
PersonName |
PersonServiceImpl.unvoidPersonName(PersonName personName) |
PersonName |
PersonServiceImpl.voidPersonName(PersonName personName,
java.lang.String voidReason) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
NameTemplate.format(PersonName personName) |
Modifier and Type | Method and Description |
---|---|
void |
PersonNameValidator.validatePersonName(PersonName personName,
org.springframework.validation.Errors errors,
boolean arrayInd,
boolean testInd)
Checks that the given
PersonName is valid |
Modifier and Type | Method and Description |
---|---|
PersonName |
OptionsForm.getPersonName() |
Modifier and Type | Method and Description |
---|---|
void |
OptionsForm.setPersonName(PersonName personName) |
Modifier and Type | Method and Description |
---|---|
PersonName |
ShortPatientModel.getPersonName() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
ShortPatientFormController.getPersonNameString(PersonName name)
Convenience method that transforms a person name to a string while ignoring null and blank
values, the returned string only contains the givenName, middleName and familyName
|
java.lang.String |
ShortPatientFormController.saveShortPatient(org.springframework.web.context.request.WebRequest request,
PersonName personNameCache,
PersonAddress personAddressCache,
java.util.Map<java.lang.String,Relationship> relationshipsMap,
ShortPatientModel patientModel,
org.springframework.validation.BindingResult result)
Handles the form submission by validating the form fields and saving it to the DB
|
void |
ShortPatientModel.setPersonName(PersonName personName) |
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.