public class DWRPatientService extends java.lang.Object implements GlobalPropertyListener
PatientService
Constructor and Description |
---|
DWRPatientService() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addIdentifier(java.lang.Integer patientId,
java.lang.String identifierType,
java.lang.String identifier,
java.lang.Integer identifierLocationId)
Auto generated method comment
|
java.lang.String |
changeHealthCenter(java.lang.Integer patientId,
java.lang.Integer locationId)
Auto generated method comment
|
void |
createAllergy(java.lang.Integer patientId,
java.lang.Integer allergenId,
java.lang.String type,
java.lang.String pStartDate,
java.lang.String severity,
java.lang.Integer reactionId)
Creates an Allergy Item
|
void |
createProblem(java.lang.Integer patientId,
java.lang.Integer problemId,
java.lang.String status,
java.lang.String pStartDate,
java.lang.String comments)
Creates a Problem Item
|
java.lang.String |
exitPatientFromCare(java.lang.Integer patientId,
java.lang.Integer exitReasonId,
java.lang.String exitDateStr,
java.lang.Integer causeOfDeathConceptId,
java.lang.String otherReason)
Auto generated method comment
|
java.util.Collection<java.lang.Object> |
findBatchOfPatients(java.lang.String searchValue,
boolean includeVoided,
java.lang.Integer start,
java.lang.Integer length)
Search on the
searchValue . |
java.util.Map<java.lang.String,java.lang.Object> |
findCountAndPatients(java.lang.String searchValue,
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 patients (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.Vector<java.lang.Object> |
findDuplicatePatients(java.lang.String[] searchOn)
find all patients with duplicate attributes (searchOn)
|
java.util.Collection<java.lang.Object> |
findPatients(java.lang.String searchValue,
boolean includeVoided)
Search on the
searchValue . |
PatientListItem |
getPatient(java.lang.Integer patientId)
Convenience method for dwr/javascript to convert a patient id into a Patient object (or at
least into data about the patient)
|
void |
globalPropertyChanged(GlobalProperty newValue)
Called after a global property is created or updated
|
void |
globalPropertyDeleted(java.lang.String propertyName)
Called after a global property is deleted
|
void |
removeAllergy(java.lang.Integer activeListId,
java.lang.String reason)
Resolve an allergy
|
void |
removeProblem(java.lang.Integer activeListId,
java.lang.String reason,
java.lang.String pEndDate)
Remove a problem, sets the end date
|
void |
saveAllergy(java.lang.Integer activeListItemId,
java.lang.Integer allergenId,
java.lang.String type,
java.lang.String pStartDate,
java.lang.String severity,
java.lang.Integer reactionId)
Save an Allergy
|
void |
saveProblem(java.lang.Integer activeListId,
java.lang.Integer problemId,
java.lang.String status,
java.lang.String pStartDate,
java.lang.String comments)
Saves the Problem
|
boolean |
supportsPropertyName(java.lang.String propertyName)
Asks this listener whether it wants to be notified about the given property name
|
void |
voidAllergy(java.lang.Integer activeListId,
java.lang.String reason)
Voids the Allergy
|
void |
voidProblem(java.lang.Integer activeListId,
java.lang.String reason)
Voids the Problem
|
public java.util.Collection<java.lang.Object> findPatients(java.lang.String searchValue, boolean includeVoided)
searchValue
. If a number is in the search string, do an identifier
search. Else, do a name searchsearchValue
- string to be looked forincludeVoided
- true/false whether or not to included voided patientspublic java.util.Collection<java.lang.Object> findBatchOfPatients(java.lang.String searchValue, boolean includeVoided, java.lang.Integer start, java.lang.Integer length)
searchValue
. If a number is in the search string, do an identifier
search. Else, do a name searchsearchValue
- string to be looked forincludeVoided
- true/false whether or not to included voided patientsstart
- The starting index for the results to returnlength
- The number of results of returnPatientService#getPatients(String, String, List, boolean, int, Integer)
public java.util.Map<java.lang.String,java.lang.Object> findCountAndPatients(java.lang.String searchValue, java.lang.Integer start, java.lang.Integer length, boolean getMatchCount) throws APIException
searchValue
- patient name or identifierstart
- the beginning indexlength
- the number of matching patients to returngetMatchCount
- Specifies if the count of matches should be included in the returned mapAPIException
public PatientListItem getPatient(java.lang.Integer patientId)
patientId
- the Patient.getPatientId()
to match onpublic java.util.Vector<java.lang.Object> findDuplicatePatients(java.lang.String[] searchOn)
searchOn
- public java.lang.String addIdentifier(java.lang.Integer patientId, java.lang.String identifierType, java.lang.String identifier, java.lang.Integer identifierLocationId)
patientId
- identifierType
- identifier
- identifierLocationId
- public java.lang.String exitPatientFromCare(java.lang.Integer patientId, java.lang.Integer exitReasonId, java.lang.String exitDateStr, java.lang.Integer causeOfDeathConceptId, java.lang.String otherReason)
patientId
- reasonForExitId
- dateOfExit
- causeOfDeath
- otherReason
- public java.lang.String changeHealthCenter(java.lang.Integer patientId, java.lang.Integer locationId)
patientId
- locationId
- public void createAllergy(java.lang.Integer patientId, java.lang.Integer allergenId, java.lang.String type, java.lang.String pStartDate, java.lang.String severity, java.lang.Integer reactionId)
patientId
- allergenId
- type
- pStartDate
- severity
- reactionId
- public void saveAllergy(java.lang.Integer activeListItemId, java.lang.Integer allergenId, java.lang.String type, java.lang.String pStartDate, java.lang.String severity, java.lang.Integer reactionId)
activeListItemId
- allergenId
- Concept IDtype
- pStartDate
- severity
- reactionId
- public void removeAllergy(java.lang.Integer activeListId, java.lang.String reason)
activeListId
- resolved
- reason
- pEndDate
- public void voidAllergy(java.lang.Integer activeListId, java.lang.String reason)
activeListId
- reason
- public void createProblem(java.lang.Integer patientId, java.lang.Integer problemId, java.lang.String status, java.lang.String pStartDate, java.lang.String comments)
patientId
- problemId
- status
- pStartDate
- comments
- public void saveProblem(java.lang.Integer activeListId, java.lang.Integer problemId, java.lang.String status, java.lang.String pStartDate, java.lang.String comments)
activeListId
- problemId
- status
- pStartDate
- comments
- public void removeProblem(java.lang.Integer activeListId, java.lang.String reason, java.lang.String pEndDate)
activeListId
- resolved
- reason
- pEndDate
- public void voidProblem(java.lang.Integer activeListId, java.lang.String reason)
activeListId
- reason
- public boolean supportsPropertyName(java.lang.String propertyName)
GlobalPropertyListener
supportsPropertyName
in interface GlobalPropertyListener
public void globalPropertyChanged(GlobalProperty newValue)
GlobalPropertyListener
globalPropertyChanged
in interface GlobalPropertyListener
newValue
- the new value of the property that was just savedpublic void globalPropertyDeleted(java.lang.String propertyName)
GlobalPropertyListener
globalPropertyDeleted
in interface GlobalPropertyListener
propertyName
- the name of the property that was just deletedCopyright © 2018 OpenMRS Inc.. All Rights Reserved.