|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openmrs.order.OrderUtil
public class OrderUtil
Contains convenience methods for working with Orders.
| Constructor Summary | |
|---|---|
OrderUtil()
|
|
| Method Summary | |
|---|---|
static void |
discontinueAllOrders(Patient patient,
Concept discontinueReason,
java.util.Date discontinueDate)
Discontinues all current orders for the given patient |
static void |
discontinueDrugSet(Patient patient,
java.lang.String drugSetId,
Concept discontinueReason,
java.util.Date discontinueDate)
Discontinue orders for the given patient with the given drug sets ... |
static java.util.Map<java.lang.String,java.lang.String> |
getDrugSetHeadersByDrugSetIdList(java.lang.String drugSetIds)
Associates the concept id of a drug set to a name of the drug set in the current locale |
static java.util.Map<Concept,java.util.List<DrugOrder>> |
getDrugSetsByConcepts(java.util.List<DrugOrder> drugOrders,
java.util.List<Concept> drugSets)
Splits the drug orders into sublists based on which drug set the order's drug belongs to |
static java.util.Map<java.lang.String,java.util.List<DrugOrder>> |
getDrugSetsByDrugSetIdList(java.util.List<DrugOrder> orderList,
java.lang.String drugSetIdList,
java.lang.String delimiter)
Gets a map of DrugOrders that belong to a DrugSet concept ID |
static void |
voidDrugSet(Patient patient,
java.lang.String drugSetId,
java.lang.String voidReason,
OrderService.ORDER_STATUS status)
Void all DrugOrders for drugs whose concepts are in the given set, and that have the given status. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OrderUtil()
| Method Detail |
|---|
public static void discontinueAllOrders(Patient patient,
Concept discontinueReason,
java.util.Date discontinueDate)
patient
patient - discontinueReason - discontinueDate - OrderService.discontinueOrder(org.openmrs.Order, Concept, Date)
public static void voidDrugSet(Patient patient,
java.lang.String drugSetId,
java.lang.String voidReason,
OrderService.ORDER_STATUS status)
patient - drugSetId - voidReason - status -
public static void discontinueDrugSet(Patient patient,
java.lang.String drugSetId,
Concept discontinueReason,
java.util.Date discontinueDate)
patient - drugSetId - discontinueReason - discontinueDate - public static java.util.Map<java.lang.String,java.lang.String> getDrugSetHeadersByDrugSetIdList(java.lang.String drugSetIds)
drugSetIds - a comma separated list with the concept id of the drug sets
Map of the drug headers for the given drugSetIds
public static java.util.Map<java.lang.String,java.util.List<DrugOrder>> getDrugSetsByDrugSetIdList(java.util.List<DrugOrder> orderList,
java.lang.String drugSetIdList,
java.lang.String delimiter)
orderList - the Drug Order listdrugSetIdList - a 'delimiter' separated list of drug setsdelimiter - the delimiter of drug sets (defaults to a comma if set to null)
public static java.util.Map<Concept,java.util.List<DrugOrder>> getDrugSetsByConcepts(java.util.List<DrugOrder> drugOrders,
java.util.List<Concept> drugSets)
throws APIException
drugOrders - List of drugOrdersdrugSets - List of drugSets concept
APIException
|
OpenMRS-1.7.x | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||