dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #24193
[Branch ~dhis2-documenters/dhis2/dhis2-docbook-docs] Rev 792: Analytics events, filtering
------------------------------------------------------------
revno: 792
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2-docbook-docs
timestamp: Tue 2013-08-27 11:49:46 +0200
message:
Analytics events, filtering
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-08-27 09:34:39 +0000
+++ src/docbkx/en/dhis2_user_man_web_api.xml 2013-08-27 09:49:46 +0000
@@ -1851,10 +1851,10 @@
<table frame="all">
<title>Query parameters</title>
<tgroup cols="4">
- <colspec colname="c1" colnum="1" colwidth="1.48*"/>
+ <colspec colname="c1" colnum="1" colwidth="1.44*"/>
<colspec colname="c2" colnum="2" colwidth="1*"/>
- <colspec colname="c3" colnum="3" colwidth="3.91*"/>
- <colspec colname="c4" colnum="4" colwidth="1.53*"/>
+ <colspec colname="c3" colnum="3" colwidth="3.83*"/>
+ <colspec colname="c4" colnum="4" colwidth="1.5*"/>
<thead>
<row>
<entry><emphasis role="italic">Query parameter</emphasis></entry>
@@ -1956,6 +1956,63 @@
this:</para>
<screen>api/analytics/events/query/eBAyeGv0exc?startDate=2012-01-01&endDate=2012-10-31&item=qrur9Dvnyt5&page=3&pageSize=20</screen>
</section>
+ <section>
+ <title>Filtering</title>
+ <para>Filters can be applied to data elements, person attributes and person identifiers. The
+ filtering is done through the query parameter value on the following format:</para>
+ <screen>&item=<item-id>;<operator>;<filter-value></screen>
+ <para>As an example, you can filter the "Weight" data element for values greater than 2000 and
+ lower than 4000 like this:</para>
+ <screen>&item=UXz7xuGCEhU;GT;2000&item=UXz7xuGCEhU;LT;4000</screen>
+ <para>The available operators are listed below.</para>
+ <table frame="all">
+ <title>Filter operators</title>
+ <tgroup cols="2">
+ <colspec colname="c1" colnum="1" colwidth="87.75pt"/>
+ <colspec colname="c2" colnum="2" colwidth="245.25pt"/>
+ <thead>
+ <row>
+ <entry>Operator</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>EQ</entry>
+ <entry>Equal to</entry>
+ </row>
+ <row>
+ <entry>GT</entry>
+ <entry>Greater than</entry>
+ </row>
+ <row>
+ <entry>GE</entry>
+ <entry>Greater than or equal to</entry>
+ </row>
+ <row>
+ <entry>LT</entry>
+ <entry>Less than</entry>
+ </row>
+ <row>
+ <entry>LE</entry>
+ <entry>Less than or equal to</entry>
+ </row>
+ <row>
+ <entry>NE</entry>
+ <entry>Not equal to</entry>
+ </row>
+ <row>
+ <entry>LIKE</entry>
+ <entry>Like (free text match)</entry>
+ </row>
+ <row>
+ <entry>IN</entry>
+ <entry>Equal to one of multiple values, separate values with colon (:)</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
<section>
<title>Response formats</title>
<para>The default response representation format is JSON. The requests must be using the HTTP