Synthetic Patient Generator
Gold Quality 100% IG & Security Public repository
Organisation: NHS Example Analytics Collaborative · Project type: Data Masking Scripts
A Python package that generates realistic but entirely synthetic patient demographics, spells, and pathways for testing NHS data pipelines. Output conforms to NHS Data Dictionary field formats, including valid-but-unissued NHS numbers.
Reusability tier
Gold
Published on PyPI with a full test suite, tutorial notebooks for common scenarios, and bundled example outputs. Installable and producing data in minutes with no access requests.
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/synthetic-patient-generator
- Documentation: https://nhs-example-org.github.io/synthetic-patient-generator/
- Package: https://pypi.org/project/nhs-synthetic-patient-generator/
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 | IG & Security |
| Language(s) | Python |
| Platform(s) | databricks jupyter docker |
| Tags | synthetic-data nhsdd test-data data-masking privacy |
| Date added | 2026-05-22 |
| Last updated | 2026-06-05 |
Success story
Impact
Used by four organisations to replace ad hoc copies of live data in their development environments, closing a long-standing IG audit action at each.
Contact
Spotted a problem with this entry? Request an update or withdrawal.
Back to the catalogue · More from NHS Example Analytics Collaborative