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

EA-179: Fix Locale issue while saving Medication #218

Merged
merged 2 commits into from
Dec 8, 2023

Conversation

SanoferSameera
Copy link
Contributor

@SanoferSameera SanoferSameera commented Dec 8, 2023

return null;
}

public Concept getDispenseUnitsConceptByName(String conceptName) {
Copy link
Member

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?

Copy link
Member

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.

Copy link
Contributor Author

@SanoferSameera SanoferSameera Dec 8, 2023

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

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@SanoferSameera SanoferSameera Dec 8, 2023

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

@dkayiwa dkayiwa merged commit 89b2b9b into openmrs:master Dec 8, 2023
1 check passed
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