public class OrderSetServiceImpl extends BaseOpenmrsService implements OrderSetService
| Modifier and Type | Field and Description |
|---|---|
protected OrderSetDAO |
dao |
| Constructor and Description |
|---|
OrderSetServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
List<OrderSetAttributeType> |
getAllOrderSetAttributeTypes()
Get all order set attribute types
|
OrderSet |
getOrderSet(Integer orderSetId)
Gets a specific OrderSet with the matched orderSet Id.
|
OrderSetAttribute |
getOrderSetAttributeByUuid(String uuid)
Get order set attribute by uuid
|
OrderSetAttributeType |
getOrderSetAttributeType(Integer id)
Get order set attribute type from the database by a given internal id
|
OrderSetAttributeType |
getOrderSetAttributeTypeByName(String name)
Retrieves an order set attribute type object based on the name provided
|
OrderSetAttributeType |
getOrderSetAttributeTypeByUuid(String uuid)
Get order set attribute type by uuid
|
OrderSet |
getOrderSetByUuid(String orderSetUuid)
Gets a specific OrderSet with the matched orderSet uuid.
|
OrderSetMember |
getOrderSetMemberByUuid(String uuid)
Get OrderSetMember by uuid
|
List<OrderSet> |
getOrderSets(boolean includeRetired)
Gets all OrderSets that match the specified parameters excluding discontinuation orderSets.
|
void |
purgeOrderSetAttributeType(OrderSetAttributeType orderSetAttributeType)
Completely removes an order set attribute type
|
OrderSet |
retireOrderSet(OrderSet orderSet,
String retireReason)
Retires and OrderSet, with matched OrderSet
|
OrderSetAttributeType |
retireOrderSetAttributeType(OrderSetAttributeType orderSetAttributeType,
String reason)
Retires the given order set attribute type
|
OrderSet |
saveOrderSet(OrderSet orderSet)
Save or update the given
orderSet in the database. |
OrderSetAttributeType |
saveOrderSetAttributeType(OrderSetAttributeType orderSetAttributeType)
Creates or updates the given order set attribute type
|
void |
setOrderSetDAO(OrderSetDAO dao)
Setter for the OrderSet data access object.
|
OrderSet |
unretireOrderSet(OrderSet orderSet)
UnRetires and OrderSet, with matched OrderSet
|
OrderSetAttributeType |
unretireOrderSetAttributeType(OrderSetAttributeType orderSetAttributeType)
Restores an order set attribute type that was previous retired
|
onShutdown, onStartupclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonShutdown, onStartupprotected OrderSetDAO dao
public void setOrderSetDAO(OrderSetDAO dao)
OrderSetServicesetOrderSetDAO in interface OrderSetServicedao - The data access object to useOrderSetService.setOrderSetDAO(org.openmrs.api.db.OrderSetDAO)@Transactional(readOnly=false) public OrderSet saveOrderSet(OrderSet orderSet) throws APIException
OrderSetServiceorderSet in the database. If the OrderSet is retired
it will set retired by and retired date.
If OrderSetMembers are retired, it will set retired by and retired date.saveOrderSet in interface OrderSetServiceorderSet - the OrderSet to saveAPIException@Transactional(readOnly=false) public OrderSet retireOrderSet(OrderSet orderSet, String retireReason) throws APIException
OrderSetServiceretireOrderSet in interface OrderSetServiceorderSet - Specifies the OrderSet to be retiredretireReason - Specifies the reason why the OrderSet has to be retiredAPIExceptionOrderSetService.retireOrderSet(OrderSet, String)@Transactional(readOnly=false) public OrderSet unretireOrderSet(OrderSet orderSet) throws APIException
OrderSetServiceunretireOrderSet in interface OrderSetServiceorderSet - Specifies the OrderSet to be retiredAPIExceptionOrderSetService.unretireOrderSet(OrderSet)@Transactional(readOnly=true) public List<OrderSet> getOrderSets(boolean includeRetired) throws APIException
OrderSetServicegetOrderSets in interface OrderSetServiceincludeRetired - Specifies whether retired orders should be included or notAPIExceptionOrderSetService.getOrderSets(boolean)@Transactional(readOnly=true) public OrderSet getOrderSet(Integer orderSetId) throws APIException
OrderSetServicegetOrderSet in interface OrderSetServiceorderSetId - Specifies a saved orderSet id.APIExceptionOrderSetService.getOrderSet(Integer)@Transactional(readOnly=true) public OrderSet getOrderSetByUuid(String orderSetUuid) throws APIException
OrderSetServicegetOrderSetByUuid in interface OrderSetServiceorderSetUuid - Specifies a saved orderSet uuid.APIExceptionOrderSetService.getOrderSetByUuid(String)@Transactional(readOnly=true) public OrderSetMember getOrderSetMemberByUuid(String uuid)
OrderSetServicegetOrderSetMemberByUuid in interface OrderSetServiceOrderSetService.getOrderSetMemberByUuid(String)@Transactional(readOnly=true) public List<OrderSetAttributeType> getAllOrderSetAttributeTypes()
OrderSetServicegetAllOrderSetAttributeTypes in interface OrderSetServiceOrderSetAttributeTypesOrderSetService.getAllOrderSetAttributeTypes()@Transactional(readOnly=true) public OrderSetAttributeType getOrderSetAttributeType(Integer id)
OrderSetServicegetOrderSetAttributeType in interface OrderSetServiceid - specifies the set attribute type idOrderSetAttributeType with the given internal idOrderSetService.getOrderSetAttributeType(java.lang.Integer)@Transactional(readOnly=true) public OrderSetAttributeType getOrderSetAttributeTypeByUuid(String uuid)
OrderSetServicegetOrderSetAttributeTypeByUuid in interface OrderSetServiceuuid - specifies the order set attribute type uuidOrderSetAttributeType with the given uuidOrderSetService.getOrderSetAttributeTypeByUuid(java.lang.String)@Transactional(readOnly=false) public OrderSetAttributeType saveOrderSetAttributeType(OrderSetAttributeType orderSetAttributeType)
OrderSetServicesaveOrderSetAttributeType in interface OrderSetServiceorderSetAttributeType - the order set attribute type to saveOrderSetService.saveOrderSetAttributeType(org.openmrs.OrderSetAttributeType)@Transactional(readOnly=false) public OrderSetAttributeType retireOrderSetAttributeType(OrderSetAttributeType orderSetAttributeType, String reason)
OrderSetServiceretireOrderSetAttributeType in interface OrderSetServiceorderSetAttributeType - specifies the order set attribute type to be retiredOrderSetService.retireOrderSetAttributeType(org.openmrs.OrderSetAttributeType,
java.lang.String)@Transactional(readOnly=false) public OrderSetAttributeType unretireOrderSetAttributeType(OrderSetAttributeType orderSetAttributeType)
OrderSetServiceunretireOrderSetAttributeType in interface OrderSetServiceorderSetAttributeType - the order set attribute type to be un-retiredOrderSetService.unretireOrderSetAttributeType(org.openmrs.OrderSetAttributeType)@Transactional(readOnly=false) public void purgeOrderSetAttributeType(OrderSetAttributeType orderSetAttributeType)
OrderSetServicepurgeOrderSetAttributeType in interface OrderSetServiceorderSetAttributeType - the order set attribute type to be purgedOrderSetService.purgeOrderSetAttributeType(org.openmrs.OrderSetAttributeType)@Transactional(readOnly=true) public OrderSetAttributeType getOrderSetAttributeTypeByName(String name)
OrderSetServicegetOrderSetAttributeTypeByName in interface OrderSetServicename - fetches a given order set attribute type by nameOrderSetAttributeType with the specified nameOrderSetService.getOrderSetAttributeTypeByName(java.lang.String)@Transactional(readOnly=true) public OrderSetAttribute getOrderSetAttributeByUuid(String uuid)
OrderSetServicegetOrderSetAttributeByUuid in interface OrderSetServiceuuid - specifies the order set attribute uuidOrderSetAttribute with the given uuidOrderSetService.getOrderSetAttributeByUuid(java.lang.String)Copyright © 2024 OpenMRS Inc.. All rights reserved.