NHS Number Validator
Gold Quality 100% Data Engineering Public repository
Organisation: NHS Example Organisation · Project type: Data Quality & Utility Tools
A Python package for validating NHS numbers using the Modulus 11 algorithm. Handles bulk validation of Series and DataFrames, with clear error reporting for invalid formats. Designed to be a drop-in utility for any NHS data pipeline.
Reusability tier
Gold
Published as a pip-installable package with a full test suite, synthetic test data, and a documentation site. Any team can install and use it in under five minutes.
Links
Synthetic example
This entry is test data for the demo. The links below do not lead to real code, and any resemblance to real projects or packages is coincidental.
- Repository: https://github.com/nhs-example-org/nhs-number-validator
- Documentation: https://nhs-example-org.github.io/nhs-number-validator/
- Package: https://pypi.org/project/nhs-number-validator/
Quality score
This entry scores 100 of 100 for metadata quality. The score measures how complete and current the catalogue entry is, not the code itself; the reusability tier covers the code. Improving the metadata raises the score.
| Criterion | Points | Met |
|---|---|---|
| Description of 100 characters or more | 10 | yes |
| Two or more tags | 10 | yes |
| Documentation link | 15 | yes |
| Tier rationale provided | 10 | yes |
| SUL layers declared | 10 | yes |
| Updated within the last 18 months | 15 | yes |
| Platforms listed | 5 | yes |
| Owning organisation named | 5 | yes |
| Public repository | 10 | yes |
| Installable package link | 10 | yes |
SUL principle
How this entry maps to the SUL principle:
| Element | Description | Included |
|---|---|---|
| Structural | Templates, folder structures, project skeletons | no |
| Utility | Generic helper functions decoupled from project logic | yes |
| Logic | Bespoke project-specific code, clearly separated | no |
Details
| Field | Value |
|---|---|
| Category | Data Engineering |
| Language(s) | Python |
| Platform(s) | databricks azure jupyter |
| Tags | nhs-number data-quality validation patient-identifiers |
| Date added | 2026-01-15 |
| Last updated | 2026-05-20 |
Success story
Impact
Adopted by six trusts as a shared dependency, eliminating 400 lines of duplicated validation code across their pipelines.
Contact
Spotted a problem with this entry? Request an update or withdrawal.