public class Order extends BaseOpenmrsData implements Serializable
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
creator
Constructor and Description |
---|
Order()
default constructor
|
Order(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.
|
boolean |
equals(Object obj)
Compares two objects for similarity
|
String |
getAccessionNumber() |
Date |
getAutoExpireDate() |
Concept |
getConcept() |
Boolean |
getDiscontinued() |
User |
getDiscontinuedBy() |
Date |
getDiscontinuedDate() |
Concept |
getDiscontinuedReason() |
String |
getDiscontinuedReasonNonCoded() |
Encounter |
getEncounter() |
Integer |
getId() |
String |
getInstructions() |
User |
getOrderer() |
Integer |
getOrderId() |
OrderType |
getOrderType() |
Patient |
getPatient() |
Date |
getStartDate() |
int |
hashCode() |
boolean |
isCurrent() |
boolean |
isCurrent(Date checkDate)
Convenience method to determine if order is current
|
boolean |
isDiscontinued(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(Date checkDate) |
void |
setAccessionNumber(String accessionNumber) |
void |
setAutoExpireDate(Date autoExpireDate) |
void |
setConcept(Concept concept) |
void |
setDiscontinued(Boolean discontinued) |
void |
setDiscontinuedBy(User discontinuedBy) |
void |
setDiscontinuedDate(Date discontinuedDate) |
void |
setDiscontinuedReason(Concept discontinuedReason) |
void |
setDiscontinuedReasonNonCoded(String discontinuedReasonNonCoded) |
void |
setEncounter(Encounter encounter) |
void |
setId(Integer id) |
void |
setInstructions(String instructions) |
void |
setOrderer(User orderer) |
void |
setOrderId(Integer orderId) |
void |
setOrderType(OrderType orderType) |
void |
setPatient(Patient patient) |
void |
setStartDate(Date startDate) |
String |
toString() |
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 Order()
public Order(Integer orderId)
public Order copy()
protected Order copyHelper(Order target)
target
- an Order that will have the state of this
copied into itpublic boolean equals(Object obj)
public boolean isDrugOrder()
public Date getAutoExpireDate()
public void setAutoExpireDate(Date autoExpireDate)
autoExpireDate
- The autoExpireDate to set.public Concept getConcept()
public void setConcept(Concept concept)
concept
- The concept to set.public Boolean getDiscontinued()
public void setDiscontinued(Boolean discontinued)
discontinued
- The discontinued status to set.public User getDiscontinuedBy()
public void setDiscontinuedBy(User discontinuedBy)
discontinuedBy
- The discontinuedBy to set.public Date getDiscontinuedDate()
public void setDiscontinuedDate(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 String getInstructions()
public void setInstructions(String instructions)
instructions
- The instructions to set.public String getAccessionNumber()
public void setAccessionNumber(String accessionNumber)
accessionNumber
- The accessionNumber to set.public User getOrderer()
public void setOrderer(User orderer)
orderer
- The orderer to set.public Integer getOrderId()
public void setOrderId(Integer orderId)
orderId
- The orderId to set.public OrderType getOrderType()
public void setOrderType(OrderType orderType)
orderType
- The orderType to set.public Date getStartDate()
public void setStartDate(Date startDate)
startDate
- The startDate to set.public String getDiscontinuedReasonNonCoded()
public void setDiscontinuedReasonNonCoded(String discontinuedReasonNonCoded)
discontinuedReasonNonCoded
- the discontinuedReasonNonCoded to setpublic boolean isCurrent(Date checkDate)
checkDate
- - the date on which to check order. if null, will use current datepublic boolean isCurrent()
public boolean isFuture(Date checkDate)
public boolean isFuture()
public boolean isDiscontinued(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 Integer getId()
getId
in interface OpenmrsObject
public String toString()
toString
in class Object
Object.toString()
public void setId(Integer id)
setId
in interface OpenmrsObject
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.