← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-documenters/dhis2/dhis2-docbook-docs] Rev 990: TEI query, status in program

 

------------------------------------------------------------
revno: 990
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2-docbook-docs
timestamp: Fri 2014-03-28 14:16:21 +0100
message:
  TEI query, status in program
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	2014-03-27 12:09:39 +0000
+++ src/docbkx/en/dhis2_user_man_web_api.xml	2014-03-28 13:16:21 +0000
@@ -4069,6 +4069,11 @@
             <entry>Program identifier. Restricts instances to being enrolled in the given
               program.</entry>
           </row>
+            <row>
+              <entry>programStatus</entry>
+              <entry>Status of the instance for the given program. Can be ACTIVE | COMPLETED |
+                CANCELLED.</entry>
+            </row>
           <row>
             <entry>trackedEntity</entry>
             <entry>Tracked entity identifer. Restricts instances to the given tracked instance
@@ -4098,9 +4103,14 @@
             >ou</emphasis> parameter (one or many).</para>
       </listitem>
       <listitem>
-        <para>Only one of the <emphasis role="italic">program</emphasis> and <emphasis role="italic"
-            >trackedEntity</emphasis> parameters can be specified (zero or one).</para>
-      </listitem>
+          <para>Only one of the <emphasis role="italic">program</emphasis> and <emphasis
+              role="italic">trackedEntity</emphasis> parameters can be specified (zero or
+            one).</para>
+        </listitem>
+        <listitem>
+          <para>If <emphasis role="italic">programStatus</emphasis> is specified then <emphasis
+              role="italic">program</emphasis> must also be specified.</para>
+        </listitem>
     </itemizedlist>
     <para>A query for all instances associated with a specific organisation unit can look like
       this:</para>
@@ -4119,7 +4129,7 @@
     <screen>api/trackedEntityInstances.json?attribute=zHXD5Ve1Efw:EQ:A&amp;filter=AMpUYgxuCaE:LIKE:Road&amp;ou=DiszpKrYNg8</screen>
     <para>To constrain the response to instances which are part of a specific program you can
       include a program query parameter like this:</para>
-    <screen>api/trackedEntityInstances.json?attribute=zHXD5Ve1Efw:EQ:A&amp;ou=O6uvpzGd5pu&amp;ouMode=DESCENDANTS&amp;program=uy2gU8kT1jF</screen>
+    <screen>api/trackedEntityInstances.json?attribute=zHXD5Ve1Efw:EQ:A&amp;ou=O6uvpzGd5pu&amp;ouMode=DESCENDANTS&amp;program=ur1Edk5Oe2n</screen>
     <para>To constrain the response to instances of a specific tracked entity you can include a
       tracked entity query parameter like this:</para>
     <screen>api/trackedEntityInstances.json?attribute=zHXD5Ve1Efw:EQ:A&amp;ou=O6uvpzGd5pu&amp;ouMode=DESCENDANTS&amp;trackedEntity=cyl5vuJ5ETQ</screen>
@@ -4186,6 +4196,9 @@
           <para>jsonp (application/javascript)</para>
         </listitem>
         <listitem>
+          <para>xml (application/xml)</para>
+        </listitem>
+        <listitem>
           <para>csv (application/csv)</para>
         </listitem>
         <listitem>