Details
-
Improvement
-
Status: Approved
-
Should
-
Resolution: Fixed
-
Reference Application 2.10.0
-
None
-
Low
Description
Currently there are two edit styles support for an Encounter:
- SimpleUI
- 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:
- The edit url will navigate to Standard UI and since there is no definition, it would populate the encounter details in a messy way.
- 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