public class DrugOrder extends Order
Order.Action, Order.FulfillerStatus, Order.Urgency
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
creator
Constructor and Description |
---|
DrugOrder()
default constructor
|
DrugOrder(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) |
Boolean |
getAsNeeded()
Returns true/false whether the drug is a "pro re nata" drug
|
String |
getAsNeededCondition() |
String |
getBrandName()
Gets the brandName
|
Boolean |
getDispenseAsWritten() |
Double |
getDose() |
Concept |
getDoseUnits()
Gets the doseUnits of this drug order
|
String |
getDosingInstructions()
Gets the dosingInstructions
|
DosingInstructions |
getDosingInstructionsInstance()
Gets the dosingInstructions instance
|
Class<? extends DosingInstructions> |
getDosingType()
Gets the dosingType
|
Drug |
getDrug()
Gets the drug
|
String |
getDrugNonCoded() |
Integer |
getDuration()
Gets the duration of a Drug Order
|
Concept |
getDurationUnits()
Gets durationUnits of a Drug Order
|
OrderFrequency |
getFrequency()
Gets the frequency
|
Integer |
getNumRefills()
Gets numRefills
|
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() |
boolean |
isNonCodedDrug() |
void |
setAsNeeded(Boolean asNeeded) |
void |
setAsNeededCondition(String asNeededCondition) |
void |
setAutoExpireDateBasedOnDuration()
Sets autoExpireDate based on duration.
|
void |
setBrandName(String brandName)
Sets the brandName
|
void |
setDispenseAsWritten(Boolean dispenseAsWritten) |
void |
setDose(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(String dosingInstructions)
Sets the dosingInstructions
|
void |
setDosingType(Class<? extends DosingInstructions> dosingType)
Sets the dosingType
|
void |
setDrug(Drug drug)
Sets the drug
|
void |
setDrugNonCoded(String drugNonCoded) |
void |
setDuration(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(Integer numRefills)
Sets numRefills
|
void |
setQuantity(Double quantity)
Sets the quantity
|
void |
setQuantityUnits(Concept quantityUnits) |
void |
setRoute(Concept route)
Sets the route
|
String |
toString()
Returns a string equal to the value of: ClassName{hashCode=...,
uuid=...}
|
cloneForRevisionHelper, copyHelper, getAccessionNumber, getAction, getAutoExpireDate, getCareSetting, getCommentToFulfiller, getConcept, getDateActivated, getDateStopped, getEffectiveStartDate, getEffectiveStopDate, getEncounter, getFormFieldNamespace, getFormFieldPath, getFormNamespaceAndPath, getFulfillerComment, getFulfillerStatus, getId, getInstructions, getOrderer, getOrderGroup, getOrderId, getOrderNumber, getOrderReason, getOrderReasonNonCoded, getOrderType, getPatient, getPreviousOrder, getScheduledDate, getSortWeight, getUrgency, isActivated, isActivated, isActive, isActive, isDiscontinued, isDiscontinuedRightNow, isExpired, isExpired, isStarted, isStarted, isType, setAccessionNumber, setAction, setAutoExpireDate, setCareSetting, setCommentToFulfiller, setConcept, setDateActivated, setEncounter, setFormField, setFormNamespaceAndPath, setFulfillerComment, setFulfillerStatus, setId, setInstructions, setOrderer, setOrderGroup, setOrderId, setOrderReason, setOrderReasonNonCoded, setOrderType, setPatient, setPreviousOrder, setScheduledDate, setSortWeight, setUrgency
addAttribute, getActiveAttributes, getActiveAttributes, getAttributes, setAttribute, setAttributes
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(Integer orderId)
public DrugOrder copy()
Order
copy
in class Order
Should copy all drug order fields
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 Boolean getAsNeeded()
public void setAsNeeded(Boolean asNeeded)
asNeeded
- the value to setpublic Double getQuantity()
public void setQuantity(Double quantity)
quantity
- public Concept getQuantityUnits()
public void setQuantityUnits(Concept quantityUnits)
quantityUnits
- public Drug getDrug()
public void setDrug(Drug drug)
drug
- public String getAsNeededCondition()
public void setAsNeededCondition(String asNeededCondition)
asNeededCondition
- the asNeededCondition to setpublic Concept getRoute()
public void setRoute(Concept route)
route
- public void setDose(Double dose)
public Double getDose()
public Class<? extends DosingInstructions> getDosingType()
public void setDosingType(Class<? extends DosingInstructions> dosingType)
dosingType
- the dosingType to setpublic DosingInstructions getDosingInstructionsInstance()
public Integer getNumRefills()
public void setNumRefills(Integer numRefills)
numRefills
- the numRefills to setpublic void setDosingInstructions(String dosingInstructions)
dosingInstructions
- to setpublic String getDosingInstructions()
public Integer getDuration()
public void setDuration(Integer duration)
duration
- to setpublic Concept getDurationUnits()
public void setDurationUnits(Concept durationUnits)
durationUnits
- public String getBrandName()
public void setBrandName(String brandName)
brandName
- the brandName to set topublic Boolean getDispenseAsWritten()
public void setDispenseAsWritten(Boolean dispenseAsWritten)
dispenseAsWritten
- public DrugOrder cloneForDiscontinuing()
Order
cloneForDiscontinuing
in class Order
Should set all the relevant fields
public DrugOrder cloneForRevision()
cloneForRevision
in class Order
protected DrugOrder cloneForRevisionHelper(DrugOrder target)
Order.cloneForRevisionHelper(Order)
public void setAutoExpireDateBasedOnDuration()
public String toString()
BaseOpenmrsObject
ClassName{hashCode=..., uuid=...}
If the uuid
field is null
, it returns:
ClassName{hashCode=...}Should include hashCode if uuid is null Should include uuid if not null
toString
in class Order
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
public String getDrugNonCoded()
public void setDrugNonCoded(String drugNonCoded)
public boolean isNonCodedDrug()
Copyright © 2024 OpenMRS Inc.. All rights reserved.