diff --git a/omod/src/main/java/org/openmrs/module/registrationapp/fragment/controller/RegisterPatientFragmentController.java b/omod/src/main/java/org/openmrs/module/registrationapp/fragment/controller/RegisterPatientFragmentController.java index cc9b7f57..8f90c416 100644 --- a/omod/src/main/java/org/openmrs/module/registrationapp/fragment/controller/RegisterPatientFragmentController.java +++ b/omod/src/main/java/org/openmrs/module/registrationapp/fragment/controller/RegisterPatientFragmentController.java @@ -99,8 +99,8 @@ public void setObsValue(String[] obsValues) { public FragmentActionResult importMpiPatient(@RequestParam("mpiPersonId") String personId, @SpringBean("registrationCoreService") RegistrationCoreService registrationService) { - String patientUuid = registrationService.importMpiPatient(personId); - return new SuccessResult(patientUuid); + Patient patient = registrationService.importMpiPatient(personId); + return new SuccessResult(patient.getUuid()); } public FragmentActionResult submit(UiSessionContext sessionContext, @RequestParam(value="appId") AppDescriptor app, diff --git a/omod/src/main/webapp/resources/scripts/registerPatient.js b/omod/src/main/webapp/resources/scripts/registerPatient.js index 7ae22751..adab5c00 100644 --- a/omod/src/main/webapp/resources/scripts/registerPatient.js +++ b/omod/src/main/webapp/resources/scripts/registerPatient.js @@ -92,7 +92,7 @@ jq(function() { var button; if (isMpi) { button = $('#matchedPatientTemplates .mpi_button').clone(); - button.attr("onclick", "importMpiPatient(" + item.uuid + ")"); + button.attr("onclick", "importMpiPatient('" + item.uuid + "')"); } else { button = $('#matchedPatientTemplates .local_button').clone(); var link = patientDashboardLink; diff --git a/pom.xml b/pom.xml index 1b1d5d25..a41365ec 100644 --- a/pom.xml +++ b/pom.xml @@ -45,7 +45,7 @@ 1.18 1.2 2.5.0 - 1.8.0 + 1.10.0 0.10.4 2.9 3.3.0