At at early 2023, a search of PyPi and GitHub showed that number of separate repositories existed which all either validated NHS Numbers, or generated NHS Numbers for testing purposes (which inherently requires validating them anyway)
We decided that we would try to ‘reverse-fork’ this panoply of different solutions and come up with a single, well tested, performant, canonical library. The best existing candidate was selected as @andy.law 's existing NhsNumberChecks GitHub repository, and this was transferred across to the ownership of the Faculty Of Clinical Informatics via their GitHub organisation, and was renamed to nhs-number
for simplicity and consistency with the name of the PyPi package nhs-number · PyPI
Existing NHS Number packages/repos (Python)
- https://github.com/andylaw/NhsNumberChecks and https://pypi.org/project/nhs-number/
- https://github.com/Iain-S/nhs_number_generator
- https://pypi.org/project/nhspy/
- https://pypi.org/project/nhssums/
- https://github.com/eatyourpeas/rcpch-nhs-numbers
- https://pypi.org/project/nhs-common-code/