dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #38254
Re: What you export should be similar to what you import
Thanks Mortem,
User may not use XML or Json for the reason that he/she may not be familiar
with them. Creating import files from scratch.
Secondary you want to create new tracked entity attributes through import,
just like a CSV file attached for creating new data elements for both
tracker and aggregate.
Regards
On Fri, Jun 26, 2015 at 11:29 AM, Morten Olav Hansen <mortenoh@xxxxxxxxx>
wrote:
> And to clarify, do you want to create/update TrackedEntity Attributes, or
> do you want to attach a TrackedEntity Attribute to a Program (it then by
> definition becomes a Program Attribute)
>
> --
> Morten
>
> On Fri, Jun 26, 2015 at 3:28 PM, Morten Olav Hansen <mortenoh@xxxxxxxxx>
> wrote:
>
>> Ok, is there any reason why you can't just use JSON or XML?
>>
>> --
>> Morten
>>
>> On Fri, Jun 26, 2015 at 3:25 PM, Prosper BT <ptb3000@xxxxxxxxx> wrote:
>>
>>> Thanks Bob and Morten,
>>>
>>> Just like we import data elements we would also like to import Program
>>> tracker attributes in CSV format.
>>>
>>> [image: Inline image 1]
>>> Regards
>>>
>>> On Fri, Jun 26, 2015 at 11:18 AM, Bob Jolliffe <bobjolliffe@xxxxxxxxx>
>>> wrote:
>>>
>>>> Prosper I don't think that we will ever hope to have the CSV export as
>>>> complete as the xml/json variant. I see two reasons:
>>>>
>>>> 1. the flat csv data model makes it more work to map to complex objects
>>>> 2. the xml and json mappings are bound in the source code (using
>>>> annotations) whereas csv rendering always has to be done a s separate
>>>> process.
>>>>
>>>> So it is unreasonable to expect we will have a csv expression of our
>>>> entire data model in the same way we have with xml/json. Pieces may be
>>>> added over time to satisfy particular use cases.
>>>>
>>>> Of course your original question about importing/exporting attributes
>>>> is different. Can you elaborate more on that?
>>>>
>>>> On 26 June 2015 at 08:50, Prosper BT <ptb3000@xxxxxxxxx> wrote:
>>>>
>>>>> Thanks Ola,
>>>>>
>>>>> First of all there is no export of Meta data in CSV format
>>>>>
>>>>> Secondly see all the meta data export options compared to what you can
>>>>> import using CSV
>>>>>
>>>>> [image: Inline image 2]
>>>>>
>>>>> [image: Inline image 1]
>>>>>
>>>>> On Fri, Jun 26, 2015 at 10:19 AM, Ola Hodne Titlestad <
>>>>> olati@xxxxxxxxxx> wrote:
>>>>>
>>>>>> Hi Prosper,
>>>>>>
>>>>>> Could you elaborate a bit more on this?
>>>>>>
>>>>>> Are you suggesting to put options in the import user interface to
>>>>>> select/filter what parts of a file to import?
>>>>>>
>>>>>> Or are you saying that the import process doesn't support importing
>>>>>> attributes at all, even when it's an option to export attributes?
>>>>>>
>>>>>> Ola
>>>>>> -------
>>>>>>
>>>>>> On Thu, 25 Jun 2015 08:37 Prosper BT <ptb3000@xxxxxxxxx> wrote:
>>>>>>
>>>>>>> Dear Team,
>>>>>>>
>>>>>>> It seems the lists of Meta data importation and exportation
>>>>>>> options. I would assume we should have same options on what you can import
>>>>>>> and export as far as meta data is concerned.
>>>>>>>
>>>>>>> Like I can export attributes, but I cant import attributes
>>>>>>>
>>>>>>> Regards
>>>>>>>
>>>>>>> --
>>>>>>> Prosper Behumbiize, MPH
>>>>>>> Global HISP| University Of Oslo/HISP Uganda
>>>>>>> +256 751 751 776 | +256 776 139 139
>>>>>>> ptb3000@xxxxxxxxx | prosper@xxxxxxxxx | Skype: prospertb
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Mailing list: https://launchpad.net/~dhis2-devs
>>>>>>> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>>>>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>>>>>> More help : https://help.launchpad.net/ListHelp
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Prosper Behumbiize, MPH
>>>>> Global HISP| University Of Oslo/HISP Uganda
>>>>> +256 751 751 776 | +256 776 139 139
>>>>> ptb3000@xxxxxxxxx | prosper@xxxxxxxxx | Skype: prospertb
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Mailing list: https://launchpad.net/~dhis2-devs
>>>>> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>>>> More help : https://help.launchpad.net/ListHelp
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Prosper Behumbiize, MPH
>>> Global HISP| University Of Oslo/HISP Uganda
>>> +256 751 751 776 | +256 776 139 139
>>> ptb3000@xxxxxxxxx | prosper@xxxxxxxxx | Skype: prospertb
>>>
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>
--
Prosper Behumbiize, MPH
Global HISP| University Of Oslo/HISP Uganda
+256 751 751 776 | +256 776 139 139
ptb3000@xxxxxxxxx | prosper@xxxxxxxxx | Skype: prospertb
Name,UID,Code,Short name,Description,Form name,Domain type,Value type,Number type,Text type,Aggregation operator,Category combination UID,Url,Zero is significant,Option set,Comment option set
HTC: Was any client served at this site/location during this month?,phjA8IJUtXs, HTC,Was any client served at this site/location during this month?,,,aggregate,int,posInt,,,,,,,
HTC 1: Sex/ Pregnancy,Vxi2eFQjfVM, HTC 1,1: Sex/ Pregnancy,,,aggregate,int,posInt,,,ICY6Jfy2glu,,,,
HTC 2: Age Groups,dpYIXTtRHrw, HTC 2,2: Age Groups,,,aggregate,int,posInt,,,Qh5RLefqtUo,,,,
HTC 3: HTC Type Access,SvV9v17Jj28, HTC 3,3: HTC Type Access,,,aggregate,int,posInt,,,Jp6F33ViJjJ,,,,
HTC 4: Last HIV Test,xeuKp4wH1DH, HTC 4,4: Last HIV Test,,,aggregate,int,posInt,,,vZsSWTOgeVm,,,,
HTC 5: Partner ,Sfp0HQla5zq, HTC 5,5: Partner ,,,aggregate,int,posInt,,,IIhY8DqOCDT,,,,
HTC 6: Out Come Summary,IYpAnylK2lY, HTC 6,6: Out Come Summary,,,aggregate,int,posInt,,,RuC00gNhA1v,,,,
HTC 7: Result Given to Client,ufSA4mhbhsF, HTC 7,7: Result Given to Client,,,aggregate,int,posInt,,,XngaEtMlxSX,,,,
HTC 8: Partner HTC Slips Given,z0eTTVDHtJC, HTC 8,8: Partner HTC Slips Given,,,aggregate,int,posInt,,,,,,,
HTC: Total Tests in stock at 1st day of Reporting Month Opening,Xv4g3mdtkH9, HTC 9,Total Tests in stock at 1st day of Reporting Month Opening,,,aggregate,int,posInt,,,FOPFZj8R5rS,,,,
HTC: Total tests received at this location during this month Receipts,av2uU19kEDy, HTC 10,Total tests received at this location during this month Receipts,,,aggregate,int,posInt,,,FOPFZj8R5rS,,,,
HTC: Total tests used for testing clients Used for clients,QMMcAAPmP55, HTC 11,Total tests used for testing clients Used for clients,,,aggregate,int,posInt,,,FOPFZj8R5rS,,,,
" HTC: total test used for other purposes (QC, PT, Training) Used for Other",SxsrrRuFdPi, HTC 12,"total test used for other purposes (QC, PT, Training) Used for Other",,,aggregate,int,posInt,,,FOPFZj8R5rS,,,,
HTC: Total tests expired/ Disposed Losses,bBywBofL1gJ, HTC 13,Total tests expired/ Disposed Losses,,,aggregate,int,posInt,,,FOPFZj8R5rS,,,,
HTC: Expected remaning Balance Balance,EI9eeNqvtf5, HTC 14,Expected remaning Balance Balance,,,aggregate,int,posInt,,,FOPFZj8R5rS,,,,
HTC: Physical tests in stock at end of last day of month Closing,GsKHMGL4q3p, HTC 15,Physical tests in stock at end of last day of month Closing,,,aggregate,int,posInt,,,FOPFZj8R5rS,,,,
HTC: Excess test unaccounted for (write+or-) Dofference,hPxWZjE0xEG, HTC 16,Excess test unaccounted for (write+or-) Dofference,,,aggregate,int,posInt,,,FOPFZj8R5rS,,,,
Follow ups
References