← Back to team overview

dhis2-users team mailing list archive

Re: New Organization Units Import

 

That should be "without any ou-levels"

--
Morten


On Wed, Dec 5, 2012 at 4:24 PM, Morten Olav Hansen <mortenoh@xxxxxxxxx>wrote:

> Do you have a structure in the data your are importing, or is it a flat
> list with any ou-levels? I would personally use the DHIS 2 web-api to
> import the data.
>
> For examples, look at our documentation for meta-data import:
> http://dhis2.org/doc/snapshot/en/user/html/ch23s04.html
>
> So you would use something like:
> <metaData>
>   <organisationUnits>
>     <organisationUnit> .... </organisationUnit>
>     <organisationUnit> .... </organisationUnit>
>     <organisationUnit> .... </organisationUnit>
>     <organisationUnit> .... </organisationUnit>
>   </organisationUnits>
> </metaData>
>
> For examples of the meta-data, have a look at:
> http://apps.dhis2.org/demo/api
> http://apps.dhis2.org/demo/api/metaData.xml
>
> This can then be pushed into DHIS using your username/password, and a
> proper content-type (I would personally use cURL for this)
>
> --
> Morten
>
>
> On Wed, Dec 5, 2012 at 4:20 PM, ChangJames <jamesbjchang@xxxxxxxxxxx>wrote:
>
>>   Hi,
>>
>> Is there any easy way(/preferred way) to import Organization Units (New
>> ones) on blank DHIS2 system?
>> I have a list of organization units I like to add to the system, but like
>> to know if there is an alternative to the individual manual add using DHIS
>> UI.
>>
>> It seems there isn’t import function for this on DHIS, so I took a look
>> at datatable for inserting straight to DB.
>> But, the ‘OrganizationUnit’ table has ‘UID’ field.  How do I generate
>> that?  One of my data ‘jII07NoHiO5’ does seem like normal Uniquie
>> Identifier number format.
>> And is this, adding rows straight to datatable, a OK way of mass
>> importing the Organization Units on DHIS?
>>
>> _______________________________________________
>> 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
>>
>>
>

Follow ups

References