Hi NHS Login team,
As a part of the NHS Health Check Online service we’re currently investigating scenarios where a patient’s NHS number has been superseded/changed and would like to better understand the expected behaviour from NHS Login.
Our service consumes the NHS number provided through the NHS Login /userInfo endpoint. During recent investigations we identified cases where the NHS number returned by NHS Login appears to differ from the current NHS number held within PDS. Internal discussions suggested that NHS Login may subscribe to a number of demographic and PDS-related events, but we’re unclear how superseded NHS numbers are handled.
Could you please help clarify:
- If a patient’s NHS number is superseded, is the NHS number returned by NHS Login expected to be updated automatically?
- Is there a delay between a change being made in PDS and that change becoming visible through NHS Login?
- Are there any known scenarios where NHS Login may continue to return a superseded NHS number?
- Is there any guidance for relying parties when a mismatch is detected between the NHS number returned by NHS Login and the current information available in PDS?
- Should services treat PDS as the source of truth and perform additional validation where NHS number continuity is important?
The reason for asking is that we’re assessing how to handle situations where an existing user’s NHS number changes and want to ensure our approach aligns with NHS Login and PDS best practice. I’m sure it’s applicable for number of other services integrated with NHS Login.