[−][src]Module heidi::nhs
heidi
implements the NHS number validation “Modulus 11”. See:
https://www.datadictionary.nhs.uk/data_dictionary/attributes/n/nhs/nhs_number_de.asp
Example numbers were generated with http://danielbayley.uk/nhs-number/
The NHS Number is a unique number allocated to every patient registered with the NHS in England, Wales and the Isle of Man.
In short, an NHS Number is always 10 digits long sometimes formatted in a 3-3-4 manner.
For example, 6541003238
can be presented as 654 100 3238
.
The last digit of the number is the “check digit” to aid in integrity checks.
Structs
Number | Represents an NHS Number as a list of 9 digits ( |
Functions
lottery | Returns a random NHS Number. |
Type Definitions
Digit | A digit can be from 0 to 9. |