Agree that simple fix is very unlikely. Is there even a way to make the current unwieldy table work? Any thoughts from other developers?
-brady OpenEMR
The table could be made to work by lengthening one of more of the columns. I suspect the best way to store them is with one field for country code, and another field for all the other digits.
Formatting conventions for display (and data entry) of phone numbers vary greatly by country and even within countries. See:
Perhaps there’s already a library somewhere to help with that.
Why is it necessary to store insurer phone numbers in a separate table?
Why is it not possible to add a phone_numbers column, with the structure like that in patient_data (essentially dealing only with type & collation)?
Is the code change so difficult to re-route data from a table with 7 columns into a single column of patient_data?
If it can be accomplished; it will function as a “free form”, wherein the user can determine the grouping of area code, exchange & line number simply by the placement of the hyphen.
This would obviate the need for libraries. Do we have libraries for the phone numbers in patient_data?
There’s also that pesky addresses table too. It looks like they are vestigial and also play a role for pharmacies.
A search for phone_numbers on GitHub yields 11 results. These would have to be tracked down and updated. Maybe shoot for incorporating a library for internationalization down the road when there aren’t bigger fish to fry?
here’s my hack for Kuala Lumpur, it works off the offending code link posted earlier: