------------------------------------------------------------ revno: 5672 committer: Morten Olav Hansen <[email protected]> branch nick: dhis2 timestamp: Fri 2012-01-06 10:46:10 +0100 message: added file.. added: dhis-2/dhis-web/dhis-web-api/src/main/resources/templates/html/dataValueSet.vm
-- 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
=== added file 'dhis-2/dhis-web/dhis-web-api/src/main/resources/templates/html/dataValueSet.vm' --- dhis-2/dhis-web/dhis-web-api/src/main/resources/templates/html/dataValueSet.vm 1970-01-01 00:00:00 +0000 +++ dhis-2/dhis-web/dhis-web-api/src/main/resources/templates/html/dataValueSet.vm 2012-01-06 09:46:10 +0000 @@ -0,0 +1,33 @@ + +The DataValueSet resource gives you a mean to POST dataValues into DHIS 2. + +It needs a phoneNumber as the query string, this will be matched against the phoneNumber for the users +in the system, and the dataValues will be added to their orgUnit. + +The supported format is XML, and the root dataValueSet is declared with the following attributes + +dataSet - The UID of the dataset to report on +period - The period to report on +orgUnit - The organisation unit to report on + +The actual dataValues are sent with a format matching this + +<dataValues> + <dataValue dataElement="dataElementUid" value="1" /> + <dataValue dataElement="dataElementUid" value="2" /> + <dataValue dataElement="dataElementUid" value="3" /> + <dataValue dataElement="dataElementUid" value="4" /> + <dataValue dataElement="dataElementUid" value="5" /> +</dataValues> + +So, a complete example would be: + +<dataValueSet dataSet="dataSetUid" period="2012-01-01" orgUnit="orgUnitUid"> + <dataValues> + <dataValue dataElement="dataElementUid" value="1" /> + <dataValue dataElement="dataElementUid" value="2" /> + <dataValue dataElement="dataElementUid" value="3" /> + <dataValue dataElement="dataElementUid" value="4" /> + <dataValue dataElement="dataElementUid" value="5" /> + </dataValues> +</dataValueSet>
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : [email protected] Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp

