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

RA-2059 - MPI functionality does not work #150

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
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
Loading