Skip to content

Commit

Permalink
Merge pull request #371 from FEMR/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
Kevin Zurek committed Feb 1, 2015
2 parents 704e9c4 + 1368d5a commit 0ca6a4e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/femr/ui/controllers/PharmaciesController.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package femr.ui.controllers;

import com.google.gson.Gson;
import com.google.inject.Inject;
import femr.business.services.core.IEncounterService;
import femr.business.services.core.IMedicationService;
Expand Down Expand Up @@ -273,11 +274,11 @@ public Result editPost(int id) {
*/
public Result typeaheadJSONGet() {

ServiceResponse<String> medicationServiceResponse = medicationService.getMedicationNames();
ServiceResponse<List<String>> medicationServiceResponse = medicationService.findAllMedications();
if (medicationServiceResponse.hasErrors()) {
return ok("");
}

return ok(medicationServiceResponse.getResponseObject());
return ok(new Gson().toJson(medicationServiceResponse.getResponseObject()));
}
}

0 comments on commit 0ca6a4e

Please sign in to comment.