-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add phone number input data type #448
Comments
Phone numbersStoring/validating the country calling code separately seems appropriate. I'm uncertain why the ISO code for the country is there as well, though. It seems like this is superfluous information when it comes to the phone number. The ISO country code could potentially be considered an alternative way to represent the same information, and the mapping of ISO 3166 to the calling code could be done at runtime (by hardcoding the mapping elsewhere in CARP core). However, this won't work since this doesn't seem to be a 1-to-1 mapping. The Dominican Republic uses multiple calling codes, as well as Puerto Rico. The ISO country code is likely relevant for other input data, such as the country of residence. For the actual number, I wouldn't store it as a Informed consentI suggest you make a separate issue for that, and keep this issue focused on phone numbers, so that the discussions can remain more focused. |
ok - we can drop the ISO code.
I think there are many numbers that are non-digits. For instance, you can type
I agree. |
I split off the informed consent issue here. |
Has been implemented in CAWS. |
Okay; that makes it less urgent to implement in CARP core, but I think it is still a valid CARP core type, though. 🤔 The correct way to close this, if this is not considered relevant for CARP core at all anymore, would be as "not planned", instead of "completed". But, I personally think it is a relevant core type. |
We require phone number as a new input data types that could be implemented in core, the specifications are copied from here: https://github.com/cph-cachet/carp.sensing-flutter/blob/develop-1.1.0/carp_core/lib/common/application/input_data.dart
Phone numbers
The text was updated successfully, but these errors were encountered: