Hi @sgroom here is some info in response to Q1 which might inform how you approach this:
- Name fields are always populated for active accounts
- SDS user IDs exist for anyone with an active Care ID. For inactive accounts the endpoint currently returns a 410 (Gone) response
- However, note that this will change in the next release of the API (we’re planning to deploy this to our path to live environments next week)
- More information on this change is here: Minor breaking change - 200 response if no matches - Healthcare Worker API - NHS England Developer Community
On Q2:
- Name fields are always populated for active accounts but for inactive - an empty fhir bundle will be returned - so a single user or an empty FHIR bundle
- There is guidance here: Minor breaking change - 200 response if no matches - Healthcare Worker API - NHS England Developer Community on how you might cater for this scenario
- I would check with the eRS A+G team on the standards that apply here - but I believe that display of the full name would be advisable to support identification and accountability. Note that currently the name is returned as a single string - in the “given” array. We are changing this - as specified here: Minor breaking change - separate given names - Healthcare Worker API - NHS England Developer Community
Thanks, Sarah