Figure 5.

The enhancement mechanism for reportlets: a reportlet HTML form (top) prototyped by the medic is loaded. Next, a JavaScript routine examines the contents of each element of the form, to identify the elements marked up for enhancement (eg, icon-menus and slider-bars). This generates a new page (bottom) in which elements are tabulated and colored according to a CSS stylesheet. The menu-bar inserted at the top of the new page is, in fact, a Java Applet that communicates with the DOM to read (and later write) the stored contents of the reportlet. Thus, once the new page has loaded, the menu-bar automatically populates the form elements (including the enhanced elements) of the page. Key to each step of this mechanism is the names of the elements in the original form. Indeed, those names identify the content of the XML fields that will be used in the EPR