-
Notifications
You must be signed in to change notification settings - Fork 143
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
EA-179: Fix Locale issue while saving Medication #218
Conversation
return null; | ||
} | ||
|
||
public Concept getDispenseUnitsConceptByName(String conceptName) { |
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.
Is there any reason why you did not call this getQuantityUnits
?
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.
Since the API method we are setting calls it quantity units, when you called it dispense units, i thought you were using it for something else.
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.
No specific reason. I choose name dispense units
because we are making use of getDrugDispensingUnits
from orderservice. If u want this method called as getQuantityUnits
, I can change it.
import java.util.Locale; | ||
|
||
import static org.hamcrest.core.Is.is; | ||
import static org.junit.Assert.assertNull; | ||
import static org.junit.Assert.assertThat; | ||
import static org.junit.Assert.*; |
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.
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.
Thanks for pointing out. Done. replaced with single class imports
https://openmrs.atlassian.net/jira/software/c/projects/EA/issues/EA-179