Warning |
---|
The UI Framework code is being transitioned to a module. Documentation will move to UI Framework. |
(Prerequisite: UI Framework Step By Step Tutorial)
This guide will take you through the process of writing a Patient fragment, while following all best practices.
...
Step 3: Including our patient fragment in standard pages
In the UI Framework tutorial, you created demonstration page to hold your fragments. Since we are now building real functionality, we want to include our fragment in the real user interface. Since the 2.x application is configurable and customizable, there is no single "patient dashboard" as in OpenMRS 1.x. Adding our fragment to the user interface actually means publishing it in the reference application's library of patient fragments, which are exposed as Extensions. To do this we need to add one line to the org.openmrs.ui2.webapp.extension.CoreExtensionFactory class:
...