|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openmrs.BaseOpenmrsObject org.openmrs.BaseOpenmrsData org.openmrs.Order org.openmrs.DrugOrder
public class DrugOrder
DrugOrder
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.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 |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public DrugOrder()
public DrugOrder(java.lang.Integer orderId)
Method Detail |
---|
public DrugOrder copy()
Order
copy
in class Order
Order.copy()
protected DrugOrder copyHelper(DrugOrder target)
Order.copyHelper(Order)
public boolean equals(java.lang.Object obj)
equals
in class Order
obj
-
public int hashCode()
hashCode
in class Order
public boolean isDrugOrder()
Order
isDrugOrder
in class Order
public java.lang.String getUnits()
public void setUnits(java.lang.String units)
units
- public java.lang.String getFrequency()
public void setFrequency(java.lang.String frequency)
frequency
- public java.lang.Boolean getPrn()
public void setPrn(java.lang.Boolean prn)
prn
- public java.lang.Boolean getComplex()
public void setComplex(java.lang.Boolean complex)
complex
- public java.lang.Integer getQuantity()
public void setQuantity(java.lang.Integer quantity)
quantity
- public Drug getDrug()
public void setDrug(Drug drug)
drug
- public java.lang.Double getEquivalentDailyDose()
public void setEquivalentDailyDose(java.lang.Double equivalentDailyDose)
public void setDose(java.lang.Double dose)
public java.lang.Double getDose()
public java.lang.String toString()
toString
in class Order
Object.toString()
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |