Skip to content

Anonymise patient id by obscuring first 7 chars - #45

Merged
steventux merged 1 commit into
mainfrom
fix/anonymise-patient-id
Mar 16, 2026
Merged

Anonymise patient id by obscuring first 7 chars#45
steventux merged 1 commit into
mainfrom
fix/anonymise-patient-id

Conversation

@steventux

Copy link
Copy Markdown
Contributor

Description

Anonymise PatientID (NHS Number) by obscuring the first 7 digits/chars eg. *******321 when logging/printing this information.
This gives us some debugging capability without revealing a complete NHS number.

Jira link

https://nhsd-jira.digital.nhs.uk/browse/DTOSS-12432

Review notes

Review checklist

  • Check database queries are correctly scoped to current_provider

Comment thread scripts/python/verify_storage.py Fixed
Comment thread src/services/mwl/c_find.py Fixed
@steventux
steventux force-pushed the fix/anonymise-patient-id branch from 906bab8 to 48019ac Compare March 10, 2026 16:50
Comment thread src/services/mwl/c_find.py Dismissed

@carlosmartinez carlosmartinez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This gives us some debugging capability without revealing a complete NHS number.
@steventux
steventux force-pushed the fix/anonymise-patient-id branch from 48019ac to d3137a8 Compare March 16, 2026 12:21
Comment thread scripts/python/verify_storage.py Dismissed
@steventux
steventux merged commit 42e712e into main Mar 16, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants