public class DrugOrder extends Order implements Serializable
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 |
copy()
Performs a shallow copy of this Order.
|
protected DrugOrder |
copyHelper(DrugOrder target) |
boolean |
equals(Object obj)
Compares two DrugOrder objects for similarity
|
Boolean |
getComplex()
Gets whether this drug is complex
|
Double |
getDose() |
Drug |
getDrug()
Gets the drug
|
Double |
getEquivalentDailyDose() |
String |
getFrequency()
Gets the frequency
|
Boolean |
getPrn()
Returns true/false whether the drug is a "pro re nata" (as needed) drug
|
Integer |
getQuantity()
Gets the quantity
|
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(Boolean complex)
Sets whether this drug is complex
|
void |
setDose(Double dose) |
void |
setDrug(Drug drug)
Sets the drug
|
void |
setEquivalentDailyDose(Double equivalentDailyDose) |
void |
setFrequency(String frequency)
Sets the frequency
|
void |
setPrn(Boolean prn)
Sets the prn
|
void |
setQuantity(Integer quantity)
Sets the quantity
|
void |
setUnits(String units)
Sets the units of this drug order
|
String |
toString() |
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
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateVoided, getVoided, getVoidedBy, getVoidReason, isVoided, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateVoided, setVoided, setVoidedBy, setVoidReason
getUuid, 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
Order.copy()
protected DrugOrder copyHelper(DrugOrder target)
Order.copyHelper(Order)
public boolean equals(Object obj)
public boolean isDrugOrder()
Order
isDrugOrder
in class Order
public String getUnits()
public void setUnits(String units)
units
- public String getFrequency()
public void setFrequency(String frequency)
frequency
- public Boolean getPrn()
public void setPrn(Boolean prn)
prn
- public Boolean getComplex()
public void setComplex(Boolean complex)
complex
- public Integer getQuantity()
public void setQuantity(Integer quantity)
quantity
- public Drug getDrug()
public void setDrug(Drug drug)
drug
- public Double getEquivalentDailyDose()
public void setEquivalentDailyDose(Double equivalentDailyDose)
public void setDose(Double dose)
public Double getDose()
public String toString()
toString
in class Order
Object.toString()
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.