------------------------------------------------------------ revno: 6287 committer: Lars Helge Overland <larshe...@gmail.com> branch nick: dhis2 timestamp: Sat 2012-03-17 19:28:42 +0100 message: Improved datavalueset description modified: dhis-2/dhis-web/dhis-web-api/src/main/resources/templates/html/dataValueSets.xsl
-- lp:dhis2 https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk Your team DHIS 2 developers is subscribed to branch lp:dhis2. To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-api/src/main/resources/templates/html/dataValueSets.xsl' --- dhis-2/dhis-web/dhis-web-api/src/main/resources/templates/html/dataValueSets.xsl 2012-02-27 17:10:09 +0000 +++ dhis-2/dhis-web/dhis-web-api/src/main/resources/templates/html/dataValueSets.xsl 2012-03-17 18:28:42 +0000 @@ -4,23 +4,36 @@ xmlns:d="http://dhis2.org/schema/dxf/2.0" > - <xsl:template match="d:dataValueSets"> - - - <pre style="font-size: 0.9em;"> - <![CDATA[ -The DataValueSet resource gives you a mean to POST data values into DHIS 2. - -Period values are given in ISO format. A complete example of a data value set: - +<xsl:template match="d:dataValueSets"> + +<p>The DataValueSet resource provides a way to POST data values into DHIS 2.</p> + +<p>Identifiers can be found by browsing the API from the <a href="../api/resources">resources endpoint</a>.</p> + +<p>Period values are given in ISO format. Some examples:</p> + +<table> +<tr><th>Interval</th><th>Format</th><th>Example</th><th>Description</th></tr> +<tr><td>Day</td><td>yyyyMMdd</td><td>20040315</td><td>March 15 2004</td></tr> +<tr><td>Week</td><td>yyyyWn</td><td>2004W10</td><td>Week 10 2004</td></tr> +<tr><td>Month</td><td>yyyyMM</td><td>200403</td><td>March 2004</td></tr> +<tr><td>Quarter</td><td>yyyyQn</td><td>2004Q1</td><td>January-March 2004</td></tr> +<tr><td>Sixmonth</td><td>yyyySn</td><td>2004S1</td><td>Janary-June 2004</td></tr> +<tr><td>Year</td><td>yyyy</td><td>2004</td><td>2004</td></tr> +</table> + +<p>A complete example of a data value set:</p> + +<pre style="font-size:12pt;"> +<![CDATA[ <dataValueSet xmlns="http://dhis2.org/schema/dxf/2.0" period="periodISODate" dataSet="dataSetID" orgUnit="orgUnitID"> <dataValue dataElement="dataElementID" categoryOptionCombo="categoryOptionComboID" value="1" /> <dataValue dataElement="dataElementID" categoryOptionCombo="categoryOptionComboID" value="2" /> <dataValue dataElement="dataElementID" categoryOptionCombo="categoryOptionComboID" value="3" /> </dataValueSet> - ]]> - </pre> +]]> +</pre> - </xsl:template> +</xsl:template> </xsl:stylesheet>
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp