Skip to content

Commit

Permalink
formatting DrugOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
dkayiwa committed Dec 18, 2013
1 parent 3de1cb6 commit ced8f8d
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions api/src/main/java/org/openmrs/DrugOrder.java
Expand Up @@ -53,8 +53,8 @@ public enum DosingType {
private Integer numRefills;

private String administrationInstructions;

private String dosingInstructions;
private String dosingInstructions;

// Constructors

Expand Down Expand Up @@ -88,7 +88,7 @@ protected DrugOrder copyHelper(DrugOrder target) {
target.quantity = getQuantity();
target.drug = getDrug();
target.dosingType = getDosingType();
target.dosingInstructions = getDosingInstructions();
target.dosingInstructions = getDosingInstructions();
return target;
}

Expand Down Expand Up @@ -317,26 +317,25 @@ public String getAdministrationInstructions() {
public void setAdministrationInstructions(String administrationInstructions) {
this.administrationInstructions = administrationInstructions;
}

/**
* Sets the dosingInstructions
*
* @param dosingInstructions to set
* @since 1.10
*/
public void setDosingInstructions(String dosingInstructions) {
this.dosingInstructions = dosingInstructions;
}

/**
* Gets the dosingInstructions
* @since 1.10
*/
public String getDosingInstructions() {
return this.dosingInstructions;
}



/**
* Sets the dosingInstructions
*
* @param dosingInstructions to set
* @since 1.10
*/
public void setDosingInstructions(String dosingInstructions) {
this.dosingInstructions = dosingInstructions;
}

/**
* Gets the dosingInstructions
* @since 1.10
*/
public String getDosingInstructions() {
return this.dosingInstructions;
}

public String toString() {
return "DrugOrder(" + getDose() + getUnits() + " of " + (getDrug() != null ? getDrug().getName() : "[no drug]")
+ " from " + getStartDate() + " to " + (getDiscontinued() ? getDiscontinuedDate() : getAutoExpireDate())
Expand Down

0 comments on commit ced8f8d

Please sign in to comment.