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

RESTWS-737: Remove redundant usages of @PropertySetter for metadata f… #403

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
RESTWS-737: Remove redundant usages of @PropertySetter for metadata f…
…ields
  • Loading branch information
ODORA0 committed Aug 18, 2019
commit ae61f0aa15dc9db7a3b34f9366f2d82b691d961d
Original file line number Diff line number Diff line change
@@ -130,7 +130,6 @@ public String getDisplayString(Allergy allergy) {
* @param allergen
* @param value
*/
@PropertySetter("allergen")
public static void setAllergen(Allergy allergy, Object value) {
allergy.setAllergen(Context.getConceptService().getConceptByUuid((String) value));
}
Original file line number Diff line number Diff line change
@@ -366,7 +366,6 @@ public static Object getGroupMembers(Obs obs) throws ConversionException {
* @param obs
* @param value
*/
@PropertySetter("concept")
public static void setConcept(Obs obs, Object value) {
obs.setConcept(Context.getConceptService().getConceptByUuid((String) value));
}
Original file line number Diff line number Diff line change
@@ -122,7 +122,6 @@ public void setIdentifierType(PatientIdentifier instance, PatientIdentifierType
* @param location
* @throws org.openmrs.module.webservices.rest.web.response.ResourceDoesNotSupportOperationException
*/
@PropertySetter("location")
public void setLocation(PatientIdentifier instance, Location location) {
instance.setLocation(Context.getLocationService().getLocationByUuid(location.getUuid()));
}
Original file line number Diff line number Diff line change
@@ -131,7 +131,6 @@ public String getDisplayString(Problem problem) {
* @param value
*/

@PropertySetter("problem")
public static void setProblem(Problem problem, Object value) {
problem.setProblem(Context.getConceptService().getConceptByUuid((String) value));
}