Skip to content
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

Closed
wants to merge 6 commits into from
Closed

Trunk 4133 #526

wants to merge 6 commits into from

Conversation

vinayvenu
Copy link
Member

Hi,

This is for the addition and implementation of the API methods on https://tickets.openmrs.org/browse/TRUNK-4133 .

@@ -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>.
Copy link
Member

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
@vinayvenu
Copy link
Member Author

Made changes based on review comments

throw new APIException("Concept of previous order and this order should be the same");
}

if (previousOrder.getDateStopped() == null) {
Copy link
Member

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

@wluyima
Copy link
Member

wluyima commented Jan 29, 2014

Merged at 4e98261

@wluyima wluyima closed this Jan 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants