Closed nehav39 closed 6 years ago
You need to overload the following variables in to redirect the url to the Intelehealth patient dashboard - contextPath and config.dashboardUrl
See jq(".demographics .name").click(function () { emr.navigateTo({ url: "${ ui.urlBind("/" + contextPath + config.dashboardUrl, [ patientId: patient.patient.id ] ) }" }); })
@neha @amalafrozalam this is regarding issue no #40. i did some research and came to the conclusion that while overriding the default core apps url we can solve this issue. but the problem is when overrided with intelehealth dashboard url with the default value its not working. can any 1 help me here out? also there is something called model.add attribute property in intelehealth dashboardurl.gsp page which is responsible for adding core apps default url.
@amalafrozalam in intelehealthPatientDashboard.gsp there is fragment called ${ ui.includeFragment("coreapps", "patientHeader", [ patient: patient.patient, activeVisit: activeVisit, appContextModel: appContextModel ]) }
which is responsible for routing to core app url. if we can replace this url with "openmrs/intelehealth/intelehealthPatientDashboard.page?patientId=" + v.visit.patient.uuid, v.visit.patient) }" this fragment. the issue can be solved . (according to me)
@prithi69 can you test this?
https://talk.openmrs.org/t/privilege-to-edit-patient-demographic-information/11520 @neha can you go through the link and help me out what "darius" wants to say
So it looks like someone else also wanted this feature. But per Darius's comment, this functionality does not exist.
patient header links to clinician dashboard, not our inteleealth dashboard.tested it but its not working..?? have you tested it in your local server..? @AniketIntelhealth
so what can be done for sure is to add your own extension through your custom module, the same way the Registration App module does it And then, to make sure that your custom extension is being picked up, you could disable the “default” one (=the one defined by the Reg. App module) through your custom module’s activator. With something like that:
AppFrameworkService service = Context.getService(AppFrameworkService.class); service.disableExtension("org.openmrs.module.registrationapp.editPatientDemographics");
--Dimitri's words on changing the edit button on patient Dashboard
@nehagoel2 @amalafrozalam i made a patientHeader.gsp file with a controller called PatientHeaderFragmentController.java but when i replace the coreapp fragment with created fragment it gives the above error any help?
Patient Header is been disabled, but edit button still persist. So we may close the issue.
"Clinician facing patient dashboard" == Page from the Ref App.