public class Order extends BaseOpenmrsData implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Order.Urgency |
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
creator
Constructor and Description |
---|
Order()
default constructor
|
Order(java.lang.Integer orderId)
constructor with id
|
Modifier and Type | Method and Description |
---|---|
Order |
copy()
Performs a shallow copy of this Order.
|
protected Order |
copyHelper(Order target)
The purpose of this method is to allow subclasses of Order to delegate a portion of their
copy() method back to the superclass, in case the base class implementation changes.
|
java.lang.String |
getAccessionNumber() |
java.util.Date |
getAutoExpireDate() |
Concept |
getConcept() |
java.lang.Boolean |
getDiscontinued() |
User |
getDiscontinuedBy() |
java.util.Date |
getDiscontinuedDate() |
Concept |
getDiscontinuedReason() |
java.lang.String |
getDiscontinuedReasonNonCoded() |
Encounter |
getEncounter() |
java.lang.Integer |
getId() |
java.lang.String |
getInstructions() |
User |
getOrderer() |
java.lang.Integer |
getOrderId() |
OrderType |
getOrderType() |
Patient |
getPatient() |
java.util.Date |
getStartDate() |
Order.Urgency |
getUrgency() |
boolean |
isCurrent() |
boolean |
isCurrent(java.util.Date checkDate)
Convenience method to determine if order is current
|
boolean |
isDiscontinued(java.util.Date checkDate)
Convenience method to determine if order is discontinued at a given time
|
boolean |
isDiscontinuedRightNow() |
boolean |
isDrugOrder()
true/false whether or not this is a drug order overridden in extending class drugOrders.
|
boolean |
isFuture() |
boolean |
isFuture(java.util.Date checkDate) |
void |
setAccessionNumber(java.lang.String accessionNumber) |
void |
setAutoExpireDate(java.util.Date autoExpireDate) |
void |
setConcept(Concept concept) |
void |
setDiscontinued(java.lang.Boolean discontinued) |
void |
setDiscontinuedBy(User discontinuedBy) |
void |
setDiscontinuedDate(java.util.Date discontinuedDate) |
void |
setDiscontinuedReason(Concept discontinuedReason) |
void |
setDiscontinuedReasonNonCoded(java.lang.String discontinuedReasonNonCoded) |
void |
setEncounter(Encounter encounter) |
void |
setId(java.lang.Integer id) |
void |
setInstructions(java.lang.String instructions) |
void |
setOrderer(User orderer) |
void |
setOrderId(java.lang.Integer orderId) |
void |
setOrderType(OrderType orderType) |
void |
setPatient(Patient patient) |
void |
setStartDate(java.util.Date startDate) |
void |
setUrgency(Order.Urgency urgency) |
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 ] . |
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 Order()
public Order(java.lang.Integer orderId)
public Order copy()
protected Order copyHelper(Order target)
target
- an Order that will have the state of this
copied into itpublic boolean isDrugOrder()
public java.util.Date getAutoExpireDate()
public void setAutoExpireDate(java.util.Date autoExpireDate)
autoExpireDate
- The autoExpireDate to set.public Concept getConcept()
public void setConcept(Concept concept)
concept
- The concept to set.public java.lang.Boolean getDiscontinued()
public void setDiscontinued(java.lang.Boolean discontinued)
discontinued
- The discontinued status to set.public User getDiscontinuedBy()
public void setDiscontinuedBy(User discontinuedBy)
discontinuedBy
- The discontinuedBy to set.public java.util.Date getDiscontinuedDate()
public void setDiscontinuedDate(java.util.Date discontinuedDate)
discontinuedDate
- The discontinuedDate to set.public Concept getDiscontinuedReason()
public void setDiscontinuedReason(Concept discontinuedReason)
discontinuedReason
- The discontinuedReason to set.public Encounter getEncounter()
public void setEncounter(Encounter encounter)
encounter
- The encounter to set.public java.lang.String getInstructions()
public void setInstructions(java.lang.String instructions)
instructions
- The instructions to set.public java.lang.String getAccessionNumber()
public void setAccessionNumber(java.lang.String accessionNumber)
accessionNumber
- The accessionNumber to set.public User getOrderer()
public void setOrderer(User orderer)
orderer
- The orderer to set.public java.lang.Integer getOrderId()
public void setOrderId(java.lang.Integer orderId)
orderId
- The orderId to set.public OrderType getOrderType()
public void setOrderType(OrderType orderType)
orderType
- The orderType to set.public java.util.Date getStartDate()
public void setStartDate(java.util.Date startDate)
startDate
- The startDate to set.public java.lang.String getDiscontinuedReasonNonCoded()
public void setDiscontinuedReasonNonCoded(java.lang.String discontinuedReasonNonCoded)
discontinuedReasonNonCoded
- the discontinuedReasonNonCoded to setpublic boolean isCurrent(java.util.Date checkDate)
checkDate
- - the date on which to check order. if null, will use current datepublic boolean isCurrent()
public boolean isFuture(java.util.Date checkDate)
public boolean isFuture()
public boolean isDiscontinued(java.util.Date checkDate)
checkDate
- - the date on which to check order. if null, will use current datepublic boolean isDiscontinuedRightNow()
public Patient getPatient()
public void setPatient(Patient patient)
public java.lang.Integer getId()
getId
in interface OpenmrsObject
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()
toString
in class BaseOpenmrsObject
Object.toString()
public void setId(java.lang.Integer id)
setId
in interface OpenmrsObject
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
public Order.Urgency getUrgency()
public void setUrgency(Order.Urgency urgency)
urgency
- the urgency to setCopyright © 2018 OpenMRS Inc.. All Rights Reserved.