dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #21386
[Branch ~dhis2-documenters/dhis2/dhis2-docbook-docs] Rev 673: Analytics, user org unit feature
------------------------------------------------------------
revno: 673
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2-docbook-docs
timestamp: Sat 2013-03-09 15:36:49 +0100
message:
Analytics, user org unit feature
modified:
src/docbkx/en/dhis2_user_man_web_api.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_user_man_web_api.xml'
--- src/docbkx/en/dhis2_user_man_web_api.xml 2013-03-08 07:05:21 +0000
+++ src/docbkx/en/dhis2_user_man_web_api.xml 2013-03-09 14:36:49 +0000
@@ -1119,9 +1119,9 @@
<table frame="all">
<title>Dimensions and dimension items</title>
<tgroup cols="3">
- <colspec colname="c1" colnum="1" colwidth="2.9*"/>
+ <colspec colname="c1" colnum="1" colwidth="3.17*"/>
<colspec colname="c2" colnum="2" colwidth="1*"/>
- <colspec colname="newCol3" colnum="3" colwidth="3.38*"/>
+ <colspec colname="newCol3" colnum="3" colwidth="4.03*"/>
<thead>
<row>
<entry><emphasis role="italic">Dimension</emphasis></entry>
@@ -1143,7 +1143,8 @@
<row>
<entry>Organisation unit hierarchy</entry>
<entry>ou</entry>
- <entry>Organisation unit identifiers</entry>
+ <entry>Organisation unit identifiers and USER_ORGUNIT |
+ USER_ORGUNIT_CHILDREN</entry>
</row>
<row>
<entry>Categories</entry>
@@ -1181,6 +1182,9 @@
- notice how the group set identifier is used as dimension identifier and the groups as
dimension items:</para>
<screen>api/analytics?dimension=Bpx0589u8y0:oRVt7g429ZO;MAs88nJc9nL&dimension=pe:2012&dimension=ou:ImspTQPwCqd</screen>
+ <para>To query using relative periods and organiastion units associated with the current user
+ you can use a URL like this:</para>
+ <screen>api/analytics?dimension=dx:fbfJHSPpUQD;cYeuwXTCPkU&dimension=pe:LAST_12_MONTHS&dimension=ou:USER_ORGUNIT</screen>
<para>A few things to be aware of when using the analytics resource are listed below.</para>
<itemizedlist>
<listitem>
@@ -1199,6 +1203,12 @@
the period format and available relative periods.</para>
</listitem>
<listitem>
+ <para>The organisation unit dimension you can specify the items to be the organisation unit
+ or hierarchy children of the organisation unit associated with the user authenticated for
+ the request using they keys USER_ORGUNIT or USER_ORGUNIT_CHILDREN as items, respectively.
+ You can also specify organisation unit identifiers, or a combination of both.</para>
+ </listitem>
+ <listitem>
<para>For the organisation unit dimension the dimension items are the organisation units and
their sub-hierarchy - data will be aggregated for all organisation units below the given
organisation unit in the hierarchy.</para>
@@ -1242,13 +1252,14 @@
<entry>aggregationType</entry>
<entry>No</entry>
<entry>Aggregation type to use in the aggregation process</entry>
- <entry>SUM, AVERAGE_INT, AVERAGE_INT_DISAGGREGATION, AVERAGE_BOOL, COUNT</entry>
+ <entry>SUM | AVERAGE_INT | AVERAGE_INT_DISAGGREGATION | AVERAGE_BOOL |
+ COUNT</entry>
</row>
<row>
<entry>measureCriteria</entry>
<entry>No</entry>
<entry>Filters for the data/measures</entry>
- <entry>EQ, GT, GE, LT, LE</entry>
+ <entry>EQ | GT | GE | LT | LE</entry>
</row>
</tbody>
</tgroup>