org.openmrs
Class DrugOrder

java.lang.Object
  extended by org.openmrs.BaseOpenmrsObject
      extended by org.openmrs.BaseOpenmrsData
          extended by org.openmrs.Order
              extended by org.openmrs.DrugOrder
All Implemented Interfaces:
java.io.Serializable, Auditable, OpenmrsData, OpenmrsObject, Voidable

public class DrugOrder
extends Order
implements java.io.Serializable

DrugOrder

Version:
1.0
See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Fields inherited from class org.openmrs.BaseOpenmrsData
creator
 
Constructor Summary
DrugOrder()
          default constructor
DrugOrder(java.lang.Integer orderId)
          constructor with id
 
Method Summary
 DrugOrder copy()
          Performs a shallow copy of this Order.
protected  DrugOrder copyHelper(DrugOrder target)
           
 boolean equals(java.lang.Object obj)
          Compares two DrugOrder objects for similarity
 java.lang.Boolean getComplex()
          Gets whether this drug is complex
 java.lang.Double getDose()
           
 Drug getDrug()
          Gets the drug
 java.lang.Double getEquivalentDailyDose()
           
 java.lang.String getFrequency()
          Gets the frequency
 java.lang.Boolean getPrn()
          Returns true/false whether the drug is a "pro re nata" (as needed) drug
 java.lang.Integer getQuantity()
          Gets the quantity
 java.lang.String getUnits()
          Gets the units of this drug order
 int hashCode()
           
 boolean isDrugOrder()
          true/false whether or not this is a drug order overridden in extending class drugOrders.
 void setComplex(java.lang.Boolean complex)
          Sets whether this drug is complex
 void setDose(java.lang.Double dose)
           
 void setDrug(Drug drug)
          Sets the drug
 void setEquivalentDailyDose(java.lang.Double equivalentDailyDose)
           
 void setFrequency(java.lang.String frequency)
          Sets the frequency
 void setPrn(java.lang.Boolean prn)
          Sets the prn
 void setQuantity(java.lang.Integer quantity)
          Sets the quantity
 void setUnits(java.lang.String units)
          Sets the units of this drug order
 java.lang.String toString()
           
 
Methods inherited from class org.openmrs.Order
copyHelper, getAccessionNumber, getAutoExpireDate, getConcept, getDiscontinued, getDiscontinuedBy, getDiscontinuedDate, getDiscontinuedReason, getDiscontinuedReasonNonCoded, getEncounter, getId, getInstructions, getOrderer, getOrderId, getOrderType, getPatient, getStartDate, isCurrent, isCurrent, isDiscontinued, isDiscontinuedRightNow, isFuture, isFuture, setAccessionNumber, setAutoExpireDate, setConcept, setDiscontinued, setDiscontinuedBy, setDiscontinuedDate, setDiscontinuedReason, setDiscontinuedReasonNonCoded, setEncounter, setId, setInstructions, setOrderer, setOrderId, setOrderType, setPatient, setStartDate
 
Methods inherited from class org.openmrs.BaseOpenmrsData
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateVoided, getVoided, getVoidedBy, getVoidReason, isVoided, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateVoided, setVoided, setVoidedBy, setVoidReason
 
Methods inherited from class org.openmrs.BaseOpenmrsObject
getUuid, setUuid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openmrs.OpenmrsObject
getUuid, setUuid
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

DrugOrder

public DrugOrder()
default constructor


DrugOrder

public DrugOrder(java.lang.Integer orderId)
constructor with id

Method Detail

copy

public DrugOrder copy()
Description copied from class: Order
Performs a shallow copy of this Order. Does NOT copy orderId.

Overrides:
copy in class Order
Returns:
a shallow copy of this Order
See Also:
Order.copy()

copyHelper

protected DrugOrder copyHelper(DrugOrder target)
See Also:
Order.copyHelper(Order)

equals

public boolean equals(java.lang.Object obj)
Compares two DrugOrder objects for similarity

Overrides:
equals in class Order
Parameters:
obj -
Returns:
boolean true/false whether or not they are the same objects

hashCode

public int hashCode()
Overrides:
hashCode in class Order

isDrugOrder

public boolean isDrugOrder()
Description copied from class: Order
true/false whether or not this is a drug order overridden in extending class drugOrders.

Overrides:
isDrugOrder in class Order

getUnits

public java.lang.String getUnits()
Gets the units of this drug order

Returns:
units

setUnits

public void setUnits(java.lang.String units)
Sets the units of this drug order

Parameters:
units -

getFrequency

public java.lang.String getFrequency()
Gets the frequency

Returns:
frequency

setFrequency

public void setFrequency(java.lang.String frequency)
Sets the frequency

Parameters:
frequency -

getPrn

public java.lang.Boolean getPrn()
Returns true/false whether the drug is a "pro re nata" (as needed) drug

Returns:
Boolean

setPrn

public void setPrn(java.lang.Boolean prn)
Sets the prn

Parameters:
prn -

getComplex

public java.lang.Boolean getComplex()
Gets whether this drug is complex

Returns:
Boolean

setComplex

public void setComplex(java.lang.Boolean complex)
Sets whether this drug is complex

Parameters:
complex -

getQuantity

public java.lang.Integer getQuantity()
Gets the quantity

Returns:
quantity

setQuantity

public void setQuantity(java.lang.Integer quantity)
Sets the quantity

Parameters:
quantity -

getDrug

public Drug getDrug()
Gets the drug

Returns:
drug

setDrug

public void setDrug(Drug drug)
Sets the drug

Parameters:
drug -

getEquivalentDailyDose

public java.lang.Double getEquivalentDailyDose()

setEquivalentDailyDose

public void setEquivalentDailyDose(java.lang.Double equivalentDailyDose)

setDose

public void setDose(java.lang.Double dose)

getDose

public java.lang.Double getDose()

toString

public java.lang.String toString()
Overrides:
toString in class Order
See Also:
Object.toString()

OpenMRS-1.7.x

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