← Back to team overview

dhis2-users team mailing list archive

Re: FW: Importing Organisation Unit

 

Hello Nibras,
The UID is not compulsory depending on your implementation. If the
organization Units in question do not already exist on the system and you
need to create them, you can leave the UID blank and the system will
generate the UIDs automatically. In the other case, if the organization
unit already exists and you want to modify any of its properties (name,
code, location/parent UID), you need to provide the UID so that the system
can identify the organization unit in question.
The parent UID however has to be provided at all times (compulsory) except
if the organization unit is Giotto be the root organisation unit. The field
determines which level or location of the hierarchy the organization unit
should reside.
The easiest way to go about it is to create the organization units at the
higher level first so you can get the UIDs to provide as the Parent UID for
the next levels i.e. if you have five three (3) levels on your hierarchy
(Level 1, 2 and 3), Create Level 1 (the root) first, get the UID for the
organisation unit on Level 1 and populate as the Parent UID for Level 2
organisation units. Create Level 2 so you can get the UIDs for Level 2
organisation units and populate as the Parent UID for Level 3.

Regards

On Aug 26, 2018 4:57 AM, "Nibras Ar Rakib" <nibras.rakib@xxxxxxxxxx> wrote:

Dear All,

My name is Nibras Ar Rakib and currently I am working at icddr, b
(International Centre for Diarrhoeal Disease Research, Bangladesh) as
programmer and involved in Routine Health Information System (RHIS).

We have successfully installed and configured DHIS2 (2.29) for
aggregated data collection purpose for different region of Bangladesh.
Problem we are currently facing is preparing the csv file for importing
organization unit.

One particular field I do not understand that in the documentation
(
https://docs.dhis2.org/2.29/en/developer/html/webapi_csv_metadata_import.html-
Table: 1.19) that there is column named UID and Parent UID. During
populating the csv, do we need to specify those UIDS and Parent UIDS (I
know we should do that otherwise hierarchy wont populate. Also then I
need to handle Parent UIDS programmatically)? If that happens, then I
need to populate the csv programmatically. I also know, DHIS2 has an API
that provide stable identifier. Is there any other way around to develop
the hierarchical organization unit?

It would be really helpful if you provide your ideas or suggestion
regarding this.

Thanks & Regards,
Nibras Ar Rakib

------------------------------
*From:* Matthieu Pinard [matthieu@xxxxxxxxx]
*Sent:* Tuesday, August 21, 2018 10:52 PM
*To:* Nibras Ar Rakib
*Subject:* Re: Importing Organisation Unit

Dear Nibras,

thanks for you request. In case you haven’t received any feedback yet, can
I suggest that you send your request to the users list (once registered):
dhis2-users@xxxxxxxxxxxxxxxxxxx, to allow the DHIS2 Community members to
help you.

Cheers,
Matthieu

———
Matthieu Pinard
DHIS2 Online Academy Coordinator | University of Oslo

On 19 Aug 2018, at 11:43, Nibras Ar Rakib <nibras.rakib@xxxxxxxxxx> wrote:

Dear Lars,

My name is Nibras Ar Rakib and currently I am working at icddr, b
(International Centre for Diarrhoeal Disease Research, Bangladesh) as
programmer and involved in Routine Health Information System (RHIS).

We have successfully installed and configured DHIS2 (2.29) for
aggregated data collection purpose for different region of Bangladesh.
Problem we are currently facing is preparing the csv file for importing
organization unit.

One particular field I do not understand that in the documentation
(
https://docs.dhis2.org/2.29/en/developer/html/webapi_csv_metadata_import.html-
Table: 1.19) that there is column named UID and Parent UID. During
populating the csv, do we need to specify those UIDS and Parent UIDS (I
know we should do that otherwise hierarchy wont populate. Also then I
need to handle Parent UIDS programmatically)? If that happens, then I
need to populate the csv programmatically. I also know, DHIS2 has an API
that provide stable identifier. Is there any other way around to develop
the hierarchical organization unit?

It would be really helpful if you provide your ideas or suggestion
regarding this.

Thanks & Regards,
Nibras Ar Rakib
-- 
This message was sent from Launchpad by
Nibras Ar Rakib (https://launchpad.net/~nibras.rakib)
using the "Contact this team's admins" link on the DHIS 2 developers team
page (https://launchpad.net/~dhis2-devs).
For more information see
https://help.launchpad.net/YourAccount/ContactingPeople


_______________________________________________
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

References