|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openmrs.api.impl.BaseOpenmrsService
org.openmrs.api.impl.PersonServiceImpl
public class PersonServiceImpl
Default implementation of the PersonService
Which implementation to use is determined by Spring. See the spring application context file in /metadata/api/spring/applicatContext-service.xml
PersonService,
Context| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.openmrs.api.PersonService |
|---|
PersonService.ATTR_VIEW_TYPE |
| Constructor Summary | |
|---|---|
PersonServiceImpl()
|
|
| Method Summary | |
|---|---|
Person |
createPerson(Person person)
Deprecated. use savePerson(Person) |
void |
createPersonAttributeType(PersonAttributeType type)
Deprecated. use savePersonAttributeType(PersonAttributeType) |
void |
createRelationship(Relationship relationship)
Deprecated. use saveRelationship(Relationship) |
void |
createRelationshipType(RelationshipType relationshipType)
Deprecated. use saveRelationshipType(RelationshipType) |
void |
deletePerson(Person person)
Deprecated. use purgePerson(Person) |
void |
deletePersonAttributeType(java.lang.Integer attrTypeId)
Deprecated. use purgePersonAttributeType(PersonAttributeType) |
void |
deletePersonAttributeType(PersonAttributeType type)
Deprecated. use purgePersonAttributeType(PersonAttributeType) |
void |
deleteRelationship(Relationship relationship)
Deprecated. use purgeRelationship(Relationship) |
void |
deleteRelationshipType(RelationshipType relationshipType)
Deprecated. use purgeRelationshipType(RelationshipType) |
java.util.Set<Person> |
findPeople(java.lang.String searchPhrase,
boolean includeVoided)
Deprecated. use getPeople(String, Boolean) |
java.util.Set<Person> |
findPeople(java.lang.String searchPhrase,
boolean includeVoided,
java.util.List<java.lang.String> roles)
Deprecated. use getPeople(String, Boolean) |
java.util.Set<Person> |
findPeople(java.lang.String searchPhrase,
boolean includeVoided,
java.lang.String roles)
Deprecated. use getPeople(String, Boolean) |
RelationshipType |
findRelationshipType(java.lang.String relationshipTypeName)
Deprecated. use getRelationshipTypeByName(String) |
java.util.List<PersonAttributeType> |
getAllPersonAttributeTypes()
Get all PersonAttributeTypes in the database |
java.util.List<PersonAttributeType> |
getAllPersonAttributeTypes(boolean includeRetired)
Get all PersonAttributeTypes in the database with the option of including the retired types |
java.util.List<Relationship> |
getAllRelationships()
Get list of relationships that are not voided |
java.util.List<Relationship> |
getAllRelationships(boolean includeVoided)
Get list of relationships optionally including the voided ones or not |
java.util.List<RelationshipType> |
getAllRelationshipTypes()
Get all relationshipTypes Includes retired relationship types |
java.util.List<RelationshipType> |
getAllRelationshipTypes(boolean includeRetired)
Get all relationshipTypes with the option of including the retired types |
java.util.List<Person> |
getPeople(java.lang.String searchPhrase,
java.lang.Boolean dead)
Find a person matching the searchPhrase search string |
Person |
getPerson(java.lang.Integer personId)
Gets a person by internal id |
Person |
getPerson(Patient pat)
Deprecated. use getPerson(Integer) |
Person |
getPerson(User user)
Deprecated. use getPerson(Integer) |
PersonAddress |
getPersonAddressByUuid(java.lang.String uuid)
Get PersonAddress by its UUID |
PersonAttribute |
getPersonAttribute(java.lang.Integer id)
Get a PersonAttribute from the database with the given PersonAttributeid |
PersonAttribute |
getPersonAttributeByUuid(java.lang.String uuid)
Get PersonAttribute by its UUID |
PersonAttributeType |
getPersonAttributeType(java.lang.Integer typeId)
Get the PersonAttributeType given the type's PersonAttributeTypeId |
PersonAttributeType |
getPersonAttributeType(java.lang.String s)
Deprecated. use getPersonAttributeTypeByName(String) |
PersonAttributeType |
getPersonAttributeTypeByName(java.lang.String typeName)
Get the PersonAttributeType given the type's name |
PersonAttributeType |
getPersonAttributeTypeByUuid(java.lang.String uuid)
Gets a person attribute type with the given uuid. |
java.util.List<PersonAttributeType> |
getPersonAttributeTypes()
Deprecated. use getAllPersonAttributeTypes() |
java.util.List<PersonAttributeType> |
getPersonAttributeTypes(OpenmrsConstants.PERSON_TYPE personType,
PersonService.ATTR_VIEW_TYPE viewType)
Gets the types defined for the given person type (person, user, patient) and the given type of view (one person vs many person objects) |
java.util.List<PersonAttributeType> |
getPersonAttributeTypes(java.lang.String personTypeStr,
java.lang.String displayTypeStr)
Deprecated. @see PersonService.getPersonAttributeTypes(java.lang.String, java.lang.String) |
java.util.List<PersonAttributeType> |
getPersonAttributeTypes(java.lang.String exactName,
java.lang.String format,
java.lang.Integer foreignKey,
java.lang.Boolean searchable)
Find person attribute types matching the given parameters. |
Person |
getPersonByUuid(java.lang.String uuid)
Get Person by its UUID |
PersonName |
getPersonNameByUuid(java.lang.String uuid)
Get PersonName by its UUID |
Relationship |
getRelationship(java.lang.Integer relationshipId)
Get relationship by internal relationship identifier |
Relationship |
getRelationshipByUuid(java.lang.String uuid)
Get Relationship by its UUID |
java.util.Map<Person,java.util.List<Person>> |
getRelationshipMap(RelationshipType relType)
Get all relationships for a given type of relationship mapped from the personA to all of the personB's |
java.util.List<Relationship> |
getRelationships()
Deprecated. use getAllRelationships() |
java.util.List<Relationship> |
getRelationships(Person p)
Deprecated. use getRelationshipsByPerson(Person) |
java.util.List<Relationship> |
getRelationships(Person p,
boolean showVoided)
Deprecated. use getRelationshipsByPerson(Person) |
java.util.List<Relationship> |
getRelationships(Person fromPerson,
Person toPerson,
RelationshipType relType)
Get relationships stored in the database that |
java.util.Map<Person,java.util.List<Person>> |
getRelationships(RelationshipType relType)
Deprecated. use getRelationshipMap(RelationshipType) |
java.util.List<Relationship> |
getRelationshipsByPerson(Person p)
Get list of relationships that include Person in person_id or relative_id Does not include voided relationships |
java.util.List<Relationship> |
getRelationshipsTo(Person toPerson,
RelationshipType relType)
Deprecated. use getRelationships(Person, Person, RelationshipType) |
RelationshipType |
getRelationshipType(java.lang.Integer relationshipTypeId)
Get relationshipType by internal identifier |
RelationshipType |
getRelationshipTypeByName(java.lang.String relationshipTypeName)
Find relationshipType by exact name match |
RelationshipType |
getRelationshipTypeByUuid(java.lang.String uuid)
Gets the relationship type with the given uuid. |
java.util.List<RelationshipType> |
getRelationshipTypes()
Deprecated. use getAllRelationshipTypes() |
java.util.List<RelationshipType> |
getRelationshipTypes(java.lang.String searchString)
Get relationshipTypes by searching through the names and loosely matching to the given searchString |
java.util.List<RelationshipType> |
getRelationshipTypes(java.lang.String relationshipTypeName,
java.lang.Boolean preferred)
Find relationshipTypes by exact name match and/or preferred status |
java.util.Set<Person> |
getSimilarPeople(java.lang.String name,
java.lang.Integer birthyear,
java.lang.String gender)
Find a similar person given the attributes. |
java.util.Set<Person> |
getSimilarPeople(java.lang.String nameSearch,
java.lang.Integer birthyear,
java.lang.String gender,
java.lang.String personType)
Deprecated. @see getSimilarPeople(String, Integer, String) |
PersonName |
parsePersonName(java.lang.String name)
Parses a name into a PersonName (separate Given, Middle, and Family names) |
void |
purgePerson(Person person)
Purges a person from the database (cannot be undone) |
void |
purgePersonAttributeType(PersonAttributeType type)
Purges a PersonAttribute type from the database (cannot be undone) |
void |
purgeRelationship(Relationship relationship)
Purges a relationship from the database (cannot be undone) |
void |
purgeRelationshipType(RelationshipType relationshipType)
Purge relationship type from the database (cannot be undone) |
PersonAttributeType |
retirePersonAttributeType(PersonAttributeType type,
java.lang.String retiredReason)
Retire a Person Attribute Type |
RelationshipType |
retireRelationshipType(RelationshipType type,
java.lang.String retiredReason)
Retire a Person Relationship Type |
Person |
savePerson(Person person)
Creates or updates a Person in the database |
PersonAttributeType |
savePersonAttributeType(PersonAttributeType type)
Save the given person attribute type in the database. |
Relationship |
saveRelationship(Relationship relationship)
Create or update a relationship between people. |
RelationshipType |
saveRelationshipType(RelationshipType relationshipType)
Inserts or updates the given relationship type object in the database |
void |
setPersonDAO(PersonDAO dao)
Sets the DAO for this service. |
PersonName |
splitPersonName(java.lang.String name)
Deprecated. see #parsePersonName(String) |
Person |
unvoidPerson(Person person)
Effectively resurrects this person in the db. |
Relationship |
unvoidRelationship(Relationship relationship)
Unvoid Relationship in the database, effectively marking this as a valid relationship again |
void |
updatePerson(Person person)
Deprecated. use savePerson(Person) |
void |
updatePersonAttributeType(PersonAttributeType type)
Deprecated. use savePersonAttributeType(PersonAttributeType) |
void |
updateRelationship(Relationship relationship)
Deprecated. use saveRelationship(Relationship) |
void |
updateRelationshipType(RelationshipType relationshipType)
Deprecated. use saveRelationshipType(RelationshipType) |
Person |
voidPerson(Person person,
java.lang.String reason)
Effectively removes this person from the system. |
Relationship |
voidRelationship(Relationship relationship,
java.lang.String voidReason)
Voids the given Relationship, effectively removing it from openmrs. |
| Methods inherited from class org.openmrs.api.impl.BaseOpenmrsService |
|---|
onShutdown, onStartup |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersonServiceImpl()
| Method Detail |
|---|
public void setPersonDAO(PersonDAO dao)
PersonService
setPersonDAO in interface PersonServicedao - DAO for this servicePersonService.setPersonDAO(org.openmrs.api.db.PersonDAO)
public java.util.Set<Person> getSimilarPeople(java.lang.String name,
java.lang.Integer birthyear,
java.lang.String gender)
throws APIException
PersonServicenameSearch parameter. This does a very loose lookup on birthyear as
well. Any person with a null/missing birthdate is included and anyone with a birthyear
plus/minus one year from the given birthyear is also included
getSimilarPeople in interface PersonServicename - string to search the person's name forbirthyear - the year of birth to restrictgender - The gender field to search on (Typically just "M" or "F")
APIExceptionPersonService.getSimilarPeople(java.lang.String, java.lang.Integer,
java.lang.String)
public java.util.Set<Person> getSimilarPeople(java.lang.String nameSearch,
java.lang.Integer birthyear,
java.lang.String gender,
java.lang.String personType)
throws APIException
getSimilarPeople(String, Integer, String)
PersonService
getSimilarPeople in interface PersonServicenameSearch - string to search the person's name forbirthyear - the year of birth to restrictgender - The gender field to search on (Typically just "M" or "F")personType - one of person, user, or patient. If Person, any Person object is returned,
if Patient, only Persons that are Patients are returned, if User, only Persons
that are Users are returned
APIExceptionPersonService.getSimilarPeople(java.lang.String, java.lang.Integer, java.lang.String, java.lang.String)
public java.util.List<Person> getPeople(java.lang.String searchPhrase,
java.lang.Boolean dead)
throws APIException
PersonService
getPeople in interface PersonServicesearchPhrase - person name to match ondead - if true will return only dead patients, if false will return only alive patients,
if null will return both
APIExceptionPersonService.getPeople(String, Boolean)
public java.util.Set<Person> findPeople(java.lang.String searchPhrase,
boolean includeVoided)
getPeople(String, Boolean)
findPeople in interface PersonService
public java.util.Set<Person> findPeople(java.lang.String searchPhrase,
boolean includeVoided,
java.lang.String roles)
getPeople(String, Boolean)
findPeople in interface PersonService
public java.util.Set<Person> findPeople(java.lang.String searchPhrase,
boolean includeVoided,
java.util.List<java.lang.String> roles)
getPeople(String, Boolean)
findPeople in interface PersonService
public java.util.List<PersonAttributeType> getAllPersonAttributeTypes()
throws APIException
PersonService
getAllPersonAttributeTypes in interface PersonServiceAPIExceptionPersonService.getAllPersonAttributeTypes()
public java.util.List<PersonAttributeType> getAllPersonAttributeTypes(boolean includeRetired)
throws APIException
PersonService
getAllPersonAttributeTypes in interface PersonServiceincludeRetired - boolean - include retired attribute types as well?
APIExceptionPersonService.getAllPersonAttributeTypes(boolean)
public PersonAttributeType getPersonAttributeTypeByName(java.lang.String typeName)
throws APIException
PersonService
getPersonAttributeTypeByName in interface PersonServiceAPIExceptionPersonService.getPersonAttributeTypeByName(java.lang.String)
public void purgePersonAttributeType(PersonAttributeType type)
throws APIException
PersonService
purgePersonAttributeType in interface PersonServicetype - type to be purged from the database
APIExceptionPersonService.purgePersonAttributeType(org.openmrs.PersonAttributeType)
public PersonAttributeType savePersonAttributeType(PersonAttributeType type)
throws APIException
PersonServiceOpenmrsConstants.GLOBAL_PROPERTIES_OF_PERSON_ATTRIBUTES and reference this given type,
prior to saving this given type.
savePersonAttributeType in interface PersonServiceAPIExceptionPersonService.savePersonAttributeType(org.openmrs.PersonAttributeType)
public PersonAttributeType retirePersonAttributeType(PersonAttributeType type,
java.lang.String retiredReason)
throws APIException
PersonService
retirePersonAttributeType in interface PersonServiceAPIExceptionorg.openmrs.api.PersonService#retirePersonAttributeType(org.openmrs.PersonAttributeType)
public void createPersonAttributeType(PersonAttributeType type)
throws APIException
savePersonAttributeType(PersonAttributeType)
createPersonAttributeType in interface PersonServiceAPIException
public void updatePersonAttributeType(PersonAttributeType type)
throws APIException
savePersonAttributeType(PersonAttributeType)
updatePersonAttributeType in interface PersonServiceAPIException
public java.util.List<PersonAttributeType> getPersonAttributeTypes(java.lang.String exactName,
java.lang.String format,
java.lang.Integer foreignKey,
java.lang.Boolean searchable)
throws APIException
PersonService
getPersonAttributeTypes in interface PersonServiceexactName - (optional) The name of typeformat - (optional) The format for this typeforeignKey - (optional) The foreign keysearchable - (optional) if true only returns searchable types, if false returns only
nonsearchable and if null returns all
APIExceptionPersonService.getPersonAttributeTypes(java.lang.String,
java.lang.String, java.lang.Integer, java.lang.Boolean)public void deletePersonAttributeType(java.lang.Integer attrTypeId)
purgePersonAttributeType(PersonAttributeType)
PersonService
deletePersonAttributeType in interface PersonServicepublic void deletePersonAttributeType(PersonAttributeType type)
purgePersonAttributeType(PersonAttributeType)
deletePersonAttributeType in interface PersonServicepublic java.util.List<PersonAttributeType> getPersonAttributeTypes()
getAllPersonAttributeTypes()
getPersonAttributeTypes in interface PersonServicepublic PersonAttributeType getPersonAttributeType(java.lang.Integer typeId)
PersonService
getPersonAttributeType in interface PersonServicetypeId - PersonAttributeType.personAttributeTypeId to match on
PersonService.getPersonAttributeType(java.lang.Integer)public PersonAttribute getPersonAttribute(java.lang.Integer id)
PersonService
getPersonAttribute in interface PersonServiceid - the PersonAttribute.personAttributeId to match on
PersonService.getPersonAttribute(java.lang.Integer)public PersonAttributeType getPersonAttributeType(java.lang.String s)
getPersonAttributeTypeByName(String)
getPersonAttributeType in interface PersonService
public Relationship getRelationship(java.lang.Integer relationshipId)
throws APIException
PersonService
getRelationship in interface PersonServiceAPIExceptionPersonService.getRelationship(java.lang.Integer)
public java.util.List<Relationship> getRelationships()
throws APIException
getAllRelationships()
getRelationships in interface PersonServiceAPIException
public java.util.List<Relationship> getRelationships(Person p,
boolean showVoided)
throws APIException
getRelationshipsByPerson(Person)
getRelationships in interface PersonServiceAPIException
public java.util.List<Relationship> getRelationships(Person p)
throws APIException
getRelationshipsByPerson(Person)
getRelationships in interface PersonServiceAPIException
public java.util.List<Relationship> getRelationshipsTo(Person toPerson,
RelationshipType relType)
throws APIException
getRelationships(Person, Person, RelationshipType)
getRelationshipsTo in interface PersonServiceAPIException
public java.util.List<RelationshipType> getRelationshipTypes()
throws APIException
getAllRelationshipTypes()
getRelationshipTypes in interface PersonServiceAPIException
public RelationshipType getRelationshipType(java.lang.Integer relationshipTypeId)
throws APIException
PersonService
getRelationshipType in interface PersonServiceAPIExceptionPersonService.getRelationshipType(java.lang.Integer)
public RelationshipType findRelationshipType(java.lang.String relationshipTypeName)
throws APIException
getRelationshipTypeByName(String)
findRelationshipType in interface PersonServiceAPIException
public RelationshipType getRelationshipTypeByName(java.lang.String relationshipTypeName)
throws APIException
PersonService
getRelationshipTypeByName in interface PersonServicerelationshipTypeName - name to match on
APIExceptionPersonService.getRelationshipTypeByName(java.lang.String)
public void purgePerson(Person person)
throws APIException
PersonService
purgePerson in interface PersonServiceperson - person to be purged from the database
APIExceptionPersonService.purgePerson(org.openmrs.Person)
public Person savePerson(Person person)
throws APIException
PersonService
savePerson in interface PersonServiceperson - person to be created or updated
APIExceptionPersonService.savePerson(org.openmrs.Person)
public Person createPerson(Person person)
throws APIException
savePerson(Person)
createPerson in interface PersonServiceAPIException
public void updatePerson(Person person)
throws APIException
savePerson(Person)
updatePerson in interface PersonServiceAPIException
public void deletePerson(Person person)
throws APIException
purgePerson(Person)
deletePerson in interface PersonServiceAPIException
public Person voidPerson(Person person,
java.lang.String reason)
throws APIException
PersonService
voidPerson in interface PersonServiceperson - person to be voidedreason - reason for voiding person
APIExceptionPersonService.voidPerson(org.openmrs.Person, java.lang.String)
public Person unvoidPerson(Person person)
throws APIException
PersonService
unvoidPerson in interface PersonServiceperson - person to be revived
APIExceptionPersonService.unvoidPerson(org.openmrs.Person)
public Person getPerson(java.lang.Integer personId)
throws APIException
PersonService
getPerson in interface PersonServicepersonId - internal identifier of person to get
APIExceptionPersonService.getPerson(java.lang.Integer)
public Person getPerson(Patient pat)
throws APIException
getPerson(Integer)
PersonServicePersonService.getPerson(Integer) passing in pat.getPatientId() or just cast the pat
object to a Person object because Patient is a subclass of Person. (Person)pat
getPerson in interface PersonServiceAPIException
public Person getPerson(User user)
throws APIException
getPerson(Integer)
PersonServicePersonService.getPerson(Integer) passing in user.getUserId() or just cast the user
object to a Person object because User is a subclass of Person. (Person)user
getPerson in interface PersonServiceAPIException
public java.util.List<Relationship> getAllRelationships()
throws APIException
PersonService
getAllRelationships in interface PersonServiceAPIExceptionPersonService.getAllRelationships()
public java.util.List<Relationship> getAllRelationships(boolean includeVoided)
throws APIException
PersonService
getAllRelationships in interface PersonServiceincludeVoided - true/false whether to include the voided relationships
APIExceptionPersonService.getAllRelationships(boolean)
public java.util.List<Relationship> getRelationships(Person fromPerson,
Person toPerson,
RelationshipType relType)
throws APIException
PersonService
getRelationships in interface PersonServicefromPerson - (optional) Person to in the person_id columntoPerson - (optional) Person in the relative_id columnrelType - (optional) The RelationshipType to match
APIExceptionPersonService.getRelationships(org.openmrs.Person, org.openmrs.Person,
org.openmrs.RelationshipType)
public java.util.List<Relationship> getRelationshipsByPerson(Person p)
throws APIException
PersonService
getRelationshipsByPerson in interface PersonServicep - person object listed on either side of the relationship
APIExceptionPersonService.getRelationshipsByPerson(org.openmrs.Person)
public void purgeRelationship(Relationship relationship)
throws APIException
PersonService
purgeRelationship in interface PersonServicerelationship - relationship to be purged from the database
APIExceptionPersonService.purgeRelationship(org.openmrs.Relationship)
public Relationship saveRelationship(Relationship relationship)
throws APIException
PersonServicerelationship to
the database
saveRelationship in interface PersonServicerelationship - relationship to be created or updated
APIExceptionPersonService.saveRelationship(org.openmrs.Relationship)
public void createRelationship(Relationship relationship)
throws APIException
saveRelationship(Relationship)
createRelationship in interface PersonServiceAPIException
public void updateRelationship(Relationship relationship)
throws APIException
saveRelationship(Relationship)
updateRelationship in interface PersonServiceAPIException
public void deleteRelationship(Relationship relationship)
throws APIException
purgeRelationship(Relationship)
deleteRelationship in interface PersonServiceAPIException
public Relationship voidRelationship(Relationship relationship,
java.lang.String voidReason)
throws APIException
PersonService
voidRelationship in interface PersonServicerelationship - Relationship to voidvoidReason - String reason the relationship is being voided.
APIExceptionPersonService.voidRelationship(org.openmrs.Relationship,
java.lang.String)
public Relationship unvoidRelationship(Relationship relationship)
throws APIException
PersonService
unvoidRelationship in interface PersonServicerelationship - Relationship to unvoid
APIExceptionPersonService.unvoidRelationship(org.openmrs.Relationship)
public void createRelationshipType(RelationshipType relationshipType)
throws APIException
saveRelationshipType(RelationshipType)
createRelationshipType in interface PersonServiceAPIException
public void updateRelationshipType(RelationshipType relationshipType)
throws APIException
saveRelationshipType(RelationshipType)
updateRelationshipType in interface PersonServiceAPIException
public void deleteRelationshipType(RelationshipType relationshipType)
throws APIException
purgeRelationshipType(RelationshipType)
deleteRelationshipType in interface PersonServiceAPIException
public java.util.List<RelationshipType> getAllRelationshipTypes()
throws APIException
PersonService
getAllRelationshipTypes in interface PersonServiceAPIExceptionPersonService.getAllRelationshipTypes()
public java.util.List<RelationshipType> getRelationshipTypes(java.lang.String searchString)
throws APIException
PersonService
getRelationshipTypes in interface PersonServicesearchString - string to match to a relationship type name
APIExceptionPersonService.getRelationshipTypes(java.lang.String)
public java.util.List<RelationshipType> getRelationshipTypes(java.lang.String relationshipTypeName,
java.lang.Boolean preferred)
throws APIException
PersonService
getRelationshipTypes in interface PersonServicerelationshipTypeName - name to match onpreferred - if true, returns on preferred types, if false returns only the nonpreferred
types. if null returns both
APIExceptionPersonService.getRelationshipTypes(java.lang.String, java.lang.Boolean)
public void purgeRelationshipType(RelationshipType relationshipType)
throws APIException
PersonService
purgeRelationshipType in interface PersonServicerelationshipType - relationship type to be purged
APIExceptionPersonService.purgeRelationshipType(org.openmrs.RelationshipType)
public RelationshipType saveRelationshipType(RelationshipType relationshipType)
throws APIException
PersonService
saveRelationshipType in interface PersonServicerelationshipType - type to be created or updated
APIExceptionPersonService.saveRelationshipType(org.openmrs.RelationshipType)
public java.util.List<PersonAttributeType> getPersonAttributeTypes(OpenmrsConstants.PERSON_TYPE personType,
PersonService.ATTR_VIEW_TYPE viewType)
throws APIException
PersonService
getPersonAttributeTypes in interface PersonServicepersonType - PERSON, USER, PATIENT, or null. Both PERSON and null mean to return attr
types for both patients and usersviewType - whether this is a listing or viewing or null for both listing and viewing
APIExceptionPersonService.getPersonAttributeTypes(org.openmrs.util.OpenmrsConstants.PERSON_TYPE,
org.openmrs.api.PersonService.ATTR_VIEW_TYPE)
public java.util.List<PersonAttributeType> getPersonAttributeTypes(java.lang.String personTypeStr,
java.lang.String displayTypeStr)
throws APIException
PersonService.getPersonAttributeTypes(java.lang.String, java.lang.String)
getPersonAttributeTypes in interface PersonServiceAPIException
public PersonName parsePersonName(java.lang.String name)
throws APIException
PersonService
parsePersonName in interface PersonServicename - person name to be parsed
APIExceptionPersonService.parsePersonName(java.lang.String)public PersonName splitPersonName(java.lang.String name)
PersonServicename string into Given, Middle, and Family parts of a PersonName
splitPersonName in interface PersonServicePersonService.parsePersonName(String)
public java.util.Map<Person,java.util.List<Person>> getRelationshipMap(RelationshipType relType)
throws APIException
PersonService
getRelationshipMap in interface PersonServicerelType - type of relationship for which to retrieve all relationships
APIExceptionPersonService.getRelationshipMap(org.openmrs.RelationshipType)
public java.util.Map<Person,java.util.List<Person>> getRelationships(RelationshipType relType)
throws APIException
getRelationshipMap(RelationshipType)
getRelationships in interface PersonServiceAPIExceptionpublic PersonAttributeType getPersonAttributeTypeByUuid(java.lang.String uuid)
PersonService
getPersonAttributeTypeByUuid in interface PersonServiceuuid - the universally unique identifier to lookup
PersonService.getPersonAttributeTypeByUuid(java.lang.String)
public Person getPersonByUuid(java.lang.String uuid)
throws APIException
PersonService
getPersonByUuid in interface PersonServiceAPIExceptionPersonService.getPersonByUuid(java.lang.String)
public PersonAddress getPersonAddressByUuid(java.lang.String uuid)
throws APIException
PersonService
getPersonAddressByUuid in interface PersonServiceAPIException
public PersonAttribute getPersonAttributeByUuid(java.lang.String uuid)
throws APIException
PersonService
getPersonAttributeByUuid in interface PersonServiceAPIException
public PersonName getPersonNameByUuid(java.lang.String uuid)
throws APIException
PersonService
getPersonNameByUuid in interface PersonServiceAPIException
public Relationship getRelationshipByUuid(java.lang.String uuid)
throws APIException
PersonService
getRelationshipByUuid in interface PersonServiceAPIExceptionPersonService.getRelationshipByUuid(java.lang.String)
public RelationshipType getRelationshipTypeByUuid(java.lang.String uuid)
throws APIException
PersonService
getRelationshipTypeByUuid in interface PersonServiceAPIExceptionPersonService.getRelationshipTypeByUuid(java.lang.String)
public java.util.List<RelationshipType> getAllRelationshipTypes(boolean includeRetired)
throws APIException
PersonService
getAllRelationshipTypes in interface PersonServiceincludeRetired - boolean - include retired relationshipTypes as well?
APIExceptionPersonService.getAllRelationshipTypes(boolean)
public RelationshipType retireRelationshipType(RelationshipType type,
java.lang.String retiredReason)
throws APIException
PersonService
retireRelationshipType in interface PersonServiceAPIExceptionPersonService.retireRelationshipType(org.openmrs.RelationshipType, java.lang.String)
|
OpenMRS-1.7.x | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||