← Back to team overview

dhis2-devs team mailing list archive

Re: [Dhis2-users] Uniqueness of organisation unit name

 

Hi,

There are only unique constraints for the fields "uid" and "code".

That said, I/we have always ensured that at least the main name is
factually unique too - the short name is a different matter (although I
would argue that ensuring unique short names within e.g. a district or
state/province is a good idea, since reports etc for such smaller areas
tend to be facility or sub-facility based. For larger countries, we
normally use a sub-national prefix to ensure uniqueness (e.g. a
two-character prefix representing the province, like in South Africa, or
the state, like in Nigeria).

Ensuring uniqueness require a bit more discipline when creating/maintaining
orgunits, but you get that time back and more so by avoiding other problems
(the import using Name scheme is one of them, but any output object using
those names are usually the main problem).

Regards
calle



On Sun, 9 Sep 2018 at 21:50, Nayeem Al Mifthah <n.mifthah@xxxxxxxxx> wrote:

> Noted with thanks.
>
> Regards,
> Nayeem Al Mifthah
> Kindly ignore typos.
>
> On Sun, 9 Sep 2018, 23:13 Knut Staring, <knutst@xxxxxxxxx> wrote:
>
>> Unless you know they are unique
>>
>> On Sun, Sep 9, 2018, 7:10 PM Nayeem Al Mifthah <n.mifthah@xxxxxxxxx>
>> wrote:
>>
>>> Thanks Knut. In that case using orgunit name as a ID scheme for data
>>> import may not work.
>>>
>>> [image: image.png]
>>>
>>>
>>> Regards,
>>> Nayeem Al Mifthah
>>> Consultant for HSS, HMIS, M&E, GIS and Surveillance
>>>
>>> Kindly ignore typos.
>>>
>>> On 9 Sep 2018 11:03 pm, "Knut Staring" <knutst@xxxxxxxxx> wrote:
>>>
>>> I think this is a feature, not a bug
>>>
>>> On Sun, Sep 9, 2018, 6:54 PM Nayeem Al Mifthah <n.mifthah@xxxxxxxxx>
>>> wrote:
>>>
>>>> Dear All
>>>> I have found that, Organisation unit name is accepting duplicate names.
>>>> Is it allowed now a days? or a bug? I have created a number of Sierra Leone
>>>> in 2.30 demo. Only Code field check duplicates.
>>>>
>>>> [image: image.png]
>>>> *Nayeem Al Mifthah*
>>>> *Health Information Systems Specialist*
>>>> Support to the National HMIS
>>>> MIS, Directorate General of Health Services
>>>> Ministry of Health and Family Welfare, Bangladesh
>>>> Telephone: +880-2-58816459    |    Fax: +880-2-58813875
>>>> Mobile:  +88-01914 030 574    |    Email: n.mifthah@xxxxxxxxx
>>>> Skype: nayeem.a.m    |   LinkedIn:  linkedin.com/in/nayeemam
>>>> _______________________________________________
>>>> 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
>>>>
>>>
>>> _______________________________________________
> 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
>


-- 

*******************************************

Calle Hedberg

46D Alma Road, 7700 Rosebank, SOUTH AFRICA

Tel/fax (home): +27-21-685-6472

Cell: +27-82-853-5352

Iridium SatPhone: +8816-315-19119

Email: calle.hedberg@xxxxxxxxx

Skype: calle_hedberg

*******************************************

PNG image


References