@Handler(supports=Visit.class) public class VisitVoidHandler extends Object implements VoidHandler<Visit>
Visit object when a void* method is
called with this class. This differs from the BaseVoidHandler because voiding the Visit
object implies voiding encounters.RequiredDataAdvice,
VoidHandler| Constructor and Description |
|---|
VisitVoidHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(Visit voidableObject,
User voidingUser,
Date voidedDate,
String voidReason)
Implementing classes should set all void attributes to the given parameters.
|
public void handle(Visit voidableObject, User voidingUser, Date voidedDate, String voidReason)
VoidHandlerhandle in interface RequiredDataHandler<Visit>handle in interface VoidHandler<Visit>voidableObject - 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
existsRequiredDataHandler.handle(org.openmrs.OpenmrsObject,
org.openmrs.User, java.util.Date, java.lang.String)Copyright © 2024 OpenMRS Inc.. All rights reserved.