@Handler(supports=Patient.class) public class PatientSaveHandler extends Object implements SaveHandler<Patient>
Patient
objects when they are saved via a save* method in an
Openmrs Service. This handler is automatically called by the RequiredDataAdvice
AOP
class. RequiredDataHandler
,
SaveHandler
,
Patient
Constructor and Description |
---|
PatientSaveHandler() |
Modifier and Type | Method and Description |
---|---|
void |
handle(Patient patient,
User creator,
Date dateCreated,
String other)
This method is used by the implementing classes to set any required data that it needs to.
|
public void handle(Patient patient, User creator, Date dateCreated, String other)
SaveHandler
handle
in interface RequiredDataHandler<Patient>
handle
in interface SaveHandler<Patient>
patient
- an OpenmrsObject that needs to have some required data setcreator
- the user who is saving this objectdateCreated
- the datetime this object is being savedother
- (optional) would be the second argument in the save method, if existsSaveHandler.handle(org.openmrs.OpenmrsObject, org.openmrs.User,
java.util.Date, java.lang.String)
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.