Hi Guys (Thanks Morten for the quick reply, sent out the mail too early)


I’m working on capturing some tracker data (multiple events with
registration) into DHIS2 via the Web API and I’m using the documentation
here : https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s37.html.

The payload example provided in the documentation (In Json) is as follows:



{

    "trackedEntity": "tracked-entity-id",

    "orgUnit": "org-unit-id",

    "attributes": [ {

        "attribute": "attribute-id",

        "value": "attribute-value"

    } ]

}



I’m looking for an xml example of the same? Could you kindly assist?



I’m also looking for an xml example payload for enrolling the newly Tracked
Entity Instance. The Json example provided in the documentation is as
follows:



{

    "trackedEntityInstance": "ZRyCnJ1qUXS",

    "program": "S8uo8AlvYMz",

    "dateOfEnrollment": "2013-09-17",

    "dateOfIncident": "2013-09-17"

}



I’m looking for the xml example of the same. Could you kindly assist?



Regards





*Farai Mutero*



Software Development Team

*Health Information Systems Program (HISP) - SA
------------------------------------------------------------------------------*
Email:       fa...@hisp.org
Cell:          +27 84 554 8849
Skype:      fmutero
Website:   http://hispsa.org



On Wed, Feb 25, 2015 at 2:07 PM, Morten Olav Hansen <morte...@gmail.com>
wrote:

> I think you left something out? Also include any errors
>
>
> On Wednesday, February 25, 2015, Farai Mutero <fmut...@gmail.com> wrote:
>
>> Hi Guys
>>
>> I'm working on capturing some tracker data through the Web-API and I'm
>> using the documentation here
>> https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s37.html
>>
>> The payload example provided in the documentation for creating a
>> TrackedEntityInstance (in Json) is as follows:
>>
>>
>> --
>> Farai Mutero
>>
>>
>
> --
> --
> Morten
>
>


-- 
Farai Mutero
_______________________________________________
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

Reply via email to