org.openmrs.api
Enum OrderService.ORDER_STATUS

java.lang.Object
  extended by java.lang.Enum<OrderService.ORDER_STATUS>
      extended by org.openmrs.api.OrderService.ORDER_STATUS
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<OrderService.ORDER_STATUS>
Enclosing interface:
OrderService

public static enum OrderService.ORDER_STATUS
extends java.lang.Enum<OrderService.ORDER_STATUS>

The type of status to match on an order. Used in getOrder* methods


Enum Constant Summary
ANY
          All orders match on this status
COMPLETE
          Only orders that the patient has completed
CURRENT
          The patient is considered to be currently on this order
NOTVOIDED
          All orders that have not been voided/deleted
 
Method Summary
static OrderService.ORDER_STATUS valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static OrderService.ORDER_STATUS[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CURRENT

public static final OrderService.ORDER_STATUS CURRENT
The patient is considered to be currently on this order


ANY

public static final OrderService.ORDER_STATUS ANY
All orders match on this status


COMPLETE

public static final OrderService.ORDER_STATUS COMPLETE
Only orders that the patient has completed


NOTVOIDED

public static final OrderService.ORDER_STATUS NOTVOIDED
All orders that have not been voided/deleted

Method Detail

values

public static OrderService.ORDER_STATUS[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (OrderService.ORDER_STATUS c : OrderService.ORDER_STATUS.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static OrderService.ORDER_STATUS valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change