Phone number - value type accepts characters

Dear Team,

It was good to introduce

the phone number value type especially for the tracker, but it accepts characters, there is no validation on input.

···

Prosper Behumbiize, MPH
Global HISP| University Of Oslo/HISP Uganda
+256 752 751 776 | +256 776 139 139

prosper@hispuganda.org | prosper@dhis2.org | Skype: prospertb

Hi,

A phone number value type should actually be strictly validated using a user-defined string - and the default should be a 12-character string like this: “0nn nnn nnnn”

Some country databases might use different number systems, and where database content spans multiple countries the typical format would be “+cc nn nnn nnnn” (with cc being the country code).

Although some fixed phone numbers will have extensions, those are from what I’ve seen less and less common (and can be handled using a standard 3 or 4-character text value type)

Regards

Calle

···

On 2 April 2016 at 19:53, Prosper BT ptb3000@gmail.com wrote:

Dear Team,

It was good to introduce

the phone number value type especially for the tracker, but it accepts characters, there is no validation on input.

Prosper Behumbiize, MPH
Global HISP| University Of Oslo/HISP Uganda
+256 752 751 776 | +256 776 139 139

prosper@hispuganda.org | prosper@dhis2.org | Skype: prospertb


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

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@gmail.com

Skype: calle_hedberg