← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-documenters/dhis2/dhis2-docbook-docs] Rev 1145: document field converters

 

------------------------------------------------------------
revno: 1145
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2-docbook-docs
timestamp: Wed 2014-07-16 12:57:04 +0700
message:
  document field converters
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-07-16 05:29:37 +0000
+++ src/docbkx/en/dhis2_user_man_web_api.xml	2014-07-16 05:57:04 +0000
@@ -575,7 +575,48 @@
         this:<screen>/api/dataElements/ID?fields=id|rename(i),name|rename(n)</screen></para>
       <para>This will rename the <emphasis role="italic">id</emphasis> property to <emphasis
           role="italic">i</emphasis> and <emphasis role="italic">name</emphasis> property to
-          <emphasis role="italic">n</emphasis>.</para>
+          <emphasis role="italic">n</emphasis>. <emphasis role="italic">Please note that the format
+          should be considered beta in 2.17, and the format might be changed in
+        2.18.</emphasis></para>
+    </section>
+    <section>
+      <title>Field converters</title>
+      <para>In DHIS 2.17 alongside transformers we also introduced field converters, while field
+        transformers usually do minor changes to the data stream (name changes etc), field
+        converters can completely change the output of the data. For 2.17 we are including 3 field
+          converters:<table frame="all">
+          <title>Field converters</title>
+          <tgroup cols="2">
+            <colspec colname="c1" colnum="1" colwidth="1*"/>
+            <colspec colname="c2" colnum="2" colwidth="3.76*"/>
+            <thead>
+              <row>
+                <entry>Name</entry>
+                <entry>Description</entry>
+              </row>
+            </thead>
+            <tbody>
+              <row>
+                <entry>size</entry>
+                <entry>Gives sizes of strings (length) and collections, i.e.
+                  /api/dataElements?fields=dataSets::size</entry>
+              </row>
+              <row>
+                <entry>isEmpty</entry>
+                <entry>Is string or collection empty, i.e.
+                  /api/dataElements?fields=dataSets::isEmpty</entry>
+              </row>
+              <row>
+                <entry>isNotEmpty</entry>
+                <entry>Is string or collection not empty, i.e.
+                  /api/dataElements?fields=dataSets::isNotEmpty</entry>
+              </row>
+            </tbody>
+          </tgroup>
+        </table></para>
+      <para><emphasis role="italic">Please note that the format should be considered beta in 2.17,
+          and the format might be changed in 2.18.</emphasis>
+      </para>
     </section>
   </section>
   <section>