Skip to content

Update NHSDigital-Practitioner#491

Open
KazeemHamzat wants to merge 3 commits into
nhsdigital_mainfrom
Feature-IOPS-4323-Update-Constraint-NHSDigital-Practitioner
Open

Update NHSDigital-Practitioner#491
KazeemHamzat wants to merge 3 commits into
nhsdigital_mainfrom
Feature-IOPS-4323-Update-Constraint-NHSDigital-Practitioner

Conversation

@KazeemHamzat
Copy link
Copy Markdown
Contributor

Updated the Regex='^(C[0-9]{7}|[0-9]{7})$' to accept C4428981 or 4428981

Update NHSDigital-Practitioner
@KazeemHamzat KazeemHamzat self-assigned this Jun 1, 2026
Testing Examples
Regex string a CNNNNNNN|NNNNNNN
<key value="prac-gmc" />
<severity value="warning" />
<human value="GMC must be of the format CNNNNNNN" />
<expression value="identifier.where(system='https://fhir.hl7.org.uk/Id/gmc-number').exists().not() or (identifier.where(system='https://fhir.hl7.org.uk/Id/gmc-number').exists() and identifier.where(system='https://fhir.hl7.org.uk/Id/gmc-number').value.matches('^[C]{1}[0-9]{7}$'))" />
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.

I'm trying to find the official format for GMC numbers but I've not been successful.

I think all we can say is that it will be a 7 or 8 alphanumerical value, but without proof I this is just an assumption which may be incorrect or change.

I'm in favour of removing the check and expecting Programmes to ensure the gmc number is correct.

For info:

It's a 7 number code: https://www.gmc-uk.org/registration-and-licensing/employers-and-other-organisations/doctors-employers-royal-colleges-and-medical-schools/employing-a-doctor/gmc-reference-numbers

although these state it can be L+6 digit https://cmbregistration.uk/regnumber/

This states it Could be 7 num digits, L+6, or D+6 https://publichealthscotland.scot/resources-and-tools/health-intelligence-and-data-management/national-data-catalogue/data-dictionary/search-the-data-dictionary/general-medical-council-number-of-referring-doctordentistnurseallied-healthcare-professional/

C+7 https://v2.datadictionary.nhs.uk/data_dictionary/data_field_notes/c/ce/consultant_code_de.asp@shownav=1.html

PAs will have an alphabetical prefix https://pa-per.co.uk/pas-to-get-prefix-on-gmc-registration-number-but-no-change-to-proposed-professional-title

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

  1. Comment from Rob Gooch in the request email: 'This needs amended to also allow a GMC without a prefix of C. A valid GMC code is NNNNNNN. It is only in the hospital care setting where there has been a historic requirement to prefix with a “C”.
  2. From the links you provided, 1 and 4 are government/GMC websites in England, which align with the format NNNNNNN or CNNNNNNN. completely removing the constraint to accept wider range of inputs is likely to reduce data quality. Thus, I will say sticking with these two formats is a better option at this time.

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.

"Once regulation begins and PAs and AAs gain registration with us, they will receive a seven-digit GMC reference number with a short alphabetical prefix" https://www.pulsetoday.co.uk/news/workforce/pas-to-get-distinguishing-gmc-number-but-no-title-change/

We should not be restricting this resource with no use-case. It should be open to all of our customers to be interoperable.

@KazeemHamzat KazeemHamzat requested a review from ryma2fhir June 2, 2026 08:26
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