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

Edit Style configuration support for defaultEncounterTemplate in Patient Dashboard

    XMLWordPrintable

Details

    • Improvement
    • Status: Approved
    • Should
    • Resolution: Fixed
    • Reference Application 2.10.0
    • Core Apps
    • None
    • Low

    Description

      Currently there are two edit styles support for an Encounter:

      1. SimpleUI
      2. StandardUI

      The default encounter template in the patient dashboard populates encounter and it has view and edit url configurable using extension id 

      org.openmrs.referenceapplication.encounterTemplate

      This configuration defaults to StandardUI as edit style.

      So if an encounter is recorded in SimpleUI edit style, the following drawbacks are present:

      1. The edit url will navigate to Standard UI and since there is no definition, it would populate the encounter details in a messy way.
      2. Navigating to edit url from View mode would also result in the same problem.

       

      Proposal:

      "editStyle" extension parameter for each supportedEncounterTypes in defaultEncounterTemplate would help in switching between Standard, Simple and other future edit styles while clicking the edit button in Encounters section of Patient Dashboard.

      The same parameter can also be passed in view url as it appends the editStyle parameter into the editUrl in View mode and it is supported by the viewEncounterWithHtmlForm.page definition in htmlformentryui module.

       

      PR raised: https://github.com/openmrs/openmrs-module-coreapps/pull/318 

       

       

      Gliffy Diagrams

        Attachments

          1. Encounter Details.png
            Encounter Details.png
            37 kB
          2. Vitals EDIT mode.png
            Vitals EDIT mode.png
            198 kB
          3. Vitals page ENTER MODE.png
            Vitals page ENTER MODE.png
            166 kB
          4. Vitals VIEW mode.png
            Vitals VIEW mode.png
            199 kB

          Activity

            People

              sharif Sharif Magembe
              kinle Kinle A G
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 1 hour
                  1h