public class DWRPersonService
extends java.lang.Object
Person
objects.Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
DWRPersonService() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
createPerson(java.lang.String given,
java.lang.String middle,
java.lang.String family,
java.lang.String birthdate,
java.lang.String dateformat,
java.lang.String age,
java.lang.String gender)
Creates a new person stub.
|
java.util.Vector<java.lang.Object> |
findBatchOfPeopleByRoles(java.lang.String searchPhrase,
boolean includeRetired,
java.lang.String roles,
java.lang.Integer start,
java.lang.Integer length)
Find Person objects based on the given searchPhrase
|
java.util.Map<java.lang.String,java.lang.Object> |
findCountAndPeople(java.lang.String phrase,
boolean includeRetired,
java.lang.String roles,
java.lang.Integer start,
java.lang.Integer length,
boolean getMatchCount)
Returns a map of results with the values as count of matches and a partial list of the
matching people (depending on values of start and length parameters) while the keys are are
'count' and 'objectList' respectively, if the length parameter is not specified, then all
matches will be returned from the start index if specified.
|
java.util.List<?> |
findPeople(java.lang.String searchPhrase,
boolean includeVoided) |
java.util.List<java.lang.Object> |
findPeopleByRoles(java.lang.String searchPhrase,
boolean includeVoided,
java.lang.String roles)
Find Person objects based on the given searchPhrase
|
PersonListItem |
getPerson(java.lang.Integer personId) |
java.util.List<?> |
getSimilarPeople(java.lang.String name,
java.lang.String birthdate,
java.lang.String age,
java.lang.String gender)
Searches for Person records that have a name similar to the given name, a birthdate that is
null or within a few years of the given birthdate, and a gender that matches.
|
public java.util.List<?> getSimilarPeople(java.lang.String name, java.lang.String birthdate, java.lang.String age, java.lang.String gender)
name
- birthyear
- age
- gender
- public java.util.List<?> findPeople(java.lang.String searchPhrase, boolean includeVoided)
searchPhrase
- includeVoided
- public java.util.List<java.lang.Object> findPeopleByRoles(java.lang.String searchPhrase, boolean includeVoided, java.lang.String roles)
searchPhrase
- partial name or partial identifierincludeVoided
- true/false whether to include the voided objectsroles
- if not null, restricts search to only users and only users with these rolespublic java.lang.Object createPerson(java.lang.String given, java.lang.String middle, java.lang.String family, java.lang.String birthdate, java.lang.String dateformat, java.lang.String age, java.lang.String gender)
given
- middle
- family
- birthdate
- dateformat
- age
- gender
- public PersonListItem getPerson(java.lang.Integer personId)
patientId
- public java.util.Vector<java.lang.Object> findBatchOfPeopleByRoles(java.lang.String searchPhrase, boolean includeRetired, java.lang.String roles, java.lang.Integer start, java.lang.Integer length)
searchPhrase
- partial name or partial identifierincludeRetired
- true/false whether to include the voided objectsroles
- if not null, restricts search to only users and only users with these rolesstart
- the beginning index (this is only used for user search i.e of roles are
specified)length
- the number of matching people to return (this is only used for user search i.e
of roles are specified)public java.util.Map<java.lang.String,java.lang.Object> findCountAndPeople(java.lang.String phrase, boolean includeRetired, java.lang.String roles, java.lang.Integer start, java.lang.Integer length, boolean getMatchCount) throws APIException
phrase
- is the string used to search for peopleincludeRetired
- Specifies if retired people should be included or notroles
- If not null, restricts search to only users and only users with these rolesstart
- the beginning indexlength
- the number of matching encounters to returngetMatchCount
- Specifies if the count of matches should be included in the returned mapAPIException
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.