Details
-
Improvement
-
Status: Closed
-
TBD
-
Resolution: Won't Fix
-
OpenMRS 2.0
-
Low
Description
Currently the Visit Summary page has 2 links that do not have any privilege associated:
- Edit Visit
- Edit Date
Talk thread https://talk.openmrs.org/t/edit-privilege-on-visitsummary-page/31098/5
This part of the code here .]
Solution would be something like:
[[ if (canEditVisit) { ]] <a class="right" id="editVisitDatesLink" href="#" data-visit-id="[[= id]]">${ ui.message("coreapps.task.editVisitDate.label")}</a> [[ if (mutipleVisitTypes) { ]] <span class="right"> | </span> <a class="right" id="editVisitLink" href="#" data-visit-id="[[= id]]">${ ui.message("coreapps.task.editVisit.label")}</a> [[ } ]] [[ } ]]
where current boolean, canEditVisit, would be transformed into mutipleVisitTypes and a new privilege is created to edit the visit, like already exists to delete Visit (here, here and here)