public class DWREncounterService extends Object
Constructor and Description |
---|
DWREncounterService() |
Modifier and Type | Method and Description |
---|---|
Vector |
findBatchOfEncounters(String phrase,
boolean includeVoided,
Integer start,
Integer length)
Returns a list of matching encounters (depending on values of start and length parameters) if
the length parameter is not specified, then all matches will be returned from the start index
if specified.
|
Vector |
findBatchOfEncountersByPatient(String phrase,
Integer patientId,
boolean includeVoided,
Integer start,
Integer length)
Returns a list of matching encounters (depending on values of start and length parameters) if
the length parameter is not specified, then all matches will be returned from the start index
if specified.
|
Vector<Object> |
findBatchOfLocations(String searchValue,
boolean includeRetired,
Integer start,
Integer length)
Returns a list of matching locations (depending on values of start and length parameters) if
the length parameter is not specified, then all matches will be returned from the start index
if specified.
|
Map<String,Object> |
findCountAndEncounters(String phrase,
boolean includeVoided,
Integer start,
Integer length,
boolean getMatchCount)
Returns a map of results with the values as count of matches and a partial list of the
matching encounters (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.
|
Map<String,Object> |
findCountAndLocations(String phrase,
boolean includeRetired,
Integer start,
Integer length,
boolean getMatchCount)
Returns a map of results with the values as count of matches and a partial list of the
matching locations (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.
|
Vector |
findEncounters(String phrase,
boolean includeVoided)
Returns a list of encounters for patients with a matching name, identifier or encounterId if
phrase is a number.
|
Vector |
findLocations(String searchValue) |
EncounterListItem |
getEncounter(Integer encounterId) |
LocationListItem |
getLocation(Integer locationId) |
Vector |
getLocations() |
public Vector findEncounters(String phrase, boolean includeVoided) throws APIException
phrase
- patient name or identifierincludeVoided
- Specifies if voided encounters should be included or notAPIException
public Vector findBatchOfEncounters(String phrase, boolean includeVoided, Integer start, Integer length) throws APIException
phrase
- patient name or identifierincludeVoided
- Specifies if voided encounters should be included or notstart
- the beginning indexlength
- the number of matching encounters to returnAPIException
public Vector findBatchOfEncountersByPatient(String phrase, Integer patientId, boolean includeVoided, Integer start, Integer length) throws APIException
phrase
- encounter id, provider identifier, location, encounter type, provider, form or
provider namepatientId
- the patient idincludeVoided
- Specifies if voided encounters should be included or notstart
- the beginning indexlength
- the number of matching encounters to returnAPIException
public Map<String,Object> findCountAndEncounters(String phrase, boolean includeVoided, Integer start, Integer length, boolean getMatchCount) throws APIException
phrase
- patient name or identifierincludeVoided
- Specifies if voided encounters should be included or notstart
- the beginning indexlength
- the number of matching encounters to returnAPIException
public EncounterListItem getEncounter(Integer encounterId)
public Vector<Object> findBatchOfLocations(String searchValue, boolean includeRetired, Integer start, Integer length) throws APIException
searchValue
- is the string used to search for locationsincludeRetired
- Specifies if retired locations should be returnedstart
- the beginning indexlength
- the number of matching locations to returnAPIException
public Vector getLocations()
public LocationListItem getLocation(Integer locationId)
public Map<String,Object> findCountAndLocations(String phrase, boolean includeRetired, Integer start, Integer length, boolean getMatchCount) throws APIException
phrase
- is the string used to search for locationsincludeRetired
- Specifies if retired locations should be returnedstart
- the beginning indexlength
- the number of matching encounters to returngetMatchCount
- Specifies if the count of matches should be included in the returned mapAPIException
Copyright © 2015 OpenMRS Inc.. All rights reserved.