Uploaded image for project: 'Reference Application'
  1. Reference Application
  2. RA-1872

Add edit Privilege for Visit Dates and Visit Type on Visit Dummary Dashboard

    XMLWordPrintable

Details

    • 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)

      Gliffy Diagrams

        Attachments

          Activity

            People

              herbert24 Herbert Yiga
              ifernandes Ines Fernandes
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: