Skip to content
Draft
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion omod/src/main/webapp/resources/scripts/registerPatient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<emrapiVersion>1.18</emrapiVersion>
<calculationVersion>1.2</calculationVersion>
<providerManagementVersion>2.5.0</providerManagementVersion>
<registrationcoreVersion>1.8.0</registrationcoreVersion>
<registrationcoreVersion>1.10.0</registrationcoreVersion>
<reportingModuleVersion>0.10.4</reportingModuleVersion>
<addresshierarchyVersion>2.9</addresshierarchyVersion>
<htmlformentryVersion>3.3.0</htmlformentryVersion>
Expand Down