# Facility identifier number

**URL:** <https://community.dhis2.org/t/facility-identifier-number/4374>\
**Category:** Support - Assistance technique\
**Created:** [15 June 2017 07:36 UTC](https://community.dhis2.org/t/facility-identifier-number/4374 "2017-06-15T07:36:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guy\_Ekani](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/g/c67d28/32.png) [@Guy\_Ekani](https://community.dhis2.org/u/Guy_Ekani)\
**Post date:** [15 June 2017 07:36 UTC](https://community.dhis2.org/t/facility-identifier-number/4374/1 "2017-06-15T07:36:13Z")

</div>

Hello team,

We will like to auto-generated sequential number allocated to each facility when it is added to the master list.

Please should someone can share experience using the Luhn Algorithm (mod 10) ?

Sincerely,

> **···**
>
> =========================  
> EKANI Guy

---

<div class="post-metadata">

**Author:** ![Knut\_Staring](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/knut_staring/32/32549_2.png) [@Knut\_Staring](https://community.dhis2.org/u/Knut_Staring)\
**Post date:** [15 June 2017 08:18 UTC](https://community.dhis2.org/t/facility-identifier-number/4374/2 "2017-06-15T08:18:10Z")

</div>

No experience, but perhaps this is useful for you:

[https://gist.github.com/DiegoSalazar/4075533](https://gist.github.com/DiegoSalazar/4075533)

> **···**
>
> On Thu, Jun 15, 2017 at 9:36 AM, Guy Ekani [constyekani@gmail.com](mailto:constyekani@gmail.com) wrote:
> 
> > Hello team,
> 
> > 
> 
> > We will like to auto-generated sequential number allocated to each facility when it is added to the master list.
> 
> > 
> 
> > Please should someone can share experience using the Luhn Algorithm (mod 10) ?
> 
> > 
> 
> > Sincerely,
> 
> > 
> 
> > =========================  
> > EKANI Guy
> 
> > 
> 
> > –
> 
> > * * *
> > 
> > Mailing list: [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > Post to : [dhis2-users@lists.launchpad.net](mailto:dhis2-users@lists.launchpad.net)
> > 
> > Unsubscribe : [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)
> 
> –
> 
> Knut Staring
> 
> Dept. of Informatics, University of Oslo
> 
> Norway: +4791880522
> 
> Skype: knutstar
> 
> [http://dhis2.org](http://dhis2.org)

---

<div class="post-metadata">

**Author:** ![Knut\_Staring](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/knut_staring/32/32549_2.png) [@Knut\_Staring](https://community.dhis2.org/u/Knut_Staring)\
**Post date:** [15 June 2017 08:19 UTC](https://community.dhis2.org/t/facility-identifier-number/4374/3 "2017-06-15T08:19:40Z")

</div>

Though apparently this is a lot faster:  
[https://gist.github.com/ShirtlessKirk/2134376](https://gist.github.com/ShirtlessKirk/2134376)

> **···**
>
> On Thu, Jun 15, 2017 at 10:18 AM, Knut Staring [knutst@gmail.com](mailto:knutst@gmail.com) wrote:
> 
> > No experience, but perhaps this is useful for you:
> > 
> > [https://gist.github.com/DiegoSalazar/4075533](https://gist.github.com/DiegoSalazar/4075533)
> 
> –
> 
> On Thu, Jun 15, 2017 at 9:36 AM, Guy Ekani [constyekani@gmail.com](mailto:constyekani@gmail.com) wrote:
> 
> > Hello team,
> 
> > 
> 
> > We will like to auto-generated sequential number allocated to each facility when it is added to the master list.
> 
> > 
> 
> > Please should someone can share experience using the Luhn Algorithm (mod 10) ?
> 
> > 
> 
> > Sincerely,
> 
> > 
> 
> > =========================  
> > EKANI Guy
> 
> > 
> 
> > –
> 
> > 
> 
> > * * *
> > 
> > Mailing list: [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > Post to : [dhis2-users@lists.launchpad.net](mailto:dhis2-users@lists.launchpad.net)
> > 
> > Unsubscribe : [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)
> 
> Knut Staring
> 
> Dept. of Informatics, University of Oslo
> 
> Norway: +4791880522
> 
> Skype: knutstar
> 
> [http://dhis2.org](http://dhis2.org)
> 
> –
> 
> Knut Staring
> 
> Dept. of Informatics, University of Oslo
> 
> Norway: +4791880522
> 
> Skype: knutstar
> 
> [http://dhis2.org](http://dhis2.org)

---

<div class="post-metadata">

**Author:** ![Guy\_Ekani](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/g/c67d28/32.png) [@Guy\_Ekani](https://community.dhis2.org/u/Guy_Ekani)\
**Post date:** [16 June 2017 08:27 UTC](https://community.dhis2.org/t/facility-identifier-number/4374/4 "2017-06-16T08:27:01Z")

</div>

Thank you Knut,

> **···**
>
> On Thu, Jun 15, 2017 at 9:19 AM, Knut Staring [knutst@gmail.com](mailto:knutst@gmail.com) wrote:
> 
> > Though apparently this is a lot faster:  
> > [https://gist.github.com/ShirtlessKirk/2134376](https://gist.github.com/ShirtlessKirk/2134376)
> 
> –
> 
> On Thu, Jun 15, 2017 at 10:18 AM, Knut Staring [knutst@gmail.com](mailto:knutst@gmail.com) wrote:
> 
> > No experience, but perhaps this is useful for you:
> > 
> > [https://gist.github.com/DiegoSalazar/4075533](https://gist.github.com/DiegoSalazar/4075533)
> 
> –  
> Knut Staring
> 
> Dept. of Informatics, University of Oslo
> 
> Norway: +4791880522
> 
> Skype: knutstar
> 
> [http://dhis2.org](http://dhis2.org)
> 
> On Thu, Jun 15, 2017 at 9:36 AM, Guy Ekani [constyekani@gmail.com](mailto:constyekani@gmail.com) wrote:
> 
> > Hello team,
> 
> > 
> 
> > We will like to auto-generated sequential number allocated to each facility when it is added to the master list.
> 
> > 
> 
> > Please should someone can share experience using the Luhn Algorithm (mod 10) ?
> 
> > 
> 
> > Sincerely,
> 
> > 
> 
> > =========================  
> > EKANI Guy
> 
> > 
> 
> > –
> 
> > 
> 
> > * * *
> > 
> > Mailing list: [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > Post to : [dhis2-users@lists.launchpad.net](mailto:dhis2-users@lists.launchpad.net)
> > 
> > Unsubscribe : [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)
> 
> Knut Staring
> 
> Dept. of Informatics, University of Oslo
> 
> Norway: +4791880522
> 
> Skype: knutstar
> 
> [http://dhis2.org](http://dhis2.org)
> 
> –
