Details
-
Story
-
Status: Approved
-
TBD
-
Resolution: Fixed
-
None
-
None
-
None
-
Undetermined
-
2017-02-24 Patient Summary
Description
Create a template app together with a fragment, which allows one to define an icon and a title of the widget.
All widgets will share icon and title config options, which should be defined in a template app as e.g. in https://github.com/openmrs/openmrs-module-coreapps/blob/master/omod/src/main/resources/apps/coreappsAppTemplates.json
Apps should be defined using instanceof pointing to that template as in https://github.com/openmrs/openmrs-module-coreapps/blob/master/omod/src/main/resources/apps/activeVisits_app.json#L4
Along with the app template, they should reuse a fragment for displaying icon and title.
You can extract the template and the fragment from any exisiting widget, see e.g. RA-1293.
Both the template and the fragment should be created before any widget from the Patient summary widgets epic (RA-1299).