Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Oip presentation


Published on

Published in: Technology, Education
  • Be the first to comment

  • Be the first to like this

Oip presentation

  1. 1. New UI Framework Prototypes <ul><li>Student: Harsha Halgaswatta </li></ul><ul><li>Mentor : Darius Jazayeri </li></ul><ul><li>Back up Mentor : Sy Haas </li></ul>
  2. 2. Overview <ul><li>OpenMRS 2.0 is going to feature a new user interface, rebuilt from the ground up. So it need to properly explore and compare several promising frameworks </li></ul><ul><li>The goal of this project is to do POCs of including the OpenMRS API JAR file in several different UI frameworks, and showing what writing code in that framework would be like </li></ul>
  3. 3. Spring3 MVC <ul><li>Configuration Simplification (inside mvc-config.xml) </li></ul><ul><li><!-- Configures the @Controller programming model --> </li></ul><ul><li><mvc:annotation-driven /> </li></ul><ul><li>This tag registers the HandlerMapping and HandlerAdapter required to dispatch requests to your @Controllers.In addition, it applies some default features based on what is present in your classpath </li></ul><ul><li>* Using the Spring 3 Type ConversionService as a simpler and more robust alternative to JavaBeans PropertyEditors </li></ul><ul><li>* Support for formatting Number fields with @NumberFormat </li></ul><ul><li>* Support for formatting Date, Calendar, and Joda Time fields with @DateTimeFormat, if Joda Time is on the classpath </li></ul><ul><li>* Support for validating @Controller inputs with @Valid, if a JSR-303 Provider is on the classpath </li></ul><ul><li>* Support for reading and writing XML, if JAXB is on the classpath </li></ul><ul><li>* Support for reading and writing JSON, if Jackson is on the classpath </li></ul>
  4. 4. Spring3 MVC <ul><li>Configuration Simplification (inside mvc-config.xml) </li></ul><ul><li><!-- Forwards requests to the &quot;/&quot; resource to the &quot;welcome&quot; view --> </li></ul><ul><li><mvc:view-controller path=&quot;/&quot; view-name=&quot;welcome&quot; /> </li></ul><ul><li>mvc:view-controller registers a ParameterizableViewController that selects a view for rendering </li></ul>
  5. 5. Spring3 MVC <ul><li>Configuration Simplification </li></ul><ul><li>sample controller class : </li></ul><ul><li>@Controller </li></ul><ul><li>@RequestMapping(value=&quot;/patient&quot;) </li></ul><ul><li>public class PatientController { </li></ul><ul><li>---------------------------- </li></ul><ul><li>---------------------------- </li></ul><ul><li>} </li></ul>
  6. 6. What I have done <ul><li>Now I am working on a sample patient dashboard using </li></ul><ul><li>Spring3 MVC + JQuery </li></ul><ul><li>JQuery tab panel </li></ul><ul><li>Reusable encounter table widget using JQuery data table plugin along with a tag file. </li></ul><ul><li>Now it is very simple to have an encounter table using single line of code in </li></ul><ul><li>patientdashboard.jsp </li></ul><ul><li><jq:encounters encounterList=&quot;${model.encounterList}&quot;/> </li></ul><ul><li>Inside the encounter tag file it wraps the table using JQuery datatable plugin </li></ul><ul><li>with the following code Snippet </li></ul><ul><li>$(document).ready(function() { </li></ul><ul><li>$('#encounters').dataTable(); </li></ul><ul><li>} ); </li></ul>
  7. 7. <ul><li>I have committed all the code under </li></ul>
  8. 8. What is next <ul><li>It needs to verify the modular architecture upon </li></ul><ul><li>Spring3MVC and JQuery. </li></ul><ul><li>The way intended to achieve this is </li></ul><ul><li>Adding an extension point in a tab using an </li></ul><ul><li>external module </li></ul><ul><li>I have started researching on GWT and GXT, So need to </li></ul><ul><li>verify integrating Openmrs api and modular architecture </li></ul>
  9. 9. Thank You <ul><li>Any Questions ? </li></ul>