Skip to content

Commit

Permalink
Follow up to add javadocs for Order.scheduledDate getter and setter -…
Browse files Browse the repository at this point in the history
… TRUNK-4139
  • Loading branch information
wluyima committed Mar 10, 2014
1 parent e79787a commit 7ab5b33
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
14 changes: 11 additions & 3 deletions api/src/main/java/org/openmrs/Order.java
Expand Up @@ -13,11 +13,11 @@
*/
package org.openmrs;

import java.util.Date;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import java.util.Date;

/**
* Dates should be interpreted as follows: If startDate is null then the order has been going on
* "since the beginning of time" Otherwise the order starts on startDate If discontinued is non-null
Expand Down Expand Up @@ -189,10 +189,18 @@ public void setConcept(Concept concept) {
this.concept = concept;
}

/**
* @return the scheduledDate
* @since 1.10
*/
public Date getScheduledDate() {
return scheduledDate;
}

/**
* @param scheduledDate the date to set
* @since 1.10
*/
public void setScheduledDate(Date scheduledDate) {
this.scheduledDate = scheduledDate;
}
Expand Down Expand Up @@ -564,7 +572,7 @@ public Order cloneForDiscontinuing() {

/**
* Creates an order for revision from this order, sets the previousOrder and action field.
*
*
* @return the newly created order
* @since 1.10
* @should set all the relevant fields
Expand Down
4 changes: 2 additions & 2 deletions api/src/main/java/org/openmrs/TestOrder.java
Expand Up @@ -173,8 +173,8 @@ public Order cloneForRevision() {
newOrder.setAutoExpireDate(this.getAutoExpireDate());
newOrder.setOrderReason(this.getOrderReason());
newOrder.setOrderReasonNonCoded(this.getOrderReasonNonCoded());
newOrder.setScheduledDate(this.getScheduledDate());
newOrder.setSpecimenSource(getSpecimenSource());
newOrder.setScheduledDate(this.getScheduledDate());
newOrder.setSpecimenSource(getSpecimenSource());
newOrder.setLaterality(getLaterality());
newOrder.setClinicalHistory(getClinicalHistory());
newOrder.setFrequency(getFrequency());
Expand Down

0 comments on commit 7ab5b33

Please sign in to comment.