nhsuk / nhsuk-service-manual-community-backlog

This is a place for digital teams in the NHS to work together and develop the NHS digital service manual.
https://service-manual.nhs.uk/community-and-contribution
62 stars 5 forks source link

Telephone number formatting #196

Open tomdoughty opened 4 years ago

tomdoughty commented 4 years ago

What

Establishing a consistent way we format telephone numbers.

Why

When comparing 2 apps both displaying the same data from the Service Search API I noticed one was formatting the phone number like '0123 4567 890'. The other just displayed the phone number however it came from the API which was often one long string like '01234567890' I feel it is a lot more readable to split the number up with spaces.

Anything else

The app which formats phone numbers uses an open source library https://github.com/google/libphonenumber. This is maintained by Google and is used in Android to format numbers that are calling you. It also knows whether the area should split as 4,3,4 or 5,6 as you can see below.

01131234567 -> 0113 123 4567 01733123456 -> 01733 123456 07777123456 -> 07777 123456

Related issue

chrimesdev commented 4 years ago

GOVUK have some good guidance on writing telephone numbers and how to display telephone telephone numbers

tomdoughty commented 4 years ago

Ahh the first link does seems to cover it. Not sure how I really missed that. Maybe worth spreading knowledge of the Nuget and NPM packages available which can help us meet the recommendations đź‘Ť

chrimesdev commented 4 years ago

We've had another team ask a similar question recently, so I wonder if its worth duplicating the content in the NHS digital service manual too @sarawilcox?

sarawilcox commented 4 years ago

Thanks. I'll see what content designers think, check if we have any conflicting evidence, and perhaps we can include it. Will check at next week's Content Style Council meeting.

rhiannonsmith commented 4 years ago

Hi @tomdoughty is this something that relates to the internet pharmacies on NHS.UK (https://www.nhs.uk/service-search/other-services/pharmacies/internetpharmacies)? Thanks

sarawilcox commented 4 years ago

At the January 2020 Style Council meeting, we agreed to include the GDS guidance on telephone number format in the service manual.

We have tried to make the bit about “easily remembered units” clearer with an example.

We agreed to leave the example of “077718 300 300” in, despite discussion over whether it is a real format or not. [Sara has asked GOV.UK about the 12 digit number. No reply yet.]

Following wording agreed and signed off by clinicians.

Use telephone: 011 111 111 or mobile:. Do not use mob:.

Use spaces between city and local exchange. Here are the different formats to use:

01273 800 900

020 7450 4000

0800 890 567

07771 900 900

077718 300 300

+44 (0)20 7450 4000

+39 1 33 45 70 90

When an organisation has chosen a memorable number, for example for a campaign, group the numbers into easily remembered units: 0800 80 70 60.

sarawilcox commented 4 years ago

Guidance published: https://service-manual.nhs.uk/content/a-to-z-of-nhs-health-writing#T

sarawilcox commented 4 years ago

Update: At the February Content Style Council meeting, we agreed to replace what is currently the Environment Agency telephone number with the Samaritans' phone number as this is more relevant for NHS teams.

Proposed change:

"When an organisation has chosen a memorable number, for example for a campaign, group the numbers into easily remembered units. An example is the number for the Samaritans: 116 123."

[Waiting for clinical sign off]

sarawilcox commented 4 years ago

Signed off by clinicians. Changes made: nhsuk/nhsuk-service-manual#603 Waiting to go live.

sarawilcox commented 4 years ago

Can we add something about not adding links to phone numbers, in line with GDS guidance: https://design-system.service.gov.uk/patterns/telephone-numbers/#do-not-display-telephone-numbers-as-links-on-devices-that-cannot-make-calls?

markasrobinson commented 4 years ago

Some thoughts on the GOV guidance:

Might be worth a discussion of how/if the GOV guidance fits in a health context?