-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trunk 4133 #526
Trunk 4133 #526
Conversation
…handle discontinue orders
@@ -529,4 +529,20 @@ public CareSetting getCareSetting() { | |||
public void setCareSetting(CareSetting careSetting) { | |||
this.careSetting = careSetting; | |||
} | |||
|
|||
/** | |||
* Creates a new order that can be used to discontinue <code>orderToDiscontinue</code>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be:
Creates a discontinuation order for this order, sets the previousOrder and action fields, note that the discontinuation order needs to be saved for the discontinuation to take effect
Add annotations for junit tests. Some extra documentation. Remove unnecessary executeDataset calls in OrderServiceTest Make concept for discontinuation a normal concept, not a numeric Additional assert statements
Made changes based on review comments |
throw new APIException("Concept of previous order and this order should be the same"); | ||
} | ||
|
||
if (previousOrder.getDateStopped() == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you also need to check that it is not expired
Merged at 4e98261 |
Hi,
This is for the addition and implementation of the API methods on https://tickets.openmrs.org/browse/TRUNK-4133 .