Saturday, May 31, 2014

GSoC community bonding and Coding phase:

I had couple of skype calls with Jim and Saptarshi during the community bonding period. They have been very kind to discuss the goals and objectives of the project and define the initial tasks. I will now summarize my work here:

I set up maven plugin in eclipse as:
Eclipse Help -> Install New Software and use http://download.eclipse.org/technology/m2e/releases as update site.
and install bazaar

I then downloaded bazaar client for windows and downloaded the source trunk from bazaar branch:

bzr branch lp:dhis2

I imported above code as Maven project in eclipse. My eclipse environment looks like following:




I haven't been able to compile and launch dhis in eclipse but I am trying to do so.

With Jim and Saptarshi we decided to make following contributions in the project:

Implement a smartphone mobile web-api controller in DHIS2. The controller will be written in java. The controller willl provide a list of available forms to the mobile device. The controller will generate XFORMs for the data sets in dhis. Mobiles can get list of forms using ODK collect. Mobiles will fill up the form and send the data back to server. The controller should be able to collect the data, parse it and store it into the database.

Controller will be part of dhis-web-api module at
http://bazaar.launchpad.net/~dhis2-devs-core/dhis2/trunk/files/head:/dhis-2/dhis-web/dhis-web-api-mobile/

The end point of web service will be:

dhis_url/mobile/xforms 

The basic template of mobile controller class is:

http://bazaar.launchpad.net/~dhis2-devs-core/dhis2/trunk/view/head:/dhis-2/dhis-web/dhis-web-api-mobile/src/main/java/org/hisp/dhis/api/mobile/controller/MobileClientController.java

I will extend the new controller from AbstractMobileController class

The data exchange through XForms will have:

IDs for dataset
IDs for orgunit
IDs for period
Ids for attribute
.. so on

The ODKCollect in mobile device will display the menu with the list of XFORMS. The users can choose certain form and submit the data back to the server

I am working on authentication implementation between ODKCollecct and DHIS mobile controller at the moment.

No comments:

Post a Comment