Skip to content

Conversation

Kalanzifrank1
Copy link

RESTWS-760 Order resource does not include drug strength
https://openmrs.atlassian.net/browse/RESTWS-760

Description of what I changed

changed the way the drug property was added from d.addProperty("drug", Representation.REF) to d.addProperty("drug", Representation.DEFAULT) in the DrugOrderSubclassHandler1_10 class

Added unit test in the DrugOrderSubclassHandler1_10Test2 class

import org.openmrs.Order;
import org.openmrs.OrderType;

import static org.junit.Assert.*;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We generally dont recommend wildcards. Have a look at the conventions at https://openmrs.atlassian.net/wiki/x/tL_EAQ

import org.springframework.beans.factory.annotation.Autowired;
import org.junit.Before;
import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.is;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import org.openmrs.module.webservices.rest.web.resource.impl.NeedsPaging;
import org.openmrs.module.webservices.rest.web.response.ResourceDoesNotSupportOperationException;
import org.openmrs.module.webservices.rest.web.v1_0.resource.openmrs1_8.DrugOrderSubclassHandler1_8;
//import org.openmrs.module.webservices.rest.web.representation.SimpleObject;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
//import org.openmrs.module.webservices.rest.web.representation.SimpleObject;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants