public interface OrderSetService extends OpenmrsService
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 orderSetAttributeTypeName)
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, onStartup
void setOrderSetDAO(OrderSetDAO dao)
dao
- The data access object to use@Authorized(value="Manage Order Sets") OrderSet saveOrderSet(OrderSet orderSet) throws APIException
orderSet
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.orderSet
- the OrderSet to saveAPIException
@Authorized(value="Get Order Sets") List<OrderSet> getOrderSets(boolean includeRetired) throws APIException
includeRetired
- Specifies whether retired orders should be included or notAPIException
@Authorized(value="Get Order Sets") OrderSet getOrderSet(Integer orderSetId) throws APIException
orderSetId
- Specifies a saved orderSet id.APIException
@Authorized(value="Get Order Sets") OrderSet getOrderSetByUuid(String orderSetUuid) throws APIException
orderSetUuid
- Specifies a saved orderSet uuid.APIException
@Authorized(value="Manage Order Sets") OrderSet retireOrderSet(OrderSet orderSet, String retireReason) throws APIException
orderSet
- Specifies the OrderSet to be retiredretireReason
- Specifies the reason why the OrderSet has to be retiredAPIException
@Authorized(value="Manage Order Sets") OrderSet unretireOrderSet(OrderSet orderSet) throws APIException
orderSet
- Specifies the OrderSet to be retiredAPIException
@Authorized(value="Get Order Sets") OrderSetMember getOrderSetMemberByUuid(String uuid)
uuid
- @Authorized(value="Get Order Sets") OrderSetAttribute getOrderSetAttributeByUuid(String uuid)
uuid
- specifies the order set attribute uuidOrderSetAttribute
with the given uuid@Authorized(value="Get Order Set Attribute Types") List<OrderSetAttributeType> getAllOrderSetAttributeTypes()
OrderSetAttributeType
s@Authorized(value="Get Order Set Attribute Types") OrderSetAttributeType getOrderSetAttributeType(Integer id)
id
- specifies the set attribute type idOrderSetAttributeType
with the given internal id@Authorized(value="Get Order Set Attribute Types") OrderSetAttributeType getOrderSetAttributeTypeByUuid(String uuid)
uuid
- specifies the order set attribute type uuidOrderSetAttributeType
with the given uuid@Authorized(value="Manage Order Set Attribute Types") OrderSetAttributeType saveOrderSetAttributeType(OrderSetAttributeType orderSetAttributeType)
orderSetAttributeType
- the order set attribute type to save@Authorized(value="Manage Order Set Attribute Types") OrderSetAttributeType retireOrderSetAttributeType(OrderSetAttributeType orderSetAttributeType, String reason)
orderSetAttributeType
- specifies the order set attribute type to be retired@Authorized(value="Manage Order Set Attribute Types") OrderSetAttributeType unretireOrderSetAttributeType(OrderSetAttributeType orderSetAttributeType)
orderSetAttributeType
- the order set attribute type to be un-retired@Authorized(value="Purge Order Set Attribute Types") void purgeOrderSetAttributeType(OrderSetAttributeType orderSetAttributeType)
orderSetAttributeType
- the order set attribute type to be purged@Authorized(value="Get Order Set Attribute Types") OrderSetAttributeType getOrderSetAttributeTypeByName(String orderSetAttributeTypeName)
orderSetAttributeTypeName
- fetches a given order set attribute type by nameOrderSetAttributeType
with the specified nameCopyright © 2024 OpenMRS Inc.. All rights reserved.