@Handler(supports=Patient.class) public class PatientDataVoidHandler extends java.lang.Object implements VoidHandler<Patient>
Patient objects when they are voided via a void* method in an
Openmrs Service. This handler is automatically called by the RequiredDataAdvice AOP
class. RequiredDataHandler,
VoidHandler,
Patient| Constructor and Description |
|---|
PatientDataVoidHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(Patient patient,
User voidingUser,
java.util.Date voidedDate,
java.lang.String voidReason)
Implementing classes should set all void attributes to the given parameters.
|
public void handle(Patient patient, User voidingUser, java.util.Date voidedDate, java.lang.String voidReason)
VoidHandlerhandle in interface RequiredDataHandler<Patient>handle in interface VoidHandler<Patient>patient - an OpenmrsObject that needs to have some required data setvoidingUser - the currently authenticated UservoidedDate - the current DatevoidReason - (optional) would be the second argument in the save/void/unvoid/etc method, if
existsVoidHandler.handle(org.openmrs.Voidable, org.openmrs.User,
java.util.Date, java.lang.String)Copyright © 2018 OpenMRS Inc.. All Rights Reserved.