public class DrugOrder extends Order implements java.io.Serializable
Order.Action, 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 |
cloneForDiscontinuing()
Creates a discontinuation order for this order, sets the previousOrder and action fields,
note that the discontinuation order needs to be saved for the discontinuation to take effect
|
DrugOrder |
cloneForRevision()
Creates a DrugOrder for revision from this order, sets the previousOrder, action field and
other drug order fields.
|
protected DrugOrder |
cloneForRevisionHelper(DrugOrder target) |
DrugOrder |
copy()
Performs a shallow copy of this Order.
|
protected DrugOrder |
copyHelper(DrugOrder target) |
java.lang.Boolean |
getAsNeeded()
Returns true/false whether the drug is a "pro re nata" drug
|
java.lang.String |
getAsNeededCondition() |
java.lang.String |
getBrandName()
Gets the brandName
|
java.lang.Boolean |
getDispenseAsWritten() |
java.lang.Double |
getDose() |
Concept |
getDoseUnits()
Gets the doseUnits of this drug order
|
java.lang.String |
getDosingInstructions()
Gets the dosingInstructions
|
DosingInstructions |
getDosingInstructionsInstance()
Gets the dosingInstructions instance
|
java.lang.Class<? extends DosingInstructions> |
getDosingType()
Gets the dosingType
|
Drug |
getDrug()
Gets the drug
|
java.lang.Integer |
getDuration()
Gets the duration of a Drug Order
|
Concept |
getDurationUnits()
Gets durationUnits of a Drug Order
|
OrderFrequency |
getFrequency()
Gets the frequency
|
java.lang.Integer |
getNumRefills()
Gets numRefills
|
java.lang.Double |
getQuantity()
Gets the quantity
|
Concept |
getQuantityUnits() |
Concept |
getRoute()
Gets the route
|
boolean |
hasSameOrderableAs(Order otherOrder)
Checks whether orderable of this drug order is same as other order
|
boolean |
isDrugOrder() |
void |
setAsNeeded(java.lang.Boolean asNeeded) |
void |
setAsNeededCondition(java.lang.String asNeededCondition) |
void |
setAutoExpireDateBasedOnDuration()
Sets autoExpireDate based on duration.
|
void |
setBrandName(java.lang.String brandName)
Sets the brandName
|
void |
setDispenseAsWritten(java.lang.Boolean dispenseAsWritten) |
void |
setDose(java.lang.Double dose) |
void |
setDoseUnits(Concept doseUnits)
Sets the doseUnits of this drug order
|
void |
setDosing(DosingInstructions di)
Set dosing instructions to drug order
|
void |
setDosingInstructions(java.lang.String dosingInstructions)
Sets the dosingInstructions
|
void |
setDosingType(java.lang.Class<? extends DosingInstructions> dosingType)
Sets the dosingType
|
void |
setDrug(Drug drug)
Sets the drug
|
void |
setDuration(java.lang.Integer duration)
Sets the duration of a Drug Order
|
void |
setDurationUnits(Concept durationUnits)
Sets the durationUnits of a Drug Order
|
void |
setFrequency(OrderFrequency frequency)
Sets the frequency
|
void |
setNumRefills(java.lang.Integer numRefills)
Sets numRefills
|
void |
setQuantity(java.lang.Double quantity)
Sets the quantity
|
void |
setQuantityUnits(Concept quantityUnits) |
void |
setRoute(Concept route)
Sets the route
|
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 ] . |
cloneForRevisionHelper, copyHelper, getAccessionNumber, getAction, getAutoExpireDate, getCareSetting, getCommentToFulfiller, getConcept, getDateActivated, getDateStopped, getEffectiveStartDate, getEffectiveStopDate, getEncounter, getId, getInstructions, getOrderer, getOrderId, getOrderNumber, getOrderReason, getOrderReasonNonCoded, getOrderType, getPatient, getPreviousOrder, getScheduledDate, getUrgency, isActive, isActive, isCurrent, isCurrent, isDiscontinued, isDiscontinuedRightNow, isExpired, isExpired, isFuture, isFuture, isStarted, isStarted, isType, setAccessionNumber, setAction, setAutoExpireDate, setCareSetting, setCommentToFulfiller, setConcept, setDateActivated, setEncounter, setId, setInstructions, setOrderer, setOrderId, setOrderReason, setOrderReasonNonCoded, setOrderType, setPatient, setPreviousOrder, setScheduledDate, 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()
public Concept getDoseUnits()
public void setDoseUnits(Concept doseUnits)
doseUnits
- public OrderFrequency getFrequency()
public void setFrequency(OrderFrequency frequency)
frequency
- public java.lang.Boolean getAsNeeded()
public void setAsNeeded(java.lang.Boolean asNeeded)
asNeeded the
- value to setpublic java.lang.Double getQuantity()
public void setQuantity(java.lang.Double quantity)
quantity
- public Concept getQuantityUnits()
public void setQuantityUnits(Concept quantityUnits)
quantityUnits
- public Drug getDrug()
public void setDrug(Drug drug)
drug
- public java.lang.String getAsNeededCondition()
public void setAsNeededCondition(java.lang.String asNeededCondition)
asNeededCondition
- the asNeededCondition to setpublic Concept getRoute()
public void setRoute(Concept route)
route
- public void setDose(java.lang.Double dose)
public java.lang.Double getDose()
public java.lang.Class<? extends DosingInstructions> getDosingType()
public void setDosingType(java.lang.Class<? extends DosingInstructions> dosingType)
dosingType
- the dosingType to setpublic DosingInstructions getDosingInstructionsInstance()
public java.lang.Integer getNumRefills()
public void setNumRefills(java.lang.Integer numRefills)
numRefills
- the numRefills to setpublic void setDosingInstructions(java.lang.String dosingInstructions)
dosingInstructions
- to setpublic java.lang.String getDosingInstructions()
public java.lang.Integer getDuration()
public void setDuration(java.lang.Integer duration)
duration
- to setpublic Concept getDurationUnits()
public void setDurationUnits(Concept durationUnits)
durationUnits
- public java.lang.String getBrandName()
public void setBrandName(java.lang.String brandName)
brandName
- the brandName to set topublic java.lang.Boolean getDispenseAsWritten()
public void setDispenseAsWritten(java.lang.Boolean dispenseAsWritten)
dispenseAsWritten
- public DrugOrder cloneForDiscontinuing()
Order
cloneForDiscontinuing
in class Order
Order.cloneForDiscontinuing()
public DrugOrder cloneForRevision()
cloneForRevision
in class Order
protected DrugOrder cloneForRevisionHelper(DrugOrder target)
Order.cloneForRevisionHelper(Order)
public void setAutoExpireDateBasedOnDuration()
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()
public void setDosing(DosingInstructions di)
di
- dosing instruction object to fetch datapublic boolean hasSameOrderableAs(Order otherOrder)
hasSameOrderableAs
in class Order
otherOrder
- the other order to match onfor overridden behaviour
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.