| 
 |   | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
@Transactional public interface ActiveListService
Contains generic methods pertaining to Active Lists in the system
Context, 
Patient| Method Summary | ||
|---|---|---|
| 
 | 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 | |
| 
 | 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. | |
|  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 | |
| Methods inherited from interface org.openmrs.api.OpenmrsService | 
|---|
| onShutdown, onStartup | 
| Method Detail | 
|---|
void 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 Allergy
APIException
@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 List
APIException
@Transactional(readOnly=true)
ActiveListItem getActiveListItemByUuid(java.lang.String uuid)
                                       throws APIException
uuid - unique identifier
APIException
ActiveListItem saveActiveListItem(ActiveListItem item)
                                  throws APIException
item - 
APIException
ActiveListItem removeActiveListItem(ActiveListItem item,
                                    java.util.Date endDate)
                                    throws APIException
item - 
APIException
ActiveListItem voidActiveListItem(ActiveListItem item,
                                  java.lang.String reason)
                                  throws APIException
item - 
APIException| 
 | OpenMRS-1.7.x | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||