The NHS number is a 10 digit number, | like | 485 777 3457, which is a valid NHS number, |
or | 485 777 3456, which is an invalid NHS number. |
You should be able to find your NHS number on any letter the NHS has sent you, on a prescription or by logging into your GP practice online service.
A peer reviewed paper discussing NHS numbers and user interfaces
Cite as: Harold Thimbleby. 2022. “NHS Number open source software: Implications for digital health regulation and development.” ACM Transactions on Computing for Healthcare X, X, Article X (in press), 29 pages. DOI 10. 1145/3538382
NHS example for entering an NHS Number. Try entering anything — like text — and see how errors are ignored.
That NHS example can be found in this longer document: NHS's own discussion of text input, including NHS Digital’s NHS number example, which this demonstration has copied its appearance from (though it does interaction and error handling more sensibly...)
NB the original web site referenced in the paper was beta.nhs.uk/service-manual/styles-components-patterns/text-input which has since disappeared.
NHS's overview of the format of an NHS Number and their Java NHS Number client
Interactive documentation for the code implementing the user interface demonstrated here (Note that this file includes documentation of how the documentation itself works.)
How the documentation above is mixed into the strucutre of the nested code, making it easy to write and easy to ensure correct (It is an automatically-generated overview file.)