Skip to content

ELI-626 related bugfix (example selector partial matching) and rationalise example identifiers to 10 digits#351

Merged
jhadfield-NHS merged 3 commits intomainfrom
bugfix/eli-626-ratioanlise-example-identifiers-and-fix-selector
Feb 9, 2026
Merged

ELI-626 related bugfix (example selector partial matching) and rationalise example identifiers to 10 digits#351
jhadfield-NHS merged 3 commits intomainfrom
bugfix/eli-626-ratioanlise-example-identifiers-and-fix-selector

Conversation

@jhadfield-NHS
Copy link
Contributor

Description

Modify the example header selector to prevent partial matches e.g. 5000000001 matching where 50000000011 requested.
Also reducing the example identifiers and associated mappings to use 10 digits (to be NHS Number format conmsistent)

Context

Confusing results were occuring in some cases where 11 digit values were supplied.

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

Reduce all example references to 10 digit length (to match updated spec) and appended the parameter separator when looking for an example mapping to prevent shorter requested numbers matching a longer example number.
@jhadfield-NHS jhadfield-NHS merged commit 09cb78f into main Feb 9, 2026
8 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.

2 participants