← Back to team overview

dhis2-devs team mailing list archive

Re: [Dhis2-users] WebAPI for register tracker instance

 

In 2.24 we have added the ability to create TEI and enroll at same time
which might be interesting for you

On Thursday, 7 July 2016, channara rin <rin.channara@xxxxxxxxx> wrote:

> i see, thank alot for supporting...
>
> On Thu, Jul 7, 2016 at 11:56 AM, Morten Olav Hansen <morten@xxxxxxxxx
> <javascript:_e(%7B%7D,'cvml','morten@xxxxxxxxx');>> wrote:
>
>> Ah yes, I was assuming you were sending for an existing tracked entity.
>>
>> If not, you will need to create the TEI first
>>
>>
>> On Thursday, 7 July 2016, channara rin <rin.channara@xxxxxxxxx
>> <javascript:_e(%7B%7D,'cvml','rin.channara@xxxxxxxxx');>> wrote:
>>
>>> Hi morten.
>>> you mean, i need run two commands through web api, first, create track
>>> entity intance, then create program stage.?
>>>
>>> On Thu, Jul 7, 2016 at 10:14 AM, Morten Olav Hansen <morten@xxxxxxxxx>
>>> wrote:
>>>
>>>> Hi Channara
>>>>
>>>> You can follow the guides at [1] and then just add the
>>>> "trackedEntityInstance" field to it to say the TEI it will add events for,
>>>> and then the "programStage" to say which stage to add data for.
>>>>
>>>> [1]
>>>> http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s19.html
>>>>
>>>> --
>>>> Morten Olav Hansen
>>>> Senior Engineer, DHIS 2
>>>> University of Oslo
>>>> http://www.dhis2.org
>>>>
>>>> On Thu, Jul 7, 2016 at 9:44 AM, channara rin <rin.channara@xxxxxxxxx>
>>>> wrote:
>>>>
>>>>> Hi all DHIS2,
>>>>> do you know how can i use webAPI for register new tracker instance
>>>>> with multiple event?
>>>>>
>>>>> regards,
>>>>> channara
>>>>>
>>>>> _______________________________________________
>>>>> Mailing list: https://launchpad.net/~dhis2-users
>>>>> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
>>>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>
>>>>>
>>>>
>>>
>>
>> --
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>>
>

-- 
-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

Follow ups

References