Your SlideShare is downloading. ×
Oip presentation
Upcoming SlideShare
Loading in...5

Thanks for flagging this SlideShare!

Oops! An error has occurred.

Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Oip presentation


Published on

Published in: Technology, Education

  • Be the first to comment

  • Be the first to like this

No Downloads
Total Views
On Slideshare
From Embeds
Number of Embeds
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

No notes for slide


  • 1. New UI Framework Prototypes
    • Student: Harsha Halgaswatta
    • Mentor : Darius Jazayeri
    • Back up Mentor : Sy Haas
  • 2. Overview
    • 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
    • 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
  • 3. Spring3 MVC
    • Configuration Simplification (inside mvc-config.xml)
    • <!-- Configures the @Controller programming model -->
    • <mvc:annotation-driven />
    • 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
    • * Using the Spring 3 Type ConversionService as a simpler and more robust alternative to JavaBeans PropertyEditors
    • * Support for formatting Number fields with @NumberFormat
    • * Support for formatting Date, Calendar, and Joda Time fields with @DateTimeFormat, if Joda Time is on the classpath
    • * Support for validating @Controller inputs with @Valid, if a JSR-303 Provider is on the classpath
    • * Support for reading and writing XML, if JAXB is on the classpath
    • * Support for reading and writing JSON, if Jackson is on the classpath
  • 4. Spring3 MVC
    • Configuration Simplification (inside mvc-config.xml)
    • <!-- Forwards requests to the &quot;/&quot; resource to the &quot;welcome&quot; view -->
    • <mvc:view-controller path=&quot;/&quot; view-name=&quot;welcome&quot; />
    • mvc:view-controller registers a ParameterizableViewController that selects a view for rendering
  • 5. Spring3 MVC
    • Configuration Simplification
    • sample controller class :
    • @Controller
    • @RequestMapping(value=&quot;/patient&quot;)
    • public class PatientController {
    • ----------------------------
    • ----------------------------
    • }
  • 6. What I have done
    • Now I am working on a sample patient dashboard using
    • Spring3 MVC + JQuery
    • JQuery tab panel
    • Reusable encounter table widget using JQuery data table plugin along with a tag file.
    • Now it is very simple to have an encounter table using single line of code in
    • patientdashboard.jsp
  • 7.
    • <jq:encounters encounterList=&quot;${model.encounterList}&quot;/>
    • Inside the encounter tag file it wraps the table using JQuery
    • datatable Plugin with the following code Snippet
    • $(document).ready(function() {
    • $('#encounters').dataTable();
    • } );
    • I have committed all the code under
  • 8. What is next
    • It needs to verify the modular architecture upon
    • Spring3MVC and JQuery.
    • The way intended to achieve this is
    • Adding an extension point in a tab using an
    • external module
    • I have started researching on GWT and GXT, So need to
    • verify integrating Openmrs api and modular architecture
  • 9. Thank You
    • Any Questions ?