dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #06691
[Branch ~dhis2-documenters/dhis2/dhis2-docbook-docs] Rev 210: Added compilation instructions from Confluence to implementation guide. Work in progress.
------------------------------------------------------------
revno: 210
committer: Jason Pickering <jason@karolina-laptop>
branch nick: dhis2-docbook-docs
timestamp: Thu 2010-07-15 11:15:30 +0200
message:
Added compilation instructions from Confluence to implementation guide. Work in progress.
modified:
src/docbkx/en/dhis2_implementation_guide.xml
src/docbkx/en/dhis2_user_man_mobile.xml
src/docbkx/en/dhis2_user_man_reporting.xml
--
lp:~dhis2-documenters/dhis2/dhis2-docbook-docs
https://code.launchpad.net/~dhis2-documenters/dhis2/dhis2-docbook-docs
Your team DHIS 2 developers is subscribed to branch lp:~dhis2-documenters/dhis2/dhis2-docbook-docs.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-documenters/dhis2/dhis2-docbook-docs/+edit-subscription
=== modified file 'src/docbkx/en/dhis2_implementation_guide.xml'
--- src/docbkx/en/dhis2_implementation_guide.xml 2010-04-27 20:49:39 +0000
+++ src/docbkx/en/dhis2_implementation_guide.xml 2010-07-15 09:15:30 +0000
@@ -1,4 +1,5 @@
<?xml version='1.0' encoding='UTF-8'?>
+<!-- This document was created with Syntext Serna Free. -->
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" []>
<chapter>
<title>DHIS2 Implementation Guide</title>
@@ -37,6 +38,17 @@
</section>
</section>
<section>
+ <title>Compiling DHIS2</title>
+ <para>First, create an environment variable called <envar>JAVA_OPTS</envar>, and set its value to: <parameter>-Xms128m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=512m</parameter> . In addition to this environment variable, you will need to ensure that maven is accessible through your console. </para>
+ <para>A sample Windows batch script is provided below. There are three steps during the build process: 1) Building the DHIS2 core modules 2) Building the DHIS2 Web modules and 3) Building the DHIS2 web portal. </para>
+ <para><literallayout><computeroutput>set start_time=%time% echo Building DHIS 2 Core cd trunk\dhis-2\ call mvn clean install -Dtest=skip -DfailIfNoTests=false echo Building DHIS 2 Web cd dhis-web call mvn clean install -Dtest=skip -DfailIfNoTests=false echo Packing DHIS 2 Web Portal cd dhis-web-portal call mvn clean package -Dtest=skip -DfailIfNoTests=false cd ..\..\..\.. echo start %start_time% echo finish %time%</computeroutput> </literallayout></para>
+ <para>A sample Linux build script is provided below. </para>
+ <para><literallayout><computeroutput>#!/bin/sh echo "Building DHIS 2 Core..." cd dhis/trunk/dhis-2 mvn clean install -Dtest=skip -DfailIfNoTests=false echo "Building DHIS 2 Web..." cd dhis-web mvn clean install -Dtest=skip -DfailIfNoTests=false echo "Packing DHIS 2 Web Portal..." cd dhis-web-portal mvn clean package -Dtest=skip -DfailIfNoTests=false </computeroutput></literallayout></para>
+ <para>Both of these scripts have been included in the <filename>/dhis2/dhis2/dhis2-live-installer</filename> directory. Review the <filename>INSTALLER-README.txt</filename> file for more details of these build scripts and their functionality.</para>
+ <para>The first time you execute the build process, maven will need to download a number of required components. You must therefore have an active internet connection. Depending on the speed of your connection and computer, the build process could take a significant amount of time. </para>
+ <para>The resulting web archive file (war) is located in <filename>dhis2/dhis-2/dhis-web/dhis-web-portal/target/dhis.war</filename> . This file should be copied to your Tomcat's <filename>/webapps</filename> directory. </para>
+ </section>
+ <section>
<title>Deployment architecture</title>
<para>Broadly speaking, there are three way to deploy DHIS2: a single, standalone system, multiple standalone systems which exchange data through XML, and a server system that serves multiple clients through the Internet. There are varations on each of these three main architectures. Determining an deployment architecture is critical to ensure the long-term sustainability of DHIS2 in a given enviornment. Having a server-client architecture in a country with poor Internet infrastructure would be an inapproriate choice for instance. Several differnent scenarios will be discussed here, but will require modification for each deployment. </para>
<section>
@@ -90,6 +102,57 @@
</section>
</section>
<section>
+ <title>Packaging and installation</title>
+ <blockquote>
+ <para>"Building an installer is the last thing the developer does but the first thing the customer sees."</para>
+ <para>Will Iverson, strategic partner manager for Symantec's Internet Tools Division.</para>
+ </blockquote>
+ <section>
+ <title>Introduction</title>
+ <para>DHIS2 is a browser-based Java application, and will therefore run on essentially any operating system that support Java. The application has been architected to run both on stand-alone laptops as well as servers intended for multi-user enviornments discussed in the previous sections. Creating a single installer for all of these types of deployments is a major challenge and must be carefully considered when rolling out DHIS2 within a given organization. In this section, the packaging of DHIS2 based on the BitRock InstallBuilder will be considered. The source code for these installers is included in the <filename>/dhis2/dhis2-live-installer</filename> directory of the main source code. </para>
+ </section>
+ <section>
+ <title>Building the installer</title>
+ <para>You will need a few extra components in order to build the BitRock installer. </para>
+ <itemizedlist>
+ <listitem>
+ <para>A recent version of the Java SDK. </para>
+ </listitem>
+ <listitem>
+ <para>Download a copy of <ulink url="http://installbuilder.bitrock.com/download-step-2.html">BitRock InstallBuilder 6 Multiplatform (Professional).</ulink>. The install builder is available for multiple operating systems, so choose the one that is appropriate for you. The DHIS2 project has been granted a special liscense by BitRock for the use within the context of the project. Please send a note to the developers list if you want to build the installer, and a copy of the key required for the application will be sent to you. </para>
+ </listitem>
+ <listitem>
+ <para>Apache Maven 2</para>
+ </listitem>
+ <listitem>
+ <para>If you are planning to build an embedded installer (described below), you will need a recent copy of the Java Runtime Environment (JRE). More specific details wil be provided in the section below. </para>
+ </listitem>
+ </itemizedlist>
+ <para>Once you have downloaded and installed all the necessary components, you will need to make some changes to the environment variables that are defined in the build.sh script (or build.bat script if you are using Windows). </para>
+ <itemizedlist>
+ <listitem>
+ <para><command>export <envar>JAVA_HOME</envar>=/usr/share/java/jdk1.6.0_19/</command></para>
+ <para>This should point to the path where your local copy of the Java SDK exists. If this has been define else where on your system, you can comment this line out.</para>
+ </listitem>
+ <listitem>
+ <para><command>export <envar>PATH</envar>=$<envar>PATH</envar>:/home/jason/apache-maven-2.2.1/bin/</command></para>
+ <para>This command will add the Apache Maven binary to the current path. If Maven is is accessible on the current enviornment, you can comment out this line.</para>
+ </listitem>
+ <listitem>
+ <para><command>export <envar>BITROCK_HOME</envar>=/home/jason/installbuilder-6.3.1/</command></para>
+ <para>This command will define an enviornment variable which should point to the directory where the BitRock Installer Professional has been downloaded to. </para>
+ </listitem>
+ <listitem>
+ <para><command>export <envar>DHIS2_DOCS</envar>="/home/jason/dhis2/dhis2-docbook-docs/"</command></para>
+ <para>This environment variable will be used by the build script to automatically build the DHIS2 documentation and should point to the documentation source directory.</para>
+ </listitem>
+ <listitem/>
+ <listitem/>
+ </itemizedlist>
+ </section>
+ <section/>
+ </section>
+ <section>
<title>Configuration</title>
<section>
<title>Organizational unit hierarchy</title>
=== modified file 'src/docbkx/en/dhis2_user_man_mobile.xml'
--- src/docbkx/en/dhis2_user_man_mobile.xml 2010-06-23 11:54:50 +0000
+++ src/docbkx/en/dhis2_user_man_mobile.xml 2010-07-15 09:15:30 +0000
@@ -1,192 +1,176 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- This document was created with Syntext Serna Free. -->
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" []>
-<chapter>
- <title>DHIS Mobile</title>
- <section>
- <title>Briefly how DHIS Mobile works</title>
- <para>Wherever DHIS 2 is installed, a GSM modem holding a SIM card can be
- installed on this computer. A mobile application (often referred to as DHIS Mobile)
- needs to be installed on java enabled cell phones. This application lets the
- users register data. When registration is finished, the users can use the
- application to send the (encrypted) data, using SMS technology, to the
- SIM card installed in the GSM modem. Once the SMS is received by the GSM modem,
- the DHIS 2 software will automatically store the received data in the
- database on the computer.</para>
- </section>
- <section>
- <title>Set up a computer to receive DHIS Mobile SMSs</title>
- <section>
- <title>You need</title>
- <para>- DHIS2 2.0.4(/2.0.5) source code <ulink url="https://code.launchpad.net/~dhis2-devs-core/dhis2/2.0.4">
- https://code.launchpad.net/~dhis2-devs-core/dhis2/2.0.4</ulink> (or prebuilt .war-file of DHIS2 2.0.4(/2.0.5) containing the mobile module)</para>
- <para>- Various files:</para>
- <itemizedlist>
- <listitem>
- <para>Driver for the GSM modem</para>
- </listitem>
- <listitem>
- <para>comm.jar</para>
- </listitem>
- <listitem>
- <para>javax.comm.properties</para>
- </listitem>
- <listitem>
- <para>win32com.dll</para>
- </listitem>
- <listitem>
- <para>formIDLayout.csv</para>
- </listitem>
- <listitem>
- <para>SMSserver.conf</para>
- </listitem>
- </itemizedlist>
- </section>
- <section>
- <title>Steps</title>
- <section>
- <title>Build DHIS2 2.0.4</title>
- <para>Download the latest source code from launchpad. From the dhis-mobile
- folder, copy the dhis-service-mobile folder to the dhis-services folder
- and the dhis-web-mobile folder to the dhis-web folder. Then modify the
- following pom.xml files:</para>
- <itemizedlist>
- <listitem>
- <para>in dhis-web-portal\pom.xml, add dependency to dhis-web-mobile:
- <screen>
-<dependency>
- <groupId>org.hisp.dhis</groupId>
- <artifactId>dhis-web-mobile</artifactId>
- <version>${version}</version>
- <type>war</type>
-</dependency>
- </screen>
- </para>
- </listitem>
- <listitem>
- <para>in dhis-web\pom.xml, add module dhis-web-mobile:
- <screen><module>dhis-web-mobile</module></screen>
- </para>
- </listitem>
- <listitem>
- <para>in dhis-services\pom.xml, add module dhis-service-mobile:
- <screen><module>dhis-service-mobile</module></screen>
- </para>
- </listitem>
- </itemizedlist>
- <para>After the pom-files are altered, build your .war-file using
- <code>mvn clean install</code>. (To skip the tests, use
- <code>mvn clean install -Dtest=false -DfailIfNoTests=false</code>.)</para>
- <para>Copy the dhis.war file from dhis-web-portal\target to the
- tomcat\webapps folder. Rename it if you want.</para>
- </section>
-
- <section>
- <title>Install the GSM modem</title>
- <para>Plug in your modem and install the drivers. You might have to use the manufacturer's provided drivers from a CD or their web page.</para>
- <para><emphasis>You might need administrator privileges to do this. If you still can't do it, try starting Windows in Safe Mode.</emphasis></para>
- </section>
-
- <section>
- <title>Files needed</title>
- <itemizedlist>
- <listitem>
- <para>comm.jar</para>
- <para>Copy it to your <code>java\jreX\lib\ext</code> folder. If you've got multiple
- installations of JRE, you can find the path to the installation used by
- DHIS 2 by right clicking the Monitor Tomcat icon in the system tray,
- then Configure -> Java.</para>
- </listitem>
- <listitem>
- <para>javax.comm.properties</para>
- <para>Copy it to your <code>java\jreX\lib</code> folder.</para>
- </listitem>
- <listitem>
- <para>win32com.dll</para>
- <para>Copy it to your <code>java\jreX\bin</code> folder.</para>
- <para><emphasis>Note: You might need administrator privileges to do this.
- If you still can't do it, try starting Windows in Safe Mode.</emphasis></para>
- </listitem>
- <listitem>
- <para>SMSserver.conf</para>
- <para>Copy it to your <code>DHIS2_HOME</code> folder (the folder where hibernate.properties is located). The settings in this file can also be modified from the Settings page in the mobile module in DHIS 2.</para>
- <para>In this file the manufacturer and the model of the GSM modem are specified. Also, make sure the PIN code for the SIM card in the GSM modem is turned off, and set <code>modem1.pin=0000</code> in the SMSserver.conf, or use the Settings page in the mobile module in DHIS 2 to set the pin to 0000.</para>
- <para>The port of the modem also needs to be specified in this file. After the drivers are successfully installed and the modem is installed in a usb port, you can find the port of the modem by opening Device Manager, locate your modem and right click on it, click on Properties and navigate to the Modem tab. There you'll see which port is assigned to the modem.</para>
- <para><emphasis>Important: Note that if you install the modem into another usb port another time, the port will change, and you will have to update the settings. If you for some reason need to take the modem out of your computer, make sure you'll install it in the same usb port as last time, or else you'll have to update the SMSserver.conf file.</emphasis></para>
- </listitem>
- <listitem>
- <para>formIDLayout.csv</para>
- <para>Copy it to your <code>DHIS2_HOME\mi</code> folder. If you have not yet deployed your latest build of DHIS2, you'll have to create the mi folder manually.</para>
- <para>This file specifies which data elements are to be imported. There's one line for each different mobile application in use. The lines start with a mobile application's id, then followed by comma separated data element ids and their categoryoptioncombo ids. The lines will be on the form
- <screen>
-1 = <data element id>.<categoryoptioncombo id>,
-<data element id>.<categoryoptioncombo id>, ... ,
-<data element id>.<categoryoptioncombo id>
- </screen>
- E.g.
- <screen>1 = 652.207, 652,208, 20485.271, 20485.272, 683.14</screen>
- </para>
- <para><emphasis>Note: If the same mobile application is installed on several phones, the �id� for each application is the same! The formIDLayout.csv file should thus only have one line, starting with 1 = .</emphasis></para>
- </listitem>
- </itemizedlist>
- </section>
-
- <section>
- <title>Register users</title>
- <para>The phone numbers of the cell phones used for reporting with the
- mobile application needs to be registered in DHIS 2 in order for the data
- to be imported and stored in the database. A phone number has to be
- registered for a user, and the user can <emphasis>only</emphasis> be
- associated with <emphasis>one organisation unit</emphasis>!</para>
- <para>The phone number must include the regular phone number as well as
- the country code without <code>+</code> or <code>00</code>. E.g. for a
- Norwegian number, having the country code <code>47</code> and phone number
- <code>98765432</code>, the phone number to store is <code>4798765432</code>.</para>
- </section>
-
- </section>
-</section>
-
- <section>
- <title>Install the mobile application on a phone</title>
- <para>If you've got a phone and a computer with Bluetooth, you will in the most cases be able to send the <code>.jar</code> file (the mobile application) via Bluetooth from the computer to the phone. When using a cable, and also in some cases for phones with Bluetooth, you might have to install some software to be able to communicate with the phone. E.g. Nokia PC Suite for Nokia phones.</para>
- <para>Once the mobile application is installed on the phone, open it and navigate to the last page in the application. Select settings, and enter the number of the SIM card in the GSM modem. This works both with and without country code.</para>
- <para>If there are several GSM modems installed on several computers running DHIS 2 and you want to report to all of these, you can enter the numbers of the SIM cards installed in these GSM modems as well in the remaining fields in your mobile application. When clicking send, the application will now send the registered data to all the registered numbers at the same time.</para>
- </section>
-
- <section>
- <title>Using the system</title>
- <para>Navigate to the Mobile module via Services -> Mobiles</para>
- <section>
- <title>Start the SMS Service</title>
- <para>To start the SMS Service, navigate to "Receive Data and Import" or
- "Send SMS" in the left menu, and then press the Start button next to where
- it says: "SMS Service: Not Started". If everything works well, it should
- now say: "SMS Service: Started".</para>
- </section>
- <section>
- <title>Receive Data and Import</title>
- <para>To receive and import data, the SMS Service needs to be started. </para>
- <section>
- <title>Automated import of messages</title>
- <para>When SMSs are sent from the phones while the SMS Service is running, the messages will be processed automatically, and the data will automatically be imported and stored in the database.</para>
- </section>
- <section>
- <title>Import pending messages</title>
- <para>If SMSs are sent from the phones to the SIM card in the GSM modem
- while the SMS Service is inactive, the messages will be stored as xml
- files in the folder <code>DHIS2_HOME\mi\pending</code> short time after
- the service is started. On the Receive Data and Import page it will say
- how many SMSs are pending. These can be imported by pressing the "Import
- All Pending" button.</para>
- </section>
- </section>
- <section>
- <title>Send SMS</title>
- <para>The mobile module can be used to send messages to one number at a
- time. To send an SMS, the SMS Service needs to be started. Use the local
- phone number here <emphasis>without</emphasis> the country code.</para>
- </section>
-
- </section>
-</chapter>
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- This document was created with Syntext Serna Free. --><!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" []>
+<chapter>
+ <title>DHIS Mobile</title>
+ <section>
+ <title>Introduction to DHIS Mobile </title>
+ <para>Collection of data in the field can be technically challenging and expensive. The DHIS2 Mobile module is meant to significantly reduce the complexity of deploying a distributed data collection system. A simple Java client can be installed on data collectors phones, who them send an SMS message to a central server. The SMS message is decrypted and converted imported into the DHIS2 database. </para>
+ </section>
+ <section>
+ <title>Set up a computer to receive DHIS Mobile SMSs</title>
+ <section>
+ <title>Pre-requisites</title>
+ <para>By default, DHIS2 does not ship with the DHIS Mobile web module. You will need to modify the client side application with your own data elements, as well as installing the DHIS2 mobile web module in the DHIS2 server. </para>
+ <para>- DHIS2 2.0.4(/2.0.5) source code <ulink url="https://code.launchpad.net/~dhis2-devs-core/dhis2/2.0.4"> https://code.launchpad.net/~dhis2-devs-core/dhis2/2.0.4</ulink> (or prebuilt .war-file of DHIS2 2.0.4(/2.0.5) containing the mobile module)</para>
+ <para>- Various files:</para>
+ <itemizedlist>
+ <listitem>
+ <para>Driver for the GSM modem</para>
+ </listitem>
+ <listitem>
+ <para>comm.jar</para>
+ </listitem>
+ <listitem>
+ <para>javax.comm.properties</para>
+ </listitem>
+ <listitem>
+ <para>win32com.dll</para>
+ </listitem>
+ <listitem>
+ <para>formIDLayout.csv</para>
+ </listitem>
+ <listitem>
+ <para>SMSserver.conf</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+ <section>
+ <title>Steps</title>
+ <section>
+ <title>Build DHIS2 2.0.4</title>
+ <para>Download the latest source code from launchpad. From the dhis-mobile
+ folder, copy the dhis-service-mobile folder to the dhis-services folder
+ and the dhis-web-mobile folder to the dhis-web folder. Then modify the
+ following pom.xml files:</para>
+ <itemizedlist>
+ <listitem>
+ <para>in dhis-web-portal\pom.xml, add dependency to dhis-web-mobile:
+ <screen>
+<dependency>
+ <groupId>org.hisp.dhis</groupId>
+ <artifactId>dhis-web-mobile</artifactId>
+ <version>${version}</version>
+ <type>war</type>
+</dependency>
+ </screen>
+ </para>
+ </listitem>
+ <listitem>
+ <para>in dhis-web\pom.xml, add module dhis-web-mobile:
+ <screen><module>dhis-web-mobile</module></screen>
+ </para>
+ </listitem>
+ <listitem>
+ <para>in dhis-services\pom.xml, add module dhis-service-mobile:
+ <screen><module>dhis-service-mobile</module></screen>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>After the pom-files are altered, build your .war-file using
+ <code>mvn clean install</code>. (To skip the tests, use
+ <code>mvn clean install -Dtest=false -DfailIfNoTests=false</code>.)</para>
+ <para>Copy the dhis.war file from dhis-web-portal\target to the
+ tomcat\webapps folder. Rename it if you want.</para>
+ </section>
+ <section>
+ <title>Install the GSM modem</title>
+ <para>Plug in your modem and install the drivers. You might have to use the manufacturer's provided drivers from a CD or their web page.</para>
+ <para><emphasis>You might need administrator privileges to do this. If you still can't do it, try starting Windows in Safe Mode.</emphasis></para>
+ </section>
+ <section>
+ <title>Files needed</title>
+ <itemizedlist>
+ <listitem>
+ <para>comm.jar</para>
+ <para>Copy it to your <code>java\jreX\lib\ext</code> folder. If you've got multiple
+ installations of JRE, you can find the path to the installation used by
+ DHIS 2 by right clicking the Monitor Tomcat icon in the system tray,
+ then Configure -> Java.</para>
+ </listitem>
+ <listitem>
+ <para>javax.comm.properties</para>
+ <para>Copy it to your <code>java\jreX\lib</code> folder.</para>
+ </listitem>
+ <listitem>
+ <para>win32com.dll</para>
+ <para>Copy it to your <code>java\jreX\bin</code> folder.</para>
+ <para><emphasis>Note: You might need administrator privileges to do this. If you still can't do it, try starting Windows in Safe Mode.</emphasis></para>
+ </listitem>
+ <listitem>
+ <para>SMSserver.conf</para>
+ <para>Copy it to your <code>DHIS2_HOME</code> folder (the folder where hibernate.properties is located). The settings in this file can also be modified from the Settings page in the mobile module in DHIS 2.</para>
+ <para>In this file the manufacturer and the model of the GSM modem are specified. Also, make sure the PIN code for the SIM card in the GSM modem is turned off, and set <code>modem1.pin=0000</code> in the SMSserver.conf, or use the Settings page in the mobile module in DHIS 2 to set the pin to 0000.</para>
+ <para>The port of the modem also needs to be specified in this file. After the drivers are successfully installed and the modem is installed in a usb port, you can find the port of the modem by opening Device Manager, locate your modem and right click on it, click on Properties and navigate to the Modem tab. There you'll see which port is assigned to the modem.</para>
+ <para><emphasis>Important: Note that if you install the modem into another usb port another time, the port will change, and you will have to update the settings. If you for some reason need to take the modem out of your computer, make sure you'll install it in the same usb port as last time, or else you'll have to update the SMSserver.conf file.</emphasis></para>
+ </listitem>
+ <listitem>
+ <para>formIDLayout.csv</para>
+ <para>Copy it to your <code>DHIS2_HOME\mi</code> folder. If you have not yet deployed your latest build of DHIS2, you'll have to create the mi folder manually.</para>
+ <para>This file specifies which data elements are to be imported. There's one line for each different mobile application in use. The lines start with a mobile application's id, then followed by comma separated data element ids and their categoryoptioncombo ids. The lines will be on the form
+ <screen>
+1 = <data element id>.<categoryoptioncombo id>,
+<data element id>.<categoryoptioncombo id>, ... ,
+<data element id>.<categoryoptioncombo id>
+ </screen>
+ E.g.
+ <screen>1 = 652.207, 652,208, 20485.271, 20485.272, 683.14</screen>
+ </para>
+ <para><emphasis>Note: If the same mobile application is installed on several phones, the �id� for each application is the same! The formIDLayout.csv file should thus only have one line, starting with 1 = .</emphasis></para>
+ </listitem>
+ </itemizedlist>
+ </section>
+ <section>
+ <title>Register users</title>
+ <para>The phone numbers of the cell phones used for reporting with the
+ mobile application needs to be registered in DHIS 2 in order for the data
+ to be imported and stored in the database. A phone number has to be
+ registered for a user, and the user can <emphasis>only</emphasis> be
+ associated with <emphasis>one organisation unit</emphasis>!</para>
+ <para>The phone number must include the regular phone number as well as
+ the country code without <code>+</code> or <code>00</code>. E.g. for a
+ Norwegian number, having the country code <code>47</code> and phone number
+ <code>98765432</code>, the phone number to store is <code>4798765432</code>.</para>
+ </section>
+ </section>
+ </section>
+ <section>
+ <title>Install the mobile application on a phone</title>
+ <para>If you've got a phone and a computer with Bluetooth, you will in the most cases be able to send the <code>.jar</code> file (the mobile application) via Bluetooth from the computer to the phone. When using a cable, and also in some cases for phones with Bluetooth, you might have to install some software to be able to communicate with the phone. E.g. Nokia PC Suite for Nokia phones.</para>
+ <para>Once the mobile application is installed on the phone, open it and navigate to the last page in the application. Select settings, and enter the number of the SIM card in the GSM modem. This works both with and without country code.</para>
+ <para>If there are several GSM modems installed on several computers running DHIS 2 and you want to report to all of these, you can enter the numbers of the SIM cards installed in these GSM modems as well in the remaining fields in your mobile application. When clicking send, the application will now send the registered data to all the registered numbers at the same time.</para>
+ </section>
+ <section>
+ <title>Using the system</title>
+ <para>Navigate to the Mobile module via Services -> Mobiles</para>
+ <section>
+ <title>Start the SMS Service</title>
+ <para>To start the SMS Service, navigate to "Receive Data and Import" or
+ "Send SMS" in the left menu, and then press the Start button next to where
+ it says: "SMS Service: Not Started". If everything works well, it should
+ now say: "SMS Service: Started".</para>
+ </section>
+ <section>
+ <title>Receive Data and Import</title>
+ <para>To receive and import data, the SMS Service needs to be started. </para>
+ <section>
+ <title>Automated import of messages</title>
+ <para>When SMSs are sent from the phones while the SMS Service is running, the messages will be processed automatically, and the data will automatically be imported and stored in the database.</para>
+ </section>
+ <section>
+ <title>Import pending messages</title>
+ <para>If SMSs are sent from the phones to the SIM card in the GSM modem
+ while the SMS Service is inactive, the messages will be stored as xml
+ files in the folder <code>DHIS2_HOME\mi\pending</code> short time after
+ the service is started. On the Receive Data and Import page it will say
+ how many SMSs are pending. These can be imported by pressing the "Import
+ All Pending" button.</para>
+ </section>
+ </section>
+ <section>
+ <title>Send SMS</title>
+ <para>The mobile module can be used to send messages to one number at a
+ time. To send an SMS, the SMS Service needs to be started. Use the local
+ phone number here <emphasis>without</emphasis> the country code.</para>
+ </section>
+ </section>
+</chapter>
=== modified file 'src/docbkx/en/dhis2_user_man_reporting.xml'
--- src/docbkx/en/dhis2_user_man_reporting.xml 2010-06-23 11:54:50 +0000
+++ src/docbkx/en/dhis2_user_man_reporting.xml 2010-07-15 09:15:30 +0000
@@ -1,4 +1,4 @@
-<?xml version='1.0' encoding='UTF-8'?>
+<?xml version='1.0' encoding='UTF-8'?>
<!-- This document was created with Syntext Serna Free. --><!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" []>
<chapter>
<title>Reporting</title>
@@ -48,27 +48,28 @@
<section>
<title>Dimensions of aggregation</title>
<section>
- <title>Orgunits and levels</title>
- <para/>
+ <title>Organisational units and levels</title>
+ <para>Organisational units are used to represent the "where" dimension associated with data values. In DHIS2, organisational units are arranged in a hierarchy, which typically corresponds to the hierarchical nature of the organisation or country. Organisational unit levels correspond to the distinct levels within the hierarchy. For instance, a country maybe organized into provinces, then districts, then facilities, and then sub-centers. This organisational hierarchy would have five levels. Within each level, a number of organisational units would exist. During the aggregation process, data is aggregated from the lower organisational unit levels to higher levels. Depending on the aggregation operator, data may be "summed" or "averaged" within a given organisational unit level, to derive the aggregate total for all the organisational units that are contained within a higher level organisational unit level. For instance, if there are ten districts contained in a province and the aggregation operator for a given data element has been defined as "SUM", the aggregate total for the province would be calculated as the sum of the values of the individual ten distrincts contained in that province.</para>
</section>
<section>
<title>Period</title>
- <para/>
+ <para>Periods are used to represent the "when" dimension associated with data values. Data can easily be aggregated from weeks to months, from months to quarters, and from quarters to years. DHIS2 uses known rules of how these different intervals are contained within other intervals (for instance Quarter 1 2010 is known to contain January 2010, February 2010 an March 2010) in order to aggregate data from smaller time intervals, e.g. weeks, into longer time intervals, e.g. months. </para>
</section>
<section>
- <title>Data Element Categories</title>
- <para/>
+ <title>Data Elements and Categories</title>
+ <para>The data element dimension specifies "what" is being recorded by a particular data value. Data element categories are actually degenerate dimensions of the data element dimension, and are used to disaggregate the data element dimension into finer categories. Data element categories, such as "Age" and "Gender", are used to record a particular data element, typically for differen population groups. These categories can then be used to calculate the overall total for the category and the total of all categories. </para>
</section>
</section>
<section>
<title>Aggregation operators, methods for aggregation</title>
<section>
<title>Sum</title>
- <para/>
+ <para>The "sum" operator simply calcuates the sum of all data values that are contained within a particular aggregation matrix. For instance, if data is recorded on a monthly basis at the district level and is aggregated to provincial quarterly totals, all data contained in all districts for a given province and all weeks for the given quarter will be added together to obtained the aggregate total.</para>
</section>
<section>
<title>Average</title>
- <para/>
+ <para>When the average aggregation operator is selected, the unweighted average of all data values within a given aggregation matrix. </para>
+ <para>It is important to understand how DHIS2 treats null values in the context of the average operator. It is fairly common for some organisational units not to submit data for certain data elements. In the context of the average operator, the average results from the number of data elemements that are actually present (therefore NOT NULL) within a given aggregation matrix. If there are 12 districts within a given province, but only 10 of these have submitted data, the average aggreate will result from these ten values that are actually present in the database, and will not take into account the missing values. </para>
</section>
<section>
<title>Count</title>
@@ -133,7 +134,7 @@
</section>
<section>
<title>Define and run the report in DHIS</title>
- <para>(the very first time you need to configure where the BIRT report viewer is installed, go to ReportsâReportâConfigure report) In DHIS 2 you can define a report in the Reports module that you link to a report table and provide with a name. Then the report is ready to be generated and displayed, and this can be done in two ways, 1) run report with new data or run report with existing data. This all depends on whether your report table is populated already or not. Most likely you will have to run it with new data and then you are asked to provide values for the report parameters (if defined in the report table) and then the table will be populated in the background and a new window will show the report as soon as it is ready. The new window will actually be generated by the BIRT report viewer, which is a separate web application running on the same tomcat instance.</para>
+ <para>The very first time you need to configure where the BIRT report viewer is installed, go to ReportsâReportâConfigure report. In DHIS 2 you can define a report in the Reports module that you link to a report table and provide with a name. Then the report is ready to be generated and displayed, and this can be done in two ways: generate the report with new data or run report with existing data. This all depends on whether your report table has already been populated and contains the most recent data from the database. It is important to keep in mind that the data present in a report table is not automatically refreshed when new data has been imported into the database. It is therefore important to ensure that your report table is up to date, especially in multi-user enviornments when data updates may have been affected by other users. Most likely you will have to run it with new data and then you are asked to provide values for the report parameters (if defined in the report table) and then the table will be populated in the background and a new window will show the report as soon as it is ready. The new window will actually be generated by the BIRT report viewer, which is a separate web application than DHIS2.</para>
</section>
</section>
</section>