public class DrugOrder extends Order implements java.io.Serializable
Order.Urgency
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
creator
Constructor and Description |
---|
DrugOrder()
default constructor
|
DrugOrder(java.lang.Integer orderId)
constructor with id
|
Modifier and Type | Method and Description |
---|---|
DrugOrder |
copy()
Performs a shallow copy of this Order.
|
protected DrugOrder |
copyHelper(DrugOrder target) |
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
|
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()
Returns a string consisting of the name of the class of which the object is an instance and
the
uuid field surrounded by [ and ] . |
copyHelper, getAccessionNumber, getAutoExpireDate, getConcept, getDiscontinued, getDiscontinuedBy, getDiscontinuedDate, getDiscontinuedReason, getDiscontinuedReasonNonCoded, getEncounter, getId, getInstructions, getOrderer, getOrderId, getOrderType, getPatient, getStartDate, getUrgency, isCurrent, isCurrent, isDiscontinued, isDiscontinuedRightNow, isFuture, isFuture, setAccessionNumber, setAutoExpireDate, setConcept, setDiscontinued, setDiscontinuedBy, setDiscontinuedDate, setDiscontinuedReason, setDiscontinuedReasonNonCoded, setEncounter, setId, setInstructions, setOrderer, setOrderId, setOrderType, setPatient, setStartDate, setUrgency
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateVoided, getVoided, getVoidedBy, getVoidReason, isVoided, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateVoided, setVoided, setVoidedBy, setVoidReason
equals, getUuid, hashCode, setUuid
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getUuid, setUuid
public static final long serialVersionUID
public DrugOrder()
public DrugOrder(java.lang.Integer orderId)
public DrugOrder copy()
Order
copy
in class Order
Order.copy()
protected DrugOrder copyHelper(DrugOrder target)
Order.copyHelper(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()
BaseOpenmrsObject
uuid
field surrounded by [
and ]
. In other words,
this method returns a string equal to the value of: getClass().getName() + '[' + uuid + ']'
If the uuid
field is null
, it delegates to
Object.toString()
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.