@Transactional public interface ActiveListService extends OpenmrsService
| Modifier and Type | Method and Description | 
|---|---|
<T extends ActiveListItem> | 
getActiveListItem(java.lang.Class<T> clazz,
                 java.lang.Integer activeListItemId)
Returns the ActiveListItem 
 | 
ActiveListItem | 
getActiveListItemByUuid(java.lang.String uuid)
Return the ActiveList by the UUID 
 | 
<T extends ActiveListItem> | 
getActiveListItems(java.lang.Class<T> clazz,
                  Person p,
                  ActiveListType type)
Returns a sorted set of active list items from a class that extends ActiveListItem 
 | 
java.util.List<ActiveListItem> | 
getActiveListItems(Person p,
                  ActiveListType type)
Returns a sorted set of active list items based on the type given. 
 | 
void | 
purgeActiveListItem(ActiveListItem item)
Completely removes an ActiveListItem from the database (not reversible) 
 | 
ActiveListItem | 
removeActiveListItem(ActiveListItem item,
                    java.util.Date endDate)
Sets the Active List Item as inactive by setting the end date to today, if null 
 | 
ActiveListItem | 
saveActiveListItem(ActiveListItem item)
Save or update an Active List Item 
 | 
void | 
setActiveListDAO(ActiveListDAO dao)
Sets the DAO for this service. 
 | 
ActiveListItem | 
voidActiveListItem(ActiveListItem item,
                  java.lang.String reason)
Voids the Active List Item 
 | 
onShutdown, onStartupvoid setActiveListDAO(ActiveListDAO dao)
dao - DAO for this service@Transactional(readOnly=true) java.util.List<ActiveListItem> getActiveListItems(Person p, ActiveListType type) throws APIException
p - the Persontype - Problem or AllergyAPIException@Transactional(readOnly=true) <T extends ActiveListItem> java.util.List<T> getActiveListItems(java.lang.Class<T> clazz, Person p, ActiveListType type) throws APIException
clazz - extends ActiveListItemp - the Persontype - APIException@Transactional(readOnly=true) <T extends ActiveListItem> T getActiveListItem(java.lang.Class<T> clazz, java.lang.Integer activeListItemId) throws APIException
clazz - extends ActiveListItemactiveListItemId - the unique ID of the Active ListAPIException@Transactional(readOnly=true) ActiveListItem getActiveListItemByUuid(java.lang.String uuid) throws APIException
uuid - unique identifierAPIExceptionActiveListItem saveActiveListItem(ActiveListItem item) throws APIException
item - APIExceptionActiveListItem removeActiveListItem(ActiveListItem item, java.util.Date endDate) throws APIException
item - APIExceptionActiveListItem voidActiveListItem(ActiveListItem item, java.lang.String reason) throws APIException
item - APIExceptionvoid purgeActiveListItem(ActiveListItem item) throws APIException
item - the ActiveListItem to completely remove from the databaseAPIExceptionCopyright © 2018 OpenMRS Inc.. All Rights Reserved.