← Back to team overview

dhis2-devs team mailing list archive

Re: Tracked Entity Instance Creation And Enrollment Payload Example

 

Hi Farai

Are you coming to our VN workshop? level 2-3, we will do a big workshop on
integration, apps, web-api etc..

I think it might be good for you? I'm sorry, but the docs are not so good
in several places... maybe fixing docs should be part of the integration
workshop... i can show people how it works, its ok for single even no
registration, but after that... its lacking in several places

Just write me directly with what you want, and I can guide you

--
Morten

On Thu, Feb 26, 2015 at 1:04 AM, Farai Mutero <fmutero@xxxxxxxxx> wrote:

> 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:       farai@xxxxxxxx
> Cell:          +27 84 554 8849
> Skype:      fmutero
> Website:   http://hispsa.org
>
>
>
> On Wed, Feb 25, 2015 at 2:07 PM, Morten Olav Hansen <mortenoh@xxxxxxxxx>
> wrote:
>
>> I think you left something out? Also include any errors
>>
>>
>> On Wednesday, February 25, 2015, Farai Mutero <fmutero@xxxxxxxxx> 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
>
>

References