=== modified file 'src/docbkx/en/dhis2_user_man_web_api.xml' --- src/docbkx/en/dhis2_user_man_web_api.xml 2013-09-28 12:41:14 +0000 +++ src/docbkx/en/dhis2_user_man_web_api.xml 2013-09-28 14:03:02 +0000 @@ -2160,7 +2160,7 @@ ou Yes Organisation unit identifiers in a single parameter value separated by - ";". + ":". Organisation unit identifiers @@ -2177,7 +2177,7 @@ Item identifier including data elements, person attributes and person identifiers. Can also be the fixed person attributes GENDER and ISDEAD. Parameter can be repeated any number of times. Filters can be applied to an item on the format - <item-id>;<operator>;<filter>. Filter values are case-insensitive. + <item-id>:<operator>:<filter>. Filter values are case-insensitive. Operators can be EQ | GT | GE | LT | LE | NE | LIKE | IN @@ -2212,18 +2212,18 @@ Event queries should be on the format described below. Item identifiers can refer to any of data elements, person attributes and person identifiers. Items can optionally have a query operator and a filter. - api/analytics/events/query/<program-id>?startDate=yyyy-MM-dd&endDate=yyyy-MM-dd&ou=<ou-id>;<ou-id>&item=<item-id>&item=<item-id>;<operator>;<filter> + api/analytics/events/query/<program-id>?startDate=yyyy-MM-dd&endDate=yyyy-MM-dd&ou=<ou-id>:<ou-id>&item=<item-id>&item=<item-id>:<operator>:<filter> For example, to retrieve events from the "Inpatient morbidity and mortality" program between January and October 2012, where the "Gender" and "Age" data elements are included and the "Age" item is filtered on "18", you can use the following query: - api/analytics/events/query/eBAyeGv0exc?startDate=2012-01-01&endDate=2012-10-31&ou=O6uvpzGd5pu;fdc6uOvgoji&item=oZg33kd9taw&item=qrur9Dvnyt5;EQ;18 + api/analytics/events/query/eBAyeGv0exc?startDate=2012-01-01&endDate=2012-10-31&ou=O6uvpzGd5pu:fdc6uOvgoji&item=oZg33kd9taw&item=qrur9Dvnyt5:EQ:18 To retrieve events for the "Birth" program stage of the "Child programme" program between March and December 2012, where the "Weight" data element, filtered for values larger than 2000, and the "Address" person attribute are included: - api/analytics/events/query/IpHINAT79UW?stage=A03MvHHogjR&startDate=2012-03-01&endDate=2012-12-31&ou=O6uvpzGd5pu&item=UXz7xuGCEhU;GT;2000&item=AMpUYgxuCaE + api/analytics/events/query/IpHINAT79UW?stage=A03MvHHogjR&startDate=2012-03-01&endDate=2012-12-31&ou=O6uvpzGd5pu&item=UXz7xuGCEhU:GT:2000&item=AMpUYgxuCaE Fixed person attributes can be specified as items as well. Currently the GENDER and ISDEAD attributes are suppored and can be included and filtered on like this: - api/analytics/events/query/IpHINAT79UW?stage=A03MvHHogjR&startDate=2012-03-01&endDate=2012-12-31&ou=O6uvpzGd5pu&item=UXz7xuGCEhU;GT;2000&item=ISDEAD&item=GENDER;EQ;F + api/analytics/events/query/IpHINAT79UW?stage=A03MvHHogjR&startDate=2012-03-01&endDate=2012-12-31&ou=O6uvpzGd5pu&item=UXz7xuGCEhU:GT:2000&item=ISDEAD&item=GENDER:EQ:F Sorting can be applied to the query for the "executiondate" of the event and any items. To sort descending on the executiondate and ascending on the "Age" data element item you can use: @@ -2239,12 +2239,12 @@ Filtering 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: - &item=<item-id>;<operator>;<filter-value> + &item=<item-id>:<operator>:<filter-value> As an example, you can filter the "Weight" data element for values greater than 2000 and lower than 4000 like this: - &item=UXz7xuGCEhU;GT;2000&item=UXz7xuGCEhU;LT;4000 + &item=UXz7xuGCEhU:GT:2000&item=UXz7xuGCEhU:LT:4000 You can filter the "Age" data element for multiple, specific ages using the IN operator - like this:&item=qrur9Dvnyt5;IN;18:19:20 + like this:&item=qrur9Dvnyt5:IN:18;19;20 The available operators are listed below. Filter operators @@ -2427,12 +2427,12 @@ resource which is described in the previous section. Please make sure you have read the mentioned section before progressing.Aggregate event queries should be on the format described below. - api/analytics/events/aggregate/<program-id>?startDate=yyyy-MM-dd&endDate=yyyy-MM-dd&ou=<ou-id>;<ou-id>&item=<item-id>&item=<item-id>;<operator>;<filter> + api/analytics/events/aggregate/<program-id>?startDate=yyyy-MM-dd&endDate=yyyy-MM-dd&ou=<ou-id>:<ou-id>&item=<item-id>&item=<item-id>:<operator>:<filter>For example, to retrieve aggregate numbers for events from the "Inpatient morbidity and mortality" program between January and October 2012, where the "Gender" and "Age" data elements are included, the "Age" item is filtered on "18" and the "Gender" item is filtered on "Female", you can use the following query: - api/analytics/events/aggregate/eBAyeGv0exc?startDate=2012-01-01&endDate=2012-10-31&ou=O6uvpzGd5pu;fdc6uOvgo7ji&item=oZg33kd9taw;EQ;Female&item=qrur9Dvnyt5;EQ;18 + api/analytics/events/aggregate/eBAyeGv0exc?startDate=2012-01-01&endDate=2012-10-31&ou=O6uvpzGd5pu:fdc6uOvgo7ji&item=oZg33kd9taw:EQ:Female&item=qrur9Dvnyt5:EQ:18The response will look similar to this:{ "headers": [