← Back to team overview

dhis2-users team mailing list archive

Re: Need Some Guidelines

 

Please have a look at [1], the syntax is a bit different for bulk datavalues

[1]
https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s10.html#d5e1561

--
Morten

On Wed, Apr 8, 2015 at 5:58 PM, Muhammad Bilal Siddqui <
m.bilalsiddqui@xxxxxxxxxxxxxxx> wrote:

> Yes, i think so
> so i tried in a following way
> {
>     "dataSet":"CR_DataSet",
>     "completeDate":"2015-04-08",
>     "dataValues": [
>         {
>             "dataElement":"CR_ControlID",
>             "orgUnit":"11101001",
>             "period":"20150312",
>             "value":"111-DEC-14-1-01001-3"
>         },
>         {
>             "dataElement":"CR_CampType",
>             "value":"0",
>             "orgUnit":"11101001",
>             "period":"20150312"
>         },
>         {
>             "dataElement":"CR_ControlID",
>             "value":"111-DEC-14-1-01001-5",
>             "orgUnit":"11101001",
>             "period":"20150311"
>         }
>     ]
> }
>
> But that gives me following conflict
> ConflictsElementDescriptionOrganisationUnitMust be provided to complete
> data set
>
> On Wed, Apr 8, 2015 at 3:47 PM, Morten Olav Hansen <mortenoh@xxxxxxxxx>
> wrote:
>
>> Hi Muhammad
>>
>> If you look at the docs, there should be an alternative format when you
>> need to send for multiple periods
>>
>> --
>> Morten
>>
>> On Wed, Apr 8, 2015 at 5:35 PM, Muhammad Bilal Siddqui <
>> m.bilalsiddqui@xxxxxxxxxxxxxxx> wrote:
>>
>>> Hi thanks for reply
>>>
>>> I tried following
>>> {
>>>   "dataSet": "dataSetID",
>>>   "completeDate": "date",
>>>   "period": "period",
>>>   "orgUnit": "orgUnitID",
>>>   "dataValues": [
>>>     { "dataElement": "dataElementID","value": "1" },
>>>     { "dataElement": "dataElementID","value": "2" },
>>>     { "dataElement": "dataElementID", "value": "3" }
>>>   ]
>>> }
>>>
>>> let suppose if i do from "period":"20150315" that will dumb data only
>>> for that day but i want to import for 3,4 different days like
>>> 20150315,20150316,20150317 ..
>>>
>>> for that i tried to put period value along with dataElement but it can't
>>> any help or maybe i am doing something wrong?
>>>
>>> On Wed, Apr 8, 2015 at 3:17 PM, Lars Helge Øverland <larshelge@xxxxxxxxx
>>> > wrote:
>>>
>>>> Hi Muhammad,
>>>>
>>>> you can find documentation for Web API data import here:
>>>>
>>>> https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s10.html
>>>>
>>>> regards,
>>>>
>>>> Lars
>>>>
>>>> On Wed, Apr 8, 2015 at 12:14 PM, Muhammad Bilal Siddqui <
>>>> m.bilalsiddqui@xxxxxxxxxxxxxxx> wrote:
>>>>
>>>>> I am using DHIS2 as a user i get copy from launchpad and set in my
>>>>> local system. Now i want to import some dataSet values in json format also
>>>>> want to complete them.
>>>>> I am trying to import data of 2 different periods of same organization
>>>>> and same dataset. How do i do that?
>>>>> --
>>>>> --
>>>>> Regards
>>>>> *Muhammad Bilal Siddiqui*
>>>>>
>>>>> *MicroMerger IT Solutions*
>>>>> Suite # 731, Street # 20
>>>>> Sector I-8/2 Islamabad.
>>>>> Pakistan 44000
>>>>>
>>>>> *C* : +923325694928  *P* : +92514863592
>>>>> *E* : m.bilalsiddqui@xxxxxxxxxxxxxxx <m.haroon@xxxxxxxxxxxxxxx>  *W*
>>>>>  : www.micromerger.com
>>>>>
>>>>>
>>>>> *This e-mail and any files transmitted with it are confidential to the
>>>>> intended recipient and may be privileged. If you are not the intended
>>>>> recipient, please immediately notify the sender. Whilst we have used
>>>>> Anti-Virus software to alert us to the presence of computer viruses, we
>>>>> cannot guarantee that this email and any files transmitted with it are free
>>>>> from them.*N : Think before print do you really need this on paper.
>>>>> thanks
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> --
>>> Regards
>>> *Muhammad Bilal Siddiqui*
>>>
>>> *MicroMerger IT Solutions*
>>> Suite # 731, Street # 20
>>> Sector I-8/2 Islamabad.
>>> Pakistan 44000
>>>
>>> *C* : +923325694928  *P* : +92514863592
>>> *E* : m.bilalsiddqui@xxxxxxxxxxxxxxx <m.haroon@xxxxxxxxxxxxxxx>  *W* :
>>> www.micromerger.com
>>>
>>>
>>> *This e-mail and any files transmitted with it are confidential to the
>>> intended recipient and may be privileged. If you are not the intended
>>> recipient, please immediately notify the sender. Whilst we have used
>>> Anti-Virus software to alert us to the presence of computer viruses, we
>>> cannot guarantee that this email and any files transmitted with it are free
>>> from them.*N : Think before print do you really need this on paper.
>>> thanks
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>
>
>
> --
> --
> Regards
> *Muhammad Bilal Siddiqui*
>
> *MicroMerger IT Solutions*
> Suite # 731, Street # 20
> Sector I-8/2 Islamabad.
> Pakistan 44000
>
> *C* : +923325694928  *P* : +92514863592
> *E* : m.bilalsiddqui@xxxxxxxxxxxxxxx <m.haroon@xxxxxxxxxxxxxxx>  *W* :
> www.micromerger.com
>
>
> *This e-mail and any files transmitted with it are confidential to the
> intended recipient and may be privileged. If you are not the intended
> recipient, please immediately notify the sender. Whilst we have used
> Anti-Virus software to alert us to the presence of computer viruses, we
> cannot guarantee that this email and any files transmitted with it are free
> from them.*N : Think before print do you really need this on paper. thanks
>

Follow ups

References