8 NHS number
In England, Wales and Isle of Man patients are recorded by a unique NHS Number. The Wikipedia page on the NHS Number is a useful public resource on this number, its generation and history.
Specific R packages for validating or generating NHS Numbers have been listed in the NHS-R Community book Open Analytics Resources.
In Scotland and Northern Ireland the patient ID used is called the CHI (Community Health Index) number and there is a specific Wikipedia page for Scotland. According to the NHS Number page though, although the two systems have the same name they are not linked and overlap.
It is highly recommended that if there are any resources or public information relating to NHS or CHI numbers that the Wikipedia pages are updated as these are central, searchable public areas of knowledge.
Contribution only requires an account with Wikipedia and links to sources to cite appropriately.