@Handler(supports=Patient.class) public class PatientDataVoidHandler extends 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,
Date voidedDate,
String voidReason)
Implementing classes should set all void attributes to the given parameters.
|
public void handle(Patient patient, User voidingUser, Date voidedDate, 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
existsShould void the orders encounters and observations associated with the patientCopyright © 2024 OpenMRS Inc.. All rights reserved.