@Handler(supports=Order.class) public class OrderSaveHandler extends Object implements SaveHandler<Order>
Orderobjects when they are saved via a save* method in an Openmrs Service. This handler is automatically called by the
|Constructor and Description|
|Modifier and Type||Method and Description|
This method is used by the implementing classes to set any required data that it needs to.
public void handle(Order order, User creator, Date dateCreated, String other)
order- an OpenmrsObject that needs to have some required data set
creator- the user who is saving this object
dateCreated- the datetime this object is being saved
other- (optional) would be the second argument in the save method, if exists
SaveHandler.handle(org.openmrs.OpenmrsObject, org.openmrs.User, java.util.Date, java.lang.String)
Copyright © 2021 OpenMRS Inc.. All rights reserved.